/* =============================================
   WAKACYJNIE.COM — Booking Modal Styles
   ============================================= */

/* --- Modal Container --- */
.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.booking-modal.open {
    opacity: 1;
    visibility: visible;
}

.booking-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 39, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.booking-container {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 24px;
    width: 90%;
    max-width: 740px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    transform: translateY(30px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.booking-modal.open .booking-container {
    transform: translateY(0) scale(1);
}

.booking-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    z-index: 2;
}

.booking-close:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

/* --- Progress Bar --- */
.booking-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #0066ff, #00d4aa);
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: linear-gradient(135deg, #0066ff, #00d4aa);
    color: #fff;
}

.step-dot.current {
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.2);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #9ca3af;
}

/* --- Step Content --- */
.booking-step {
    display: none;
    animation: fadeSlideIn 0.4s ease;
}

.booking-step.active {
    display: block;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.booking-step h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    color: #1a1a2e;
}

.step-desc {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* --- Destination Picker --- */
.destination-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.dest-pick-card {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.dest-pick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dest-pick-card.selected {
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2), 0 10px 30px rgba(0, 102, 255, 0.15);
}

.dest-pick-img {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.dest-pick-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent 60%);
}

.dest-pick-content {
    position: relative;
    z-index: 1;
    padding: 1.25rem;
    color: #fff;
}

.dest-pick-flag {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.3rem;
}

.dest-pick-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.dest-pick-content p {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* --- Form Elements --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-full {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    color: #1a1a2e;
    background: #f9fafb;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* --- Apartment Preview --- */
.apt-preview-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: #374151;
}

.apt-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.apt-preview-card {
    border-radius: 12px;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s ease;
}

.apt-preview-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.apt-preview-img {
    height: 90px;
    background-size: cover;
    background-position: center;
}

.apt-preview-info {
    padding: 0.6rem;
}

.apt-preview-info strong {
    font-size: 0.75rem;
    display: block;
    margin-bottom: 0.15rem;
    color: #1a1a2e;
}

.apt-type {
    font-size: 0.65rem;
    color: #6b7280;
    display: block;
}

.apt-price {
    font-size: 0.7rem;
    font-weight: 700;
    color: #0066ff;
    display: block;
    margin-top: 0.2rem;
}

/* --- Services Checklist --- */
.services-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.service-check {
    cursor: pointer;
}

.service-check input {
    display: none;
}

.service-check-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.service-check input:checked + .service-check-card {
    border-color: #0066ff;
    background: rgba(0, 102, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.service-check-card:hover {
    border-color: #d1d5db;
    background: #fff;
}

.service-check-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.service-check-info {
    flex: 1;
}

.service-check-info strong {
    display: block;
    font-size: 0.85rem;
    color: #1a1a2e;
    margin-bottom: 0.15rem;
}

.service-check-info span {
    font-size: 0.75rem;
    color: #6b7280;
}

.service-check-tick {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.service-check input:checked + .service-check-card .service-check-tick {
    background: #0066ff;
    color: #fff;
}

/* --- Unavailable services --- */
.service-check.service-unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}
.service-check.service-unavailable .service-check-card {
    background: #f3f4f6;
    border-color: #d1d5db;
    pointer-events: none;
}
.service-check.service-unavailable .service-check-tick {
    display: none;
}
.service-unavail-msg {
    display: block;
    color: #b91c1c;
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 3px;
    line-height: 1.3;
}
/* Touch-friendly: show full tooltip on tap */
@media (hover: none) {
    .service-check.service-unavailable {
        -webkit-tap-highlight-color: transparent;
    }
}

/* --- Summary --- */
.booking-summary {
    background: #f9fafb;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.summary-section {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
}

.summary-section:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.summary-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

.summary-detail {
    flex: 1;
}

.summary-detail label {
    font-size: 0.75rem;
    color: #6b7280;
    display: block;
    margin-bottom: 0.15rem;
}

.summary-detail strong {
    font-size: 0.95rem;
    color: #1a1a2e;
}

.summary-detail span {
    font-size: 0.8rem;
    color: #6b7280;
    display: block;
}

.summary-divider {
    height: 2px;
    background: linear-gradient(135deg, #0066ff, #00d4aa);
    border-radius: 2px;
    margin: 0.5rem 0;
}

.summary-notice {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 102, 255, 0.06);
    border-radius: 10px;
    border: 1px solid rgba(0, 102, 255, 0.12);
}

.summary-notice p {
    font-size: 0.85rem;
    color: #374151;
    margin: 0;
}

/* --- Navigation Buttons --- */
.booking-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.btn-outline {
    background: transparent;
    color: #374151;
    border: 1.5px solid #d1d5db;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.btn-send {
    background: linear-gradient(135deg, #00d4aa, #0066ff) !important;
    padding: 0.85rem 2rem !important;
    font-size: 1rem !important;
}

/* --- Success Screen --- */
.booking-success {
    text-align: center;
    padding: 3rem 1rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounceIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.booking-success h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.booking-success p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.success-note {
    background: #fef3c7;
    color: #92400e !important;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    margin: 1rem 0;
}

.booking-success .btn {
    margin-top: 1.5rem;
}

/* --- Shake Animation --- */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.shake {
    animation: shake 0.6s ease;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .booking-container {
        width: 95%;
        padding: 1.5rem;
        max-height: 95vh;
        border-radius: 20px;
    }

    .destination-picker {
        grid-template-columns: 1fr;
    }

    .dest-pick-img {
        height: 140px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-full {
        grid-column: span 1;
    }

    .services-checklist {
        grid-template-columns: 1fr;
    }

    .apt-preview-grid {
        grid-template-columns: 1fr;
    }

    .progress-labels {
        display: none;
    }
}
