
/* ==========================================
   SERENITY — CONTACT & BOOKING
   ========================================== */

.booking-section {
    padding: 110px 0;
    background-color: #F8F7F3;
    color: #81755D;
}

/* ==========================================
   SECTION HEADER
   ========================================== */

.booking-header {
    max-width: 720px;
    margin: 0 auto 64px;
    text-align: center;
}

.booking-eyebrow {
    margin: 0 0 18px;
    color: #BD8A27;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.booking-title {
    margin: 0;
    color: #81755D;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.booking-description {
    max-width: 580px;
    margin: 24px auto 0;
    color: #81755D;
    font-size: 15px;
    line-height: 1.9;
}

.booking-divider {
    display: block;
    width: 56px;
    height: 1px;
    margin: 32px auto 0;
    background-color: #BD8A27;
}

/* ==========================================
   CALENDAR CONTAINER
   ========================================== */

.booking-calendar-wrapper {
    max-width: 760px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #FFFFFF;
    border: 1px solid rgba(129, 117, 93, 0.14);
    border-radius: 8px 48px 8px 48px;
    box-shadow: 0 20px 60px rgba(61, 53, 40, 0.045);
}

.booking-calendar {
    padding: clamp(24px, 5vw, 52px);
}

.booking-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
}

.booking-calendar-eyebrow {
    margin: 0 0 10px;
    color: #BD8A27;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.booking-calendar-month {
    margin: 0;
    color: #81755D;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 400;
    line-height: 1.2;
}

/* Calendar navigation */

.booking-calendar-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
}

.booking-calendar-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(129, 117, 93, 0.25);
    border-radius: 50%;
    color: #81755D;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;

    transition:
        color 300ms ease,
        background-color 300ms ease,
        border-color 300ms ease,
        transform 400ms ease;
}

.booking-calendar-nav:hover:not(:disabled) {
    background-color: #81755D;
    border-color: #81755D;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.booking-calendar-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ==========================================
   CALENDAR GRID
   ========================================== */

.booking-calendar-weekdays,
.booking-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.booking-calendar-weekdays {
    margin-bottom: 14px;
}

.booking-calendar-weekdays > * {
    padding: 12px 0;
    color: #BD8A27;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

.booking-calendar-days > * {
    min-width: 0;
}

/* Date buttons generated by booking.js */

.booking-calendar-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    padding: 0;

    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 50%;

    color: #81755D;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 400;
    cursor: pointer;

    transition:
        background-color 300ms ease,
        border-color 300ms ease,
        color 300ms ease,
        transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.booking-calendar-day:hover:not(:disabled) {
    background-color: rgba(125, 196, 189, 0.16);
    border-color: rgba(125, 196, 189, 0.4);
    transform: scale(1.04);
}

.booking-calendar-day:disabled,
.booking-calendar-day.is-disabled {
    color: rgba(129, 117, 93, 0.3);
    cursor: not-allowed;
}

.booking-calendar-day:disabled:hover {
    background-color: transparent;
    border-color: transparent;
    transform: none;
}

/* Selected date */

.booking-calendar-day.is-selected,
.booking-calendar-day.is-selected:hover {
    background-color: #81755D;
    border-color: #81755D;
    color: #FFFFFF;
}

/* Empty grid cells */

.booking-calendar-empty {
    width: 100%;
    aspect-ratio: 1;
}

/* Keyboard accessibility */

.booking-calendar-day:focus-visible,
.booking-calendar-nav:focus-visible,
.booking-change-date:focus-visible,
.booking-submit-button:focus-visible,
.booking-social-link:focus-visible {
    outline: 2px solid #BD8A27;
    outline-offset: 4px;
}

/* ==========================================
   CALENDAR FOOTER
   ========================================== */

.booking-calendar-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(129, 117, 93, 0.12);
}

.booking-calendar-legend {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #81755D;
    font-size: 12px;
}

.booking-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.booking-legend-selected {
    background-color: #81755D;
}

.booking-legend-disabled {
    background-color: rgba(129, 117, 93, 0.25);
}

.booking-calendar-hint {
    margin: 24px 0 0;
    color: #81755D;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

/* ==========================================
   APPOINTMENT FORM
   ========================================== */

.booking-form-wrapper {
    padding: clamp(24px, 5vw, 52px);
    border-top: 1px solid rgba(129, 117, 93, 0.12);
    background-color: #FCFBF9;
    animation: booking-fade-in 650ms ease both;
}

/* Respect HTML hidden attribute */

.booking-form-wrapper[hidden],
.booking-form-feedback[hidden] {
    display: none;
}

@keyframes booking-fade-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Selected date summary */

.booking-selected-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 42px;
    padding: 22px 26px;
    background-color: rgba(125, 196, 189, 0.1);
    border: 1px solid rgba(125, 196, 189, 0.2);
    border-radius: 8px 24px 8px 24px;
}

.booking-selected-label {
    margin: 0 0 8px;
    color: #BD8A27;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.booking-selected-value {
    margin: 0;
    color: #81755D;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.3;
}

.booking-change-date {
    padding: 8px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #BD8A27;
    color: #BD8A27;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: color 300ms ease;
}

.booking-change-date:hover {
    color: #81755D;
}

/* Form header */

.booking-form-header {
    margin-bottom: 34px;
}

.booking-form-header h3 {
    margin: 0 0 12px;
    color: #81755D;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 400;
    line-height: 1.3;
}

.booking-form-header p {
    margin: 0;
    color: #81755D;
    font-size: 14px;
    line-height: 1.8;
}

/* Form fields */

.booking-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 22px;
}

.booking-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 10px;
}

.booking-field-full {
    grid-column: 1 / -1;
}

.booking-field label {
    color: #81755D;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.booking-field input,
.booking-field select,
.booking-field textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 15px 17px;

    background-color: #FFFFFF;
    border: 1px solid rgba(129, 117, 93, 0.25);
    border-radius: 5px;

    color: #81755D;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;

    transition:
        border-color 300ms ease,
        box-shadow 300ms ease;
}

.booking-field input,
.booking-field select {
    min-height: 50px;
}

.booking-field textarea {
    min-height: 120px;
    resize: vertical;
}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
    outline: none;
    border-color: #7DC4BD;
    box-shadow: 0 0 0 3px rgba(125, 196, 189, 0.15);
}

.booking-field input::placeholder,
.booking-field textarea::placeholder {
    color: rgba(129, 117, 93, 0.5);
}

.booking-field select {
    cursor: pointer;
}

/* Submit */

.booking-form-actions {
    margin-top: 38px;
    text-align: center;
}

.booking-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    min-height: 54px;
    padding: 14px 32px;

    background-color: #BD8A27;
    border: 1px solid #BD8A27;
    border-radius: 4px;

    color: #FFFFFF;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;

    transition:
        background-color 350ms ease,
        border-color 350ms ease,
        transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.booking-submit-button:hover:not(:disabled) {
    background-color: #A47720;
    border-color: #A47720;
    transform: translateY(-2px);
}

.booking-submit-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.booking-form-disclaimer {
    margin: 18px 0 0;
    color: #81755D;
    font-size: 12px;
    line-height: 1.7;
}

.booking-form-feedback {
    margin: 24px 0 0;
    padding: 16px 20px;
    background-color: rgba(125, 196, 189, 0.12);
    border: 1px solid rgba(125, 196, 189, 0.3);
    border-radius: 6px;
    color: #81755D;
    font-size: 13px;
    line-height: 1.7;
}

/* ==========================================
   SOCIAL CONTACT
   ========================================== */

.booking-social {
    max-width: 760px;
    margin: 72px auto 0;
}

.booking-social-header {
    margin-bottom: 32px;
    text-align: center;
}

.booking-social-header h3 {
    margin: 0 0 12px;
    color: #81755D;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3vw, 32px);
    font-weight: 400;
}

.booking-social-header p {
    margin: 0;
    color: #81755D;
    font-size: 14px;
    line-height: 1.8;
}

.booking-social-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.booking-social-link {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    padding: 24px 22px;

    background-color: #FFFFFF;
    border: 1px solid rgba(129, 117, 93, 0.15);
    border-radius: 8px 30px 8px 30px;

    color: #81755D;
    text-decoration: none;

    transition:
        transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 350ms ease,
        box-shadow 600ms ease;
}

.booking-social-link:hover {
    transform: translateY(-4px);
    border-color: rgba(189, 138, 39, 0.4);
    box-shadow: 0 14px 34px rgba(61, 53, 40, 0.06);
}

.booking-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 50px;
    height: 50px;

    background-color: rgba(125, 196, 189, 0.12);
    border-radius: 50%;
    color: #BD8A27;
}

.booking-social-icon svg {
    width: 23px;
    height: 23px;
    stroke-width: 1.6;
}

.booking-social-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 6px;
}

.booking-social-content strong {
    color: #81755D;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 400;
}

.booking-social-content > span {
    color: #81755D;
    font-size: 12px;
    line-height: 1.5;
}

.booking-social-arrow {
    flex-shrink: 0;
    align-self: flex-start;
    color: #BD8A27;
    font-size: 20px;
    transition: transform 350ms ease;
}

.booking-social-link:hover .booking-social-arrow {
    transform: translate(3px, -3px);
}

/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 900px) {
    .booking-section {
        padding: 80px 0;
    }

    .booking-header {
        margin-bottom: 48px;
    }

    .booking-social {
        margin-top: 56px;
    }
}

/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 600px) {
    .booking-section {
        padding: 64px 0;
    }

    .booking-header {
        margin-bottom: 36px;
    }

    .booking-calendar-wrapper {
        border-radius: 8px 32px 8px 32px;
    }

    .booking-calendar {
        padding: 28px 16px 32px;
    }

    .booking-calendar-header {
        gap: 12px;
        margin-bottom: 26px;
    }

    .booking-calendar-month {
        font-size: 25px;
    }

    .booking-calendar-navigation {
        gap: 6px;
    }

    .booking-calendar-nav {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .booking-calendar-weekdays,
    .booking-calendar-days {
        gap: 3px;
    }

    .booking-calendar-weekdays > * {
        padding: 8px 0;
        font-size: 10px;
    }

    .booking-calendar-day {
        font-size: 14px;
    }

    .booking-calendar-footer {
        gap: 14px;
        margin-top: 24px;
        padding-top: 20px;
    }

    .booking-calendar-legend {
        font-size: 11px;
    }

    .booking-calendar-hint {
        font-size: 12px;
    }

    .booking-form-wrapper {
        padding: 30px 20px;
    }

    .booking-selected-date {
        padding: 20px;
        margin-bottom: 32px;
    }

    .booking-selected-value {
        font-size: 19px;
    }

    .booking-form-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .booking-field-full {
        grid-column: auto;
    }

    .booking-submit-button {
        width: 100%;
        min-width: 0;
    }

    .booking-social {
        margin-top: 52px;
    }

    .booking-social-links {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .booking-social-link {
        padding: 22px 20px;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    .booking-calendar-nav,
    .booking-calendar-day,
    .booking-change-date,
    .booking-submit-button,
    .booking-social-link,
    .booking-social-arrow,
    .booking-field input,
    .booking-field select,
    .booking-field textarea {
        transition: none;
    }

    .booking-form-wrapper {
        animation: none;
    }
}

/* SMS: visible only on mobile */

.booking-sms {
    display: none;
}

@media (max-width: 600px) {
    .booking-sms {
        display: flex;
    }
}

.booking-sms {
    display: none;
}


/* ==========================================
   BOOKING SOCIAL - CONTACT PRIORITY
   ========================================== */

/* Keep all contact channels available */
.booking-social-link.booking-sms,
.booking-social-link.booking-call {
    display: flex;
}

/* Highlight SMS as the primary option */
.booking-social-link.booking-sms {
    background-color: #F0F8F6;
    border-color: #7DC4BD;
}

.booking-social-link.booking-sms .booking-social-icon {
    color: #514938;
}

/* Preserve readable text */
.booking-social-link.booking-sms strong,
.booking-social-link.booking-call strong {
    font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {

    .booking-social-links {
        display: grid;
        grid-template-columns: 1fr;
    }

    .booking-social-link.booking-sms {
        order: 1;
    }

    .booking-social-link.booking-call {
        order: 2;
    }

    .booking-social-link.booking-whatsapp {
        order: 3;
    }

    .booking-social-link.booking-instagram {
        order: 4;
    }
}


/* ==========================================
   PREFERRED CONTACT METHOD
   ========================================== */

.booking-contact-method {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
}

.booking-contact-method legend {
    width: 100%;
    margin-bottom: 8px;
    padding: 0;

    color: #514938;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.booking-contact-method-description {
    margin: 0 0 18px;
    color: #81755D;
    font-size: 13px;
    line-height: 1.6;
}

/* Options grid */

.booking-contact-method-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* Each option */

.booking-contact-method-option {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 0;
    min-height: 58px;
    box-sizing: border-box;
    margin: 0;
    padding: 12px 14px;

    background: #FFFFFF;
    border: 1px solid rgba(129, 117, 93, 0.25);
    border-radius: 8px 18px 8px 18px;

    cursor: pointer;
    transition:
        background-color 250ms ease,
        border-color 250ms ease;
}

/* Reset inherited form input styles */

.booking-contact-method-option input[type="radio"] {
    appearance: auto;
    -webkit-appearance: radio;

    display: inline-block;
    position: static;

    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;

    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 50%;
    box-shadow: none;

    accent-color: #4F8F86;
    cursor: pointer;
}

/* Icons */

.booking-contact-method-option svg {
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #81755D;
    stroke-width: 1.8;
}

/* Text */

.booking-contact-method-option span {
    flex: 1;
    min-width: 0;
    color: #514938;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

/* Selected option */

.booking-contact-method-option:has(input[type="radio"]:checked) {
    background: #F0F8F6;
    border-color: #7DC4BD;
}

.booking-contact-method-option:has(input[type="radio"]:checked) svg {
    color: #4F8F86;
}

.booking-contact-method-option:hover {
    border-color: #7DC4BD;
    background: #F0F8F6;
}

.booking-contact-method-option:has(input:focus-visible) {
    outline: 2px solid #4F8F86;
    outline-offset: 3px;
}

/* Conditional email field */

.booking-contact-email {
    margin-top: 18px;
}

.booking-contact-email[hidden] {
    display: none;
}

.booking-contact-email label {
    display: block;
    margin-bottom: 8px;
}

/* Mobile */

@media (max-width: 768px) {

    .booking-contact-method-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .booking-contact-method-option {
        min-height: 58px;
        padding: 12px 14px;
    }

    .booking-contact-method-option span {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .booking-contact-method-option {
        transition: none;
    }
}
