/* ================================================
   CONTACT PAGE — BASTIDE OR DU TEMPS
   Cinematic · Immersive · Luxe
   ================================================ */

/* === HERO === */
.hero-contact {
    min-height: 55vh;
}

.contact-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.08);
    animation: fadeInDown 1s ease 0.2s both;
    margin-bottom: 1.5rem;
}

/* === CONTACT STRIP — Quick info bar === */
.contact-strip {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    position: relative;
    z-index: 5;
}

.contact-strip-inner {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    transition: all 0.35s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}

.contact-chip:hover {
    border-color: var(--accent);
    background: white;
    box-shadow: 0 4px 20px var(--shadow);
    transform: translateY(-2px);
}

.contact-chip-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-chip-icon svg {
    width: 16px;
    height: 16px;
}

.contact-chip-text {
    display: flex;
    flex-direction: column;
}

.contact-chip-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
}

.contact-chip-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

/* === MAIN SECTION === */
.contact-main-section {
    background: var(--bg);
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.contact-main-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === FORM AREA === */
.contact-form-area {
    animation: fadeIn 0.6s ease both;
}

.contact-form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 8px 40px var(--shadow);
}

.contact-form-intro {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.contact-form-intro h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.contact-form-intro p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Form grid */
/* === BOOKING SUMMARY CARD === */
.ct-booking-summary {
    background: linear-gradient(135deg, #f0f7f2 0%, #fdfbf7 100%);
    border: 1.5px solid var(--accent-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.75rem;
    animation: fadeIn 0.5s ease;
}

.ct-booking-summary-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(78, 110, 88, 0.15);
}

.ct-booking-summary-header svg {
    color: var(--accent);
    flex-shrink: 0;
}

.ct-booking-dismiss {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-booking-dismiss:hover {
    color: var(--error);
    background: rgba(179, 90, 90, 0.08);
}

.ct-booking-dates {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.ct-booking-date {
    text-align: center;
}

.ct-booking-date-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.ct-booking-date-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text);
}

.ct-booking-arrow {
    color: var(--accent-light);
}

.ct-booking-details {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(78, 110, 88, 0.1);
}

.ct-booking-detail span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.ct-booking-price-lines {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.ct-booking-price-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
}

.ct-booking-total {
    display: flex;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1.5px solid var(--accent);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
}

.ct-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ct-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.ct-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
}

.ct-field.full {
    grid-column: 1 / -1;
}

.ct-field label {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text);
    letter-spacing: 0.3px;
}

.ct-field label .req {
    color: var(--accent-secondary);
    font-weight: 600;
}

.ct-field input,
.ct-field select,
.ct-field textarea {
    padding: 0.9rem 1.15rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    transition: all 0.3s ease;
    width: 100%;
}

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(78, 110, 88, 0.08);
}

.ct-field input::placeholder,
.ct-field textarea::placeholder {
    color: var(--text-light);
    opacity: 0.5;
}

.ct-field textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.ct-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237A7470' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Subject pills alternative */
.ct-subject-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ct-subject-pill {
    padding: 0.55rem 1.1rem;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    color: var(--text-light);
    background: var(--bg);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.ct-subject-pill:hover {
    border-color: var(--accent-light);
    color: var(--accent);
}

.ct-subject-pill.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Form footer */
.ct-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.ct-form-note {
    font-size: 0.78rem;
    color: var(--text-light);
}

.ct-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 2rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.35s ease;
    letter-spacing: 0.3px;
}

.ct-submit-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 110, 88, 0.25);
}

.ct-submit-btn svg {
    transition: transform 0.3s ease;
}

.ct-submit-btn:hover svg {
    transform: translateX(3px);
}

/* Success message */
.ct-success {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
    animation: fadeIn 0.5s ease;
}

.ct-success.show {
    display: block;
}

.ct-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--success-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.2s both;
}

@keyframes successPop {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.ct-success h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.ct-success p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === SIDEBAR === */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 6rem;
    animation: fadeIn 0.6s ease 0.2s both;
}

/* Sidebar info card */
.ct-info-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px var(--shadow);
}

.ct-info-card-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.ct-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(232, 226, 216, 0.5);
    transition: all 0.3s ease;
}

.ct-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ct-info-item:first-of-type {
    padding-top: 0;
}

.ct-info-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(78, 110, 88, 0.08);
    color: var(--accent);
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.ct-info-item:hover .ct-info-icon {
    background: var(--accent);
    color: white;
}

.ct-info-icon svg {
    width: 18px;
    height: 18px;
}

.ct-info-text h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.ct-info-text p,
.ct-info-text a {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
}

.ct-info-text a {
    color: var(--accent);
    font-weight: 500;
    transition: color 0.3s ease;
}

.ct-info-text a:hover {
    color: var(--accent-dark);
}

/* Response time badge */
.ct-response-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: var(--success-bg);
    border-radius: var(--radius);
    margin-top: 1rem;
}

.ct-response-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
    flex-shrink: 0;
}

.ct-response-text {
    font-size: 0.82rem;
    color: var(--success);
    font-weight: 500;
}

/* Practical sidebar card */
.ct-practical-card {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    color: white;
    border: none;
    box-shadow: 0 8px 30px rgba(78, 110, 88, 0.2);
}

.ct-practical-card .ct-info-card-title {
    color: rgba(255,255,255,0.7);
    border-bottom-color: rgba(255,255,255,0.15);
}

.ct-practical-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.9);
}

.ct-practical-item svg {
    width: 18px;
    height: 18px;
    color: rgba(255,255,255,0.6);
    flex-shrink: 0;
}

.ct-practical-item strong {
    color: white;
    font-weight: 600;
}

/* CTA sidebar */
.ct-sidebar-cta {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
}

.ct-sidebar-cta p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.ct-sidebar-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent-secondary);
    color: white;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.35s ease;
}

.ct-sidebar-cta-btn:hover {
    background: #b8854a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(200, 150, 90, 0.3);
}

/* === MAP SECTION === */
.contact-map-section {
    background: white;
    padding: 4rem 0;
}

.contact-map-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-map-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-map-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.contact-map-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.contact-map-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.contact-map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 50px var(--shadow-medium);
    border: 1px solid var(--border);
}

.contact-map-wrap iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}

/* Distance badges */
.contact-distances {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-distance {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-distance-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(78, 110, 88, 0.08);
    border-radius: 50%;
    color: var(--accent);
}

.contact-distance-icon svg {
    width: 16px;
    height: 16px;
}

.contact-distance strong {
    color: var(--text);
    font-weight: 600;
}

/* === RESPONSIVE === */
@media (max-width: 1100px) {
    .contact-main-layout {
        grid-template-columns: 1fr 340px;
        gap: 2rem;
    }
}

@media (max-width: 900px) {
    .contact-main-layout {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .ct-sidebar-cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .contact-strip-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .contact-form-card {
        padding: 1.75rem;
    }

    .ct-form-row {
        grid-template-columns: 1fr;
    }

    .ct-form-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .ct-submit-btn {
        justify-content: center;
    }

    .contact-sidebar {
        grid-template-columns: 1fr;
    }

    .contact-distances {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .contact-map-wrap iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .contact-main-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .contact-main-layout {
        padding: 0 0.75rem;
    }

    .contact-form-card {
        padding: 1.15rem;
    }

    .contact-form-intro h2 {
        font-size: 1.35rem;
    }

    .contact-form-intro p {
        font-size: 0.88rem;
    }

    .ct-field input,
    .ct-field select,
    .ct-field textarea {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .ct-subject-pills {
        gap: 0.35rem;
    }

    .ct-subject-pill {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
    }

    .ct-submit-btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }

    .ct-info-card {
        padding: 1.15rem;
    }

    .ct-practical-card {
        padding: 1.15rem;
    }

    .ct-practical-item {
        font-size: 0.82rem;
    }

    .ct-sidebar-cta {
        padding: 1.25rem;
    }

    .contact-strip {
        padding: 0.85rem 0;
    }

    .contact-chip {
        padding: 0.6rem 1rem;
    }

    .contact-chip-value {
        font-size: 0.85rem;
    }

    .contact-chip-icon {
        width: 30px;
        height: 30px;
    }

    .contact-chip-icon svg {
        width: 14px;
        height: 14px;
    }

    .contact-map-section {
        padding: 2.5rem 0;
    }

    .contact-map-container {
        padding: 0 0.75rem;
    }

    .contact-map-wrap iframe {
        height: 250px;
    }

    .contact-map-header h2 {
        font-size: 1.4rem;
    }

    /* Booking summary mobile */
    .ct-booking-summary {
        padding: 1rem;
    }

    .ct-booking-dates {
        gap: 0.75rem;
    }

    .ct-booking-date-value {
        font-size: 0.95rem;
    }

    .ct-booking-price-line {
        font-size: 0.8rem;
    }

    .ct-booking-total {
        font-size: 0.95rem;
    }
}
