@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

:root {
    --gold: #d4af37;
    --gold-dark: #8b6508;
    --gold-deep: #6f4f05;
    --gold-soft: #fff3cf;
    --cream: #fffaf0;
    --cream-2: #fdf6e7;
    --dark: #2b2113;
    --text: #5f513c;
    --muted: #8a7a62;
    --white: #ffffff;
    --line: #ead9b0;
    --bg: #fdf6e7;
    --shadow: 0 22px 55px rgba(139, 101, 8, 0.14);
    --shadow-soft: 0 10px 30px rgba(139, 101, 8, 0.12);
}

.required {
    color: #dc2626;
    font-weight: 700;
}

body {
    background: var(--bg);
    min-height: 100vh;
    color: var(--dark);
}

.back-home-btn {
    z-index: 100;
    height: 42px;
    color: var(--dark);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    align-items: center;
    gap: 9px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.25s;
    display: inline-flex;
    position: fixed;
    top: 22px;
    left: 42px;
}

.back-home-btn:hover {
    color: var(--gold-dark);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.page-wrapper {
    width: 100%;
    min-height: 100vh;
    padding: 42px 7%;
}

.hero-card {
    min-height: auto;
    color: var(--dark);
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.hero-card::before,
.hero-card::after {
    display: none;
}

.hero-card > div:first-child {
    text-align: right;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    max-width: 760px;
    display: flex;
}

.hero-card h1 {
    letter-spacing: -2px;
    color: #2f2417;
    max-width: 700px;
    margin: 10px 0;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.05;
}

.hero-card h1 span {
    color: var(--gold);
}

.hero-card p {
    max-width: 620px;
}

.eyebrow {
    width: fit-content;
    color: var(--gold-dark);
    background: #fff4d6;
    border: 1px solid #f2d58b;
    border-radius: 999px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
}

.eyebrow i {
    color: var(--gold-dark);
}

.hero-info {
    display: none;
}

.booking-layout {
    grid-template-columns: minmax(360px, 0.95fr) minmax(520px, 1.25fr);
    grid-template-areas:
        "form calendar"
        "time time";
    align-items: flex-start;
    gap: 36px;
    width: 100%;
    margin-top: 34px;
    display: grid;
}

.form-card {
    grid-area: form;
}

.calendar-card {
    grid-area: calendar;
}

.calendar-card,
.form-card {
    box-shadow: none;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.card-heading,
.time-title,
.step-box {
    margin-bottom: 20px;
}

.card-heading {
    display: block;
}

.step-box span,
.card-heading span,
.time-title span {
    border: 1px solid var(--dark);
    width: fit-content;
    color: var(--dark);
    text-transform: none;
    letter-spacing: 0;
    background: #fff;
    border-radius: 4px;
    margin-bottom: 16px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
}

.step-box h2,
.card-heading h2,
.time-title h2 {
    color: var(--gold);
    font-size: 20px;
    font-weight: 800;
}

.calendar-nav {
    background: #faf7f1;
    border-radius: 8px;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-top: 12px;
    padding: 6px;
    display: flex;
}

.calendar-nav strong {
    min-width: 150px;
    color: var(--dark);
    text-align: center;
    font-size: 14px;
}

.calendar-nav button {
    border: 1px solid var(--line);
    width: 34px;
    height: 34px;
    color: var(--gold-dark);
    cursor: pointer;
    background: #fff;
    border-radius: 8px;
}

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

.weekdays {
    margin-bottom: 10px;
}

.weekdays span {
    color: var(--muted);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

.day {
    border: 1px solid var(--line);
    height: 46px;
    color: var(--dark);
    cursor: pointer;
    background: #fff;
    border-radius: 9px;
    font-weight: 600;
}

.day:hover {
    border-color: var(--gold);
    background: var(--gold-soft);
    color: var(--gold-dark);
}

.day.active {
    background: var(--gold);
    color: #fff;
}

.day.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.day.empty {
    pointer-events: none;
    background: transparent;
    border: none;
}

.time-card {
    background: transparent;
    border: none;
    border-radius: 0;
    margin-top: 30px;
    padding: 0;
}

.time-card.time-card-wide {
    grid-area: time;
    margin-top: 0;
}

.time-title {
    display: block;
}

.time-title p {
    color: var(--muted);
    margin-top: -8px;
    font-size: 12px;
}

.time-slots {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-height: none;
    padding-right: 0;
    display: grid;
    overflow: visible;
}

.time-slot {
    border: 1px solid var(--line);
    height: 48px;
    color: var(--dark);
    cursor: pointer;
    background: #fff;
    border-radius: 10px;
    font-weight: 600;
}

.time-slot:hover {
    border-color: var(--gold);
    background: var(--gold-soft);
    color: var(--gold-dark);
}

.time-slot.active {
    background: var(--gold);
    color: #fff;
}

.form-card {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background-color: #fff;
    background-image:
        radial-gradient(circle, rgba(217, 184, 95, 0.08) 1px, transparent 1px),
        none;
    background-position: 0 0, 0 0;
    background-repeat: repeat, repeat;
    background-size: 9px 9px;
    background-attachment: scroll, scroll;
    background-origin: padding-box, padding-box;
    background-clip: border-box, border-box;
    border-radius: 6px;
    padding: 34px;
}

.summary-box {
    border: none;
    border-bottom: 1px dashed var(--line);
    background: transparent;
    border-radius: 0;
    margin-bottom: 26px;
    padding: 0 0 22px;
}

.summary-box h2 {
    color: var(--gold);
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 800;
}

.summary-box p {
    color: var(--text);
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    display: flex;
}

.summary-box i {
    color: var(--gold-dark);
}

.input-group {
    margin-bottom: 20px;
}

.input-group > label {
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    display: block;
}

.input-group input,
#reasonBtn {
    border: 1px solid var(--line);
    width: 100%;
    height: 50px;
    color: var(--dark);
    background: #fff;
    border-radius: 10px;
    outline: none;
    padding: 0 14px;
    font-size: 14px;
}

.input-group input:focus,
#reasonBtn:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(217, 184, 95, 0.18);
}

.phone-field {
    width: 100%;
}

.phone-field input {
    width: 100%;
    height: 50px;
    padding-left: 92px !important;
}

.phone-input-wrapper {
    align-items: center;
    gap: 10px;
    display: flex;
}

#phoneCountry {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    outline: none;
    width: 120px;
    height: 48px;
    padding: 0 12px;
    font-size: 14px;
}

#phoneNumber {
    flex: 1;
}

.location-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    display: grid;
}

.location-option {
    border: 1px solid var(--line);
    cursor: pointer;
    background: #fff;
    border-radius: 10px;
    align-items: center;
    min-height: 70px;
    padding: 14px 14px 14px 46px;
    display: flex;
    position: relative;
}

.location-option input {
    display: none;
}

.radio-design {
    border: 2px solid var(--gold);
    background: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    position: absolute;
    left: 15px;
}

.radio-design::after {
    content: "";
    background: var(--gold-dark);
    border-radius: 50%;
    width: 9px;
    height: 9px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
}

.location-option strong {
    color: var(--dark);
    font-size: 13px;
}

.location-option:hover,
.location-option:has(input:checked) {
    border-color: var(--gold);
    background: var(--gold-soft);
}

.location-option:has(input:checked) .radio-design::after {
    transform: translate(-50%, -50%) scale(1);
}

.custom-select {
    position: relative;
}

#reasonBtn {
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
    display: flex;
}

.reason-options {
    z-index: 20;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: #fff;
    border-radius: 10px;
    padding: 8px;
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
}

.reason-options.show {
    display: block;
}

.reason-options p {
    color: var(--text);
    cursor: pointer;
    border-radius: 8px;
    padding: 11px 12px;
    font-size: 13px;
}

.reason-options p:hover {
    background: var(--gold-soft);
    color: var(--gold-dark);
}

.reason-options p.disabled-option,
.reason-options p.disabled-option:hover {
    cursor: default;
    color: var(--muted);
    background: #f8fafc;
}

.booking-note {
    background: #fafafa;
    border-radius: 12px;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    padding: 18px;
    display: flex;
}

.booking-note i {
    color: #22c55e;
    flex-shrink: 0;
    font-size: 20px;
}

.booking-note p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.schedule-btn {
    background: var(--gold);
    color: #fff;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    width: 100%;
    height: 54px;
    font-size: 15px;
    font-weight: 800;
}

.schedule-btn:hover {
    background: var(--gold-dark);
}

.input-error,
.input-error:focus {
    background: #fff7f7 !important;
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.field-error-text {
    color: #dc2626;
    margin: 6px 0 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    display: none;
}

.field-error-text.active {
    display: block;
}

#timeError,
#dateSubmitError {
    margin-top: 6px;
}

.step1-note {
    color: #8b6508;
    background: #fff8e6;
    border: 1px solid #f3d98b;
    border-radius: 8px;
    align-items: flex-start;
    gap: 8px;
    margin: 15px 0;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
    display: flex;
}

.step1-note i {
    color: #d4af37;
    flex-shrink: 0;
    margin-top: 2px;
}

.step1-note strong {
    color: #6f4f05;
}

.step-lock-notice {
    border: 1px dashed var(--line);
    color: var(--muted);
    background: #fafaf9;
    border-radius: 8px;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 16px;
    font-size: 13px;
    display: none;
}

.step-lock-notice.visible {
    display: flex;
}

.step-lock-notice i {
    color: var(--gold-dark);
    flex-shrink: 0;
    font-size: 13px;
}

.step-lock-notice strong {
    color: var(--dark);
}

.message-modal {
    z-index: 99999;
    background: rgba(0, 0, 0, 0.48);
    justify-content: center;
    align-items: center;
    padding: 20px;
    display: none;
    position: fixed;
    inset: 0;
}

.message-modal.show {
    display: flex;
}

.message-box {
    text-align: center;
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 460px;
    padding: 32px 30px 30px;
    animation: modalPop 0.25s;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.message-close,
.message-icon {
    display: none;
}

.message-box h3 {
    color: #050505;
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 800;
}

.message-box p {
    color: #5f5f5f;
    border-top: 1px solid #d6d6d6;
    margin: 0 0 27px;
    padding-top: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.message-btn {
    background: var(--gold);
    color: #fff;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    width: 100%;
    height: 37px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.message-btn:hover {
    filter: brightness(0.95);
}

.time-slot.disabled {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
    text-decoration: line-through;
}

#step2Content.locked,
#step3Content.locked {
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
}

@keyframes modalPop {
    0% {
        opacity: 0;
        transform: scale(0.94);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (width <= 1400px) {
    .page-wrapper {
        padding: 40px 6%;
    }

    .booking-layout {
        gap: 32px;
    }
}

@media (width <= 1200px) {
    .page-wrapper {
        padding: 40px 5%;
    }

    .hero-card {
        justify-content: center;
    }

    .hero-card > div:first-child {
        text-align: center;
        align-items: center;
        max-width: 100%;
    }

    .hero-card p {
        margin-inline: auto;
    }

    .booking-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "form"
            "calendar"
            "time";
        gap: 30px;
    }

    .form-card,
    .calendar-card,
    .time-card {
        width: 100%;
    }

    .form-card {
        padding: 30px;
    }

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

    .time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (width <= 992px) {
    .page-wrapper {
        padding: 80px 24px 30px;
    }

    .hero-card h1 {
        font-size: 34px;
    }

    .hero-card p {
        font-size: 15px;
    }

    .form-card {
        padding: 24px;
    }

    .calendar-nav {
        justify-content: space-between;
        width: 100%;
    }

    .calendar-nav strong {
        text-align: center;
        flex: 1;
    }

    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (width <= 768px) {
    .back-home-btn {
        top: 14px;
        left: 14px;
    }

    .page-wrapper {
        padding: 76px 20px 24px;
    }

    .hero-card h1 {
        letter-spacing: -1px;
        font-size: 30px;
        line-height: 1.15;
    }

    .hero-card p {
        max-width: 100%;
        font-size: 14px;
    }

    .form-card {
        padding: 22px;
    }

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

    .day {
        height: 42px;
    }

    .time-slots {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .booking-note {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (width <= 576px) {
    .page-wrapper {
        padding: 70px 16px 20px;
    }

    .hero-card h1 {
        font-size: 26px;
    }

    .hero-card p {
        font-size: 13px;
    }

    .eyebrow {
        padding: 8px 12px;
        font-size: 12px;
    }

    .form-card {
        padding: 18px;
    }

    .step-box h2,
    .card-heading h2,
    .time-title h2,
    .summary-box h2 {
        font-size: 18px;
    }

    .input-group input,
    #reasonBtn {
        height: 46px;
        font-size: 13px;
    }

    .phone-input-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    #phoneCountry,
    #phoneNumber {
        width: 100%;
    }

    .phone-field input {
        padding-left: 14px !important;
    }

    .location-option {
        min-height: 64px;
    }

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

    .day {
        height: 38px;
        font-size: 12px;
    }

    .time-slots {
        grid-template-columns: 1fr;
    }

    .time-slot {
        height: 46px;
        font-size: 13px;
    }

    .booking-note {
        padding: 14px;
    }

    .message-box {
        max-width: 100%;
        padding: 22px 18px;
    }

    .message-box h3 {
        font-size: 18px;
    }

    .message-box p {
        font-size: 13px;
    }
}

@media (width <= 400px) {
    .page-wrapper {
        padding: 66px 12px 18px;
    }

    .hero-card h1 {
        font-size: 22px;
    }

    .hero-card p {
        font-size: 12px;
    }

    .form-card {
        padding: 16px;
    }

    .summary-box h2,
    .card-heading h2,
    .step-box h2,
    .time-title h2 {
        font-size: 17px;
    }

    .calendar-nav strong {
        font-size: 13px;
    }

    .weekdays span {
        font-size: 10px;
    }

    .day {
        height: 34px;
        font-size: 11px;
    }

    .time-slot {
        height: 42px;
        font-size: 12px;
    }

    .booking-note {
        font-size: 12px;
    }

    .schedule-btn {
        height: 48px;
        font-size: 14px;
    }
}