/* =========================================================
   FM HAIRSTYLE — BOOKING CALENDAR
   Hero calendar wrapper, calendar component, day timeline,
   appointment modal, and booking form.
========================================================= */

/* =========================================================
   HERO BOOKING CALENDAR (Desktop only)
========================================================= */
.fm-hero-calendar-wrapper {
    position: relative;
    width: 100%;
    max-width: 620px;
    height: min(720px, 78vh);
    margin-left: auto;
    background: rgba(18, 15, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(217, 140, 107, 0.30);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,0.03);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px) scale(0.97);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    padding-top: 8px;
}

.fm-hero-calendar-wrapper.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
}

.fm-hero-calendar-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0.75rem 0.75rem 0.75rem;
}

/* =========================================================
   CLOSE BUTTON — Top right, above everything
========================================================= */
.fm-calendar-close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(248, 241, 236, 0.12);
    background: rgba(18, 15, 16, 0.85);
    color: #F8F1EC;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.85rem;
}

.fm-calendar-close:hover {
    background: var(--fm-dusty-pink, #D96A8A);
    color: #120F10;
    transform: rotate(90deg);
}

/* Hide calendar wrapper on mobile */
@media (max-width: 991px) {
    .fm-hero-calendar-wrapper {
        display: none;
    }
}

/* =========================================================
   CALENDAR COMPONENT STYLES
========================================================= */
.fm-calendar-component {
    padding: 0 0 1rem 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fm-calendar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* =========================================================
   CALENDAR HEADER
========================================================= */
.fm-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0 1.25rem 0;
    border-bottom: 1px solid rgba(248, 241, 236, 0.08);
    margin-top: 0;
    position: relative;
}

.fm-calendar-header .calendar-nav-btn:last-of-type {
    margin-right: 38px;
}

.calendar-title {
    text-align: center;
    flex: 1;
}

.calendar-small-title {
    display: block;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 10px;
    color: rgba(248, 241, 236, 0.4);
    margin-bottom: 2px;
}

.calendar-subtitle {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: rgba(248, 241, 236, 0.35);
    letter-spacing: 0.5px;
    margin-top: -2px;
}

.calendar-title h2 {
    font-family: 'Playfair Display', serif;
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #F8F1EC;
}

.calendar-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(248, 241, 236, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #F8F1EC;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.calendar-nav-btn:hover:not(:disabled) {
    background: var(--fm-dusty-pink, #D96A8A);
    border-color: var(--fm-dusty-pink, #D96A8A);
    color: #120F10;
}

.calendar-nav-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

/* =========================================================
   CALENDAR INSTRUCTION
========================================================= */
.calendar-instruction {
    text-align: center;
    padding: 0.6rem 0.75rem;
    margin: 0.75rem 0 1rem 0;
    background: rgba(217, 140, 107, 0.05);
    border: 1px solid rgba(217, 140, 107, 0.06);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(248, 241, 236, 0.5);
}

.calendar-instruction i {
    color: var(--fm-rose-gold, #D98C6B);
    margin-right: 8px;
    font-size: 0.85rem;
}

/* =========================================================
   CALENDAR WEEKDAYS
========================================================= */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 0.5rem 0 0.5rem 0;
}

.calendar-weekdays div {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(248, 241, 236, 0.3);
}

/* =========================================================
   CALENDAR GRID
========================================================= */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    flex: 1;
}

.calendar-day {
    position: relative;
    min-height: 65px;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    border-radius: 8px;
    padding: 6px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.calendar-day:hover:not(.other-month):not(.past-date) {
    background: rgba(255, 255, 255, 0.06);
}

.calendar-day.other-month {
    opacity: 0.25;
    pointer-events: none;
}

.calendar-day.past-date {
    opacity: 0.3;
    pointer-events: none;
    cursor: not-allowed;
}

.calendar-day.today {
    background: rgba(217, 140, 107, 0.12);
    border: 1px solid rgba(217, 140, 107, 0.2);
}

.calendar-day.has-booking {
    background: rgba(217, 140, 107, 0.06);
}

.calendar-day.has-booking:hover:not(.other-month):not(.past-date) {
    background: rgba(217, 140, 107, 0.12);
}

.calendar-date-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #F8F1EC;
}

.calendar-day.today .calendar-date-number {
    background: var(--fm-dusty-pink, #D96A8A);
    color: #120F10;
}

.booking-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-weight: 500;
    color: rgba(248, 241, 236, 0.4);
}

.booking-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--fm-rose-gold, #D98C6B);
    flex-shrink: 0;
}

/* =========================================================
   CALENDAR LEGEND
========================================================= */
.calendar-legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid rgba(248, 241, 236, 0.04);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: rgba(248, 241, 236, 0.4);
}

.legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fm-rose-gold, #D98C6B);
}

.legend-dot.today-dot {
    background: var(--fm-dusty-pink, #D96A8A);
}

.legend-dot.past-dot {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-dot.available-dot {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(217, 140, 107, 0.3);
}

/* =========================================================
   PROPORTIONAL TIMELINE — DAY TIMELINE
========================================================= */
.day-timeline {
    width: 100%;
    height: 380px;
    max-height: 380px;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    border: 1px solid rgba(248, 241, 236, 0.06);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    scrollbar-width: thin;
    scrollbar-color: rgba(217, 140, 107, 0.4) rgba(255, 255, 255, 0.02);
    position: relative;
    margin-top: 0.5rem;
}

.day-timeline::-webkit-scrollbar {
    width: 5px;
}

.day-timeline::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
}

.day-timeline::-webkit-scrollbar-thumb {
    background: rgba(217, 140, 107, 0.4);
    border-radius: 20px;
}

.day-timeline::-webkit-scrollbar-thumb:hover {
    background: #D98C6B;
}

.timeline-canvas {
    position: relative;
    width: 100%;
    min-width: 100%;
}

.timeline-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.timeline-grid .hour-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(248, 241, 236, 0.06);
    border: none;
}

.timeline-grid .hour-line.major {
    background: rgba(248, 241, 236, 0.1);
    height: 1.5px;
}

.timeline-grid .hour-line .hour-label {
    position: absolute;
    left: 6px;
    top: -7px;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 600;
    color: rgba(248, 241, 236, 0.25);
    background: rgba(18, 15, 16, 0.9);
    padding: 0 5px;
    border-radius: 3px;
    pointer-events: none;
}

.timeline-grid .half-hour-tick {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(248, 241, 236, 0.03);
    border: none;
}

.timeline-appointments {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.timeline-slot {
    position: absolute;
    left: 0;
    width: 100%;
    cursor: pointer;
    transition: all 0.15s ease;
    border-radius: 3px;
    border: 1px solid transparent;
    min-height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-slot:hover {
    background: rgba(217, 140, 107, 0.06);
    border-color: rgba(217, 140, 107, 0.12);
}

.timeline-slot .slot-label {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 600;
    color: #F8F1EC;
    letter-spacing: 0.3px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.timeline-slot:hover .slot-label {
    color: var(--fm-rose-gold, #D98C6B);
}

.timeline-slot.past-slot .slot-label {
    color: rgba(248, 241, 236, 0.28);
}

.timeline-slot.past-slot {
    opacity: 1;
    cursor: not-allowed;
}

.timeline-slot.past-slot:hover {
    background: transparent;
    border-color: transparent;
}

.timeline-booking-block {
    position: absolute;
    left: 3px;
    right: 3px;
    z-index: 5;
    background: rgba(217, 140, 107, 0.15);
    border-left: 3px solid var(--fm-rose-gold, #D98C6B);
    border-radius: 5px;
    padding: 4px 8px;
    cursor: default;
    pointer-events: none;
    overflow: hidden;
    min-height: 24px;
    box-shadow: 0 2px 8px rgba(217, 140, 107, 0.06);
}

.timeline-booking-block .booking-time {
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-weight: 700;
    color: var(--fm-rose-gold, #D98C6B);
    letter-spacing: 0.2px;
    margin-bottom: 1px;
}

.timeline-booking-block .booking-name {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #F8F1EC;
    line-height: 1.2;
}

.timeline-booking-block .booking-service {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    color: rgba(248, 241, 236, 0.35);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-booking-block .booking-lock {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 9px;
    color: rgba(217, 140, 107, 0.3);
}

/* =========================================================
   MODAL STYLES (day appointments)
========================================================= */
.fm-day-modal {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #1a1415;
    color: #F8F1EC;
}

.fm-day-modal .modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(248, 241, 236, 0.06);
    background: #1a1415;
    flex-shrink: 0;
}

.fm-day-modal .modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: #F8F1EC;
}

.fm-day-modal .modal-body {
    background: #1a1415;
    padding: 18px 22px 22px;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.fm-day-modal .btn-close {
    filter: invert(1) brightness(0.7);
    opacity: 0.6;
}

.fm-day-modal .btn-close:hover {
    opacity: 1;
}

.modal-small-title {
    display: block;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    color: rgba(248, 241, 236, 0.35);
    margin-bottom: 3px;
}

.day-appointment-summary {
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(248, 241, 236, 0.5);
    flex-shrink: 0;
}

/* =========================================================
   BOOKING FORM — CONTAINER
========================================================= */
.booking-form-container {
    display: none;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    border: 1px solid rgba(248, 241, 236, 0.06);
    margin-top: 0.75rem;
}

.booking-form-container.active {
    display: block;
    animation: fadeInUp 0.35s ease;
}

.booking-form-container .form-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #F8F1EC;
    margin-bottom: 0.15rem;
}

.booking-form-container .form-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--fm-rose-gold, #D98C6B);
    margin-bottom: 1rem;
}

.booking-form-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-row .full-width {
    grid-column: 1 / -1;
}

/* =========================================================
   BOOKING FORM — UNIFIED FIELD SYSTEM
========================================================= */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* ---------------------------------------------------------
   ALL FIELD LABELS
--------------------------------------------------------- */
.form-group .form-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.55px;

    /* Turquoise — matches the service info panel labels */
    color: #40E0D0;

    margin-bottom: 0;
}

/* ---------------------------------------------------------
   ALL INPUTS / SELECTS / TEXTAREAS
   ONE CONSISTENT VISUAL SYSTEM
--------------------------------------------------------- */
.form-group .form-control {
    width: 100%;

    background-color: #211C1D;
    border: 1px solid rgba(248, 241, 236, 0.10);
    border-radius: 7px;

    padding: 0.7rem 0.9rem;

    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;

    color: #F8F1EC;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

/* ---------------------------------------------------------
   FOCUS
   Keep same background — only border/glow changes
--------------------------------------------------------- */
.form-group .form-control:focus {
    background-color: #211C1D;
    border-color: var(--fm-rose-gold, #D98C6B);

    box-shadow:
        0 0 0 3px rgba(217, 140, 107, 0.08);

    color: #F8F1EC;
    outline: none;
}

/* ---------------------------------------------------------
   PLACEHOLDERS
--------------------------------------------------------- */
.form-group .form-control::placeholder {
    color: rgba(248, 241, 236, 0.38);
    opacity: 1;
}

/* ---------------------------------------------------------
   AUTO-POPULATED / READONLY FIELDS
   Same background, border, size and typography.
   ONLY the text becomes slightly muted.
--------------------------------------------------------- */
.form-group .form-control[readonly] {
    background-color: #211C1D;
    border: 1px solid rgba(248, 241, 236, 0.10);

    color: rgba(248, 241, 236, 0.65);

    opacity: 1;
    cursor: default;
}

.form-group .form-control[readonly]:focus {
    background-color: #211C1D;
    border-color: rgba(248, 241, 236, 0.10);
    box-shadow: none;
}

/* =========================================================
   CHROME / EDGE AUTOFILL FIX
   Prevent browser autofill from changing field background.
========================================================= */

.form-group input.form-control:-webkit-autofill,
.form-group input.form-control:-webkit-autofill:hover,
.form-group input.form-control:-webkit-autofill:focus,
.form-group input.form-control:-webkit-autofill:active {
    -webkit-text-fill-color: #F8F1EC !important;

    -webkit-box-shadow:
        0 0 0 1000px #211C1D inset !important;

    box-shadow:
        0 0 0 1000px #211C1D inset !important;

    caret-color: #F8F1EC;

    border: 1px solid rgba(248, 241, 236, 0.10);

    transition: background-color 9999s ease-out 0s;
}

/* =========================================================
   STANDARD AUTOFILL SUPPORT
========================================================= */

.form-group input.form-control:autofill {
    background-color: #211C1D !important;
    color: #F8F1EC !important;
}

/* ---------------------------------------------------------
   SELECTS
--------------------------------------------------------- */
.form-group select.form-control {
    appearance: none;
    -webkit-appearance: none;

    background-color: #211C1D;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D98C6B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 0.9rem center;

    padding-right: 2.5rem;

    color: #F8F1EC;
}

/* Dropdown menu options */
.form-group select.form-control option {
    background-color: #211C1D;
    color: #F8F1EC;

    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}

/* ---------------------------------------------------------
   TEXTAREA
--------------------------------------------------------- */
.form-group textarea.form-control {
    resize: vertical;
    min-height: 70px;

    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;

    background-color: #211C1D;
    color: #F8F1EC;
}

/* =========================================================
   FORM BUTTONS
========================================================= */
.btn-back-to-timeline-pink {
    background: var(--fm-dusty-pink, #D96A8A);
    color: #120F10;
    border: none;
    padding: 0.35rem 1rem;
    border-radius: 7px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-back-to-timeline-pink:hover {
    background: var(--fm-dusty-pink-dark, #C45A7A);
    color: #F8F1EC;
    transform: translateX(-3px);
}

.btn-back-to-timeline-pink i {
    font-size: 0.7rem;
}

.btn-confirm-booking {
    background: var(--fm-dusty-pink, #D96A8A);
    color: #120F10;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 7px;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
}

.btn-confirm-booking:hover {
    background: var(--fm-dusty-pink-dark, #C45A7A);
    color: #F8F1EC;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 106, 138, 0.25);
}

.btn-confirm-booking i {
    margin-right: 6px;
}

/* =========================================================
   SELECTED SERVICE INFORMATION PANEL
   Two-column grid:
     Row 1: Vue de face   | Vue de dos
     Row 2: Durée estimée | Heure de fin prévue
     Row 3: Prix          | Acompte
     Row 4: À propos de cette coiffure (full width)
========================================================= */
.selected-service-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;

    padding: 0.85rem;
    margin-top: 0.25rem;

    background: #211C1D;

    border: 1px solid rgba(217, 140, 107, 0.28);
    border-radius: 10px;
}

/* ---------------------------------------------------------
   INDIVIDUAL AUTO-POPULATED CELLS
--------------------------------------------------------- */
.service-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;

    padding: 0.65rem 0.75rem;

    background: #211C1D;

    border: 1px solid rgba(248, 241, 236, 0.10);
    border-radius: 7px;

    min-width: 0;
}

/* ---------------------------------------------------------
   AUTO-POPULATED LABELS
   Same turquoise as the form labels.
--------------------------------------------------------- */
.service-info-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;

    text-transform: uppercase;
    letter-spacing: 0.55px;

    color: #40E0D0;
}

/* ---------------------------------------------------------
   AUTO-POPULATED VALUES
--------------------------------------------------------- */
.service-info-item strong {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;

    color: rgba(248, 241, 236, 0.68);

    letter-spacing: 0;
}

/* ---------------------------------------------------------
   ROW 1 — IMAGE CELLS
   Fixed-height preview windows over the source images.
   object-fit keeps the portrait images undistorted.
--------------------------------------------------------- */
.service-image-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.service-image-preview {
    position: relative;

    width: 100%;
    height: 150px;

    overflow: hidden;

    background: #181415;

    border: 1px solid rgba(248, 241, 236, 0.08);
    border-radius: 6px;
}

.service-image-preview img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 30%;
}

/* ---------------------------------------------------------
   ROW 4 — DESCRIPTION (spans both columns)
--------------------------------------------------------- */
.service-info-description {
    grid-column: 1 / -1;
}

.service-info-description-field {
    width: 100%;
    min-height: 70px;

    padding: 0.7rem 0.9rem;

    background: #211C1D;

    border: 1px solid rgba(248, 241, 236, 0.10);
    border-radius: 7px;

    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;

    color: rgba(248, 241, 236, 0.68);

    resize: none;
    outline: none;
}

.service-info-description-field::placeholder {
    color: rgba(248, 241, 236, 0.38);
    opacity: 1;
}

.service-info-description-field:focus {
    background: #211C1D;
    border-color: rgba(248, 241, 236, 0.10);
    box-shadow: none;
}

/* =========================================================
   BOOTSTRAP APPOINTMENT MODAL — FINAL LAYERING
========================================================= */
#appointmentDayModal {
    z-index: 1060 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

#appointmentDayModal .modal-dialog,
#appointmentDayModal .modal-content,
#appointmentDayModal .modal-body {
    pointer-events: auto !important;
}

#dayTimeline {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    pointer-events: auto !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch;
}

/* =========================================================
   BOOKING CALENDAR — RESPONSIVE
========================================================= */
@media (max-width: 576px) {

    .day-timeline {
        height: 50vh;
        max-height: 50vh;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .booking-form-container {
        padding: 0.75rem;
    }

    .booking-form-container .form-title {
        font-size: 1.1rem;
    }

    .booking-form-container .form-subtitle {
        font-size: 0.7rem;
    }

    .fm-calendar-header .calendar-nav-btn:last-of-type {
        margin-right: 32px;
    }

    .calendar-title h2 {
        font-size: 18px;
    }

    /* Keep the 2-column grid on mobile so the two hairstyle
       preview images remain side by side for comparison. */
    .selected-service-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0.7rem;
        gap: 0.55rem;
    }

    .service-info-item {
        padding: 0.55rem 0.6rem;
    }

    .service-image-preview {
        height: 130px;
    }

    .service-info-description {
        grid-column: 1 / -1;
    }

    .service-info-item strong,
    .service-info-item:nth-child(4) strong {
        font-size: 0.82rem;
    }
}