/* Public consultation booking wizard — /consultations/book. Loaded only on this
   page (see resources/views/livewire/consultations/booking-wizard.blade.php).
   Reuses the site's own --maroon/--gold custom properties (almuhairi.css); adds
   one warm parchment neutral (--intake-cream) for this page's "case-file" feel. */

.consultation-page {
    --intake-cream: #F7F3EA;
    padding: 60px 0 100px;
    background: linear-gradient(180deg, var(--intake-cream) 0%, #fff 340px);
}

/* ---- Intake header (replaces the generic page-title banner) -------------- */
.intake-header {
    max-width: 640px;
    margin: 0 auto 40px;
    text-align: center;
}

.intake-header .eyebrow {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 2.5px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 14px;
}

html[dir="rtl"] .intake-header .eyebrow {
    letter-spacing: 0.5px;
}

.intake-header h1 {
    margin: 0 0 14px;
    color: var(--maroon-ink);
    font-size: 40px;
}

.intake-header .lede {
    margin: 0;
    color: #6b6155;
    font-size: 16px;
    line-height: 1.7;
}

/* ---- Step rail ------------------------------------------------------------ */
.step-rail {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    list-style: none;
    margin: 0 0 50px;
    padding: 0;
    max-width: 720px;
    margin-inline: auto;
}

.step-rail li {
    flex: 1 1 0;
    position: relative;
    text-align: center;
    font-size: 12px;
    color: #a89f8f;
}

.step-rail li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 15px;
    inset-inline-start: 50%;
    width: 100%;
    height: 1px;
    background: #e4dccb;
    z-index: 0;
}

.step-rail li.is-done:not(:last-child)::after {
    background: var(--gold);
}

.step-rail .dot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e4dccb;
    color: #a89f8f;
    font-size: 13px;
    font-weight: 600;
}

.step-rail li.is-current .dot {
    border-color: var(--maroon);
    color: var(--maroon);
    box-shadow: 0 0 0 4px rgba(122, 30, 43, .08);
}

.step-rail li.is-done .dot {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}

.step-rail li.is-current {
    color: var(--maroon-ink);
    font-weight: 600;
}

.step-rail .label {
    display: block;
}

/* Mobile: the 5-label rail doesn't fit — collapse to a compact progress line. */
@media (max-width: 640px) {
    .step-rail { display: none; }
    .step-rail-compact { display: flex; }
}

.step-rail-compact {
    display: none;
    align-items: center;
    gap: 12px;
    max-width: 420px;
    margin: 0 auto 34px;
}

.step-rail-compact .track {
    flex: 1 1 auto;
    height: 4px;
    border-radius: 999px;
    background: #e4dccb;
    overflow: hidden;
}

.step-rail-compact .track > span {
    display: block;
    height: 100%;
    background: var(--maroon);
    border-radius: 999px;
    transition: width .3s ease;
}

.step-rail-compact .caption {
    flex: none;
    font-size: 12px;
    color: #6b6155;
    white-space: nowrap;
}

/* ---- Two-column body (form + persistent summary) -------------------------- */
.intake-body {
    max-width: 1040px;
    margin: 0 auto;
}

.intake-body.has-summary {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .intake-body.has-summary {
        grid-template-columns: 1fr;
    }
    .intake-summary { order: 2; }
}

.intake-main {
    min-width: 0;
}

/* ---- Summary card (the page's signature element — a live docket of the
   visitor's own choices, styled like a case-file summary tab) --------------- */
.intake-summary {
    position: sticky;
    top: 24px;
    background: var(--maroon-ink);
    color: #f1e7d8;
    border-radius: var(--radius-card, 18px);
    padding: 26px 24px;
}

.intake-summary h4 {
    margin: 0 0 18px;
    color: var(--gold-soft);
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

html[dir="rtl"] .intake-summary h4 {
    letter-spacing: 0.5px;
}

.intake-summary dl {
    margin: 0;
}

.intake-summary .row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid rgba(241, 231, 216, .14);
    font-size: 14px;
}

.intake-summary .row:first-of-type {
    border-top: none;
}

.intake-summary .row dt {
    color: rgba(241, 231, 216, .6);
}

.intake-summary .row dd {
    margin: 0;
    text-align: end;
    font-weight: 600;
}

.intake-summary .placeholder {
    font-size: 13px;
    color: rgba(241, 231, 216, .55);
}

.intake-summary .total {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(241, 231, 216, .25);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.intake-summary .total dt {
    font-size: 13px;
    color: rgba(241, 231, 216, .7);
}

.intake-summary .total dd {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-soft);
}

/* ---- Service / method cards ------------------------------------------------ */
.consultation-services-grid,
.consultation-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

.consultation-card {
    position: relative;
    border: 1px solid #eee3d0;
    border-radius: var(--radius-card, 18px);
    padding: 26px 24px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow .25s var(--ease, ease), transform .25s var(--ease, ease), border-color .25s ease;
}

.consultation-card:hover {
    box-shadow: 0 16px 36px rgba(42, 14, 19, .1);
    transform: translateY(-3px);
    border-color: var(--gold);
}

.consultation-card .icon-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    color: #fff;
    font-size: 20px;
    margin-bottom: 4px;
}

.consultation-card h4 {
    margin: 0;
    color: var(--maroon-ink);
}

.consultation-card p {
    margin: 0;
    color: #756a5b;
    font-size: 14.5px;
    line-height: 1.6;
}

.consultation-card .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: #756a5b;
    margin-top: auto;
}

.consultation-card .price {
    font-weight: 700;
    color: var(--maroon);
}

.consultation-card .methods-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.consultation-card .methods-list span {
    background: var(--intake-cream, #F7F3EA);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    color: var(--maroon-ink);
}

.consultation-select-btn {
    margin-top: 6px;
    border: none;
    cursor: pointer;
    background: var(--maroon);
    color: #fff;
    border-radius: var(--radius-btn, 10px);
    padding: 12px 20px;
    font-weight: 600;
    transition: background .2s var(--ease, ease);
}

.consultation-select-btn:hover {
    background: var(--maroon-deep);
}

/* ---- Calendar --------------------------------------------------------------- */
.consultation-calendar-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 767px) {
    .consultation-calendar-layout {
        grid-template-columns: 1fr;
    }
}

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

.calendar-header button {
    border: 1px solid var(--maroon);
    background: transparent;
    color: var(--maroon);
    border-radius: 999px;
    width: 34px;
    height: 34px;
    cursor: pointer;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-weekdays {
    margin-bottom: 6px;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #a89f8f;
    padding-bottom: 2px;
}

.calendar-day {
    border: none;
    background: var(--intake-cream, #F7F3EA);
    border-radius: 10px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--maroon-ink);
    cursor: pointer;
    position: relative;
}

.calendar-day.is-today::after {
    content: "";
    position: absolute;
    bottom: 5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
}

.calendar-day[disabled] {
    opacity: .35;
    cursor: not-allowed;
}

.calendar-day.is-selected {
    background: var(--maroon);
    color: #fff;
}

.calendar-day.is-selected::after {
    background: #fff;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.slot-btn {
    border: 1px solid #e4dccb;
    background: #fff;
    color: var(--maroon-ink);
    border-radius: var(--radius-btn, 10px);
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.slot-btn:hover {
    border-color: var(--maroon);
}

.slot-btn.is-selected {
    background: var(--maroon);
    border-color: var(--maroon);
    color: #fff;
}

/* ---- Form card (step 4) ----------------------------------------------------- */
.intake-card {
    background: #fff;
    border: 1px solid #eee3d0;
    border-radius: var(--radius-card, 18px);
    padding: 30px;
}

/* The template's .default-form fields ship with border:1px solid transparent —
   fine on the dark maroon backgrounds it was designed for (footer contact form),
   where a white fill already reads clearly, but invisible here: a white field on
   this card's white background has no edge at all. Give the fields a visible
   parchment border (matching .slot-btn / .intake-card's own border tone) and a
   gold focus ring, same colour the template already uses on focus elsewhere. */
.intake-card .form-group input[type="text"],
.intake-card .form-group input[type="tel"],
.intake-card .form-group input[type="email"],
.intake-card .form-group select,
.intake-card .form-group textarea {
    border-color: #e4dccb;
}

.intake-card .form-group input[type="text"]:focus,
.intake-card .form-group input[type="tel"]:focus,
.intake-card .form-group input[type="email"]:focus,
.intake-card .form-group select:focus,
.intake-card .form-group textarea:focus {
    border-color: var(--maroon);
    outline: none;
}

.intake-consent {
    background: var(--intake-cream, #F7F3EA);
    border-radius: 12px;
    padding: 16px 18px;
    margin-top: 6px;
}

.intake-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
    color: var(--maroon-ink);
    cursor: pointer;
}

.intake-consent input[type="checkbox"] {
    margin-top: 4px;
}

.intake-consent p {
    margin: 6px 0 0 26px;
    font-size: 13px;
    color: #756a5b;
    line-height: 1.6;
}

html[dir="rtl"] .intake-consent p {
    margin: 6px 26px 0 0;
}

/* ---- Review table ------------------------------------------------------------ */
.consultation-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.consultation-summary-table tr {
    border-bottom: 1px solid #eee3d0;
}

.consultation-summary-table th,
.consultation-summary-table td {
    padding: 12px 6px;
    text-align: start;
}

.consultation-summary-table th {
    color: #756a5b;
    font-weight: 500;
    width: 45%;
}

.consultation-summary-table tr.total td {
    font-weight: 700;
    color: var(--maroon);
    font-size: 18px;
}

/* ---- Success screen ----------------------------------------------------------- */
.consultation-success {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border: 1px solid #eee3d0;
    border-radius: var(--radius-card, 18px);
}

.consultation-success .reference {
    display: inline-block;
    background: var(--intake-cream, #F7F3EA);
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 700;
    color: var(--maroon);
    margin: 16px 0;
    letter-spacing: 1px;
}

.consultation-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Forward action reads as gold (the accent colour) against maroon "Back" —
   same reasoning almuhairi.css already applies to the footer send button:
   gold stands out more clearly than the site-wide maroon button fill on these
   light cream/white step backgrounds, and it gives Continue/Submit a visual
   priority over Back. Mirrors that override's before/color pairing exactly. */
.wizard-nav .theme-btn.btn-style-one {
    background-color: var(--gold) !important;
    color: var(--maroon-ink) !important;
}
.wizard-nav .theme-btn.btn-style-one:before {
    background-color: #ffffff !important;
}

.wizard-error {
    background: #fdecea;
    color: #a12b2b;
    border-radius: 10px;
    padding: 12px 18px;
    margin-bottom: 20px;
}
