/* WakaSurf Appointments Page CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Oswald:wght@500;600;700&display=swap');

:root {
    --primary: #f0b429;
    --primary-dark: #d19e20;
    --dark: #0d0d0d;
    --dark2: #141414;
    --dark3: #1c1c1c;
    --dark4: #242424;
    --border: #2e2e2e;
    --text: #e8e8e8;
    --text-muted: #888;
    --success: #27ae60;
    --danger: #e74c3c;
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
}

/* ===== NAV ===== */
.appt-nav {
    background: #0d0d0d;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px;
    top: 0;
    z-index: 100;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
    margin-top: 20px;
    margin-bottom: 20px;
}

.nav-logo .logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.nav-logo .logo-text span {
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* ==== BURGER BUTTON ==== */
.burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
    z-index: 201;
}

.burger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.burger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.open span:nth-child(2) {
    opacity: 0;
}

.burger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==== MOBILE NAV OVERLAY ==== */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-nav-overlay.open {
    display: block;
    opacity: 1;
}

/* ==== MOBILE NAV PANEL (slides in from right) ==== */
.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 72%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 24px 28px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-nav-panel.open {
    right: 0;
}

.mobile-nav-close {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.mobile-nav-close button {
    background: none;
    border: none;
    font-size: 22px;
    color: #333;
    cursor: pointer;
    padding: 4px;
}

.mobile-nav-panel a {
    display: block;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    letter-spacing: 0.2px;
    transition: color 0.2s;
}

.mobile-nav-panel a.active {
    color: var(--primary);
    font-style: italic;
}

.mobile-nav-panel a:hover {
    color: var(--primary);
}

/* ===== HERO SECTION ===== */
.appt-hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.appt-hero .subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.appt-hero .subtitle::before,
.appt-hero .subtitle::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background: var(--border);
}

.appt-hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(38px, 7vw, 64px);
    font-weight: 700;
    color: var(--primary);
    font-style: italic;
    letter-spacing: 1px;
    line-height: 1.1;
}

/* ===== WIZARD CARD ===== */
.wizard-wrap {
    max-width: 960px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.wizard-card {
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

/* Step indicator */
.step-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--dark4);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s;
    flex-shrink: 0;
}

.step-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

.step-dot.done {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    transition: background 0.3s;
}

.step-line.done {
    background: var(--success);
}

.step-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    white-space: nowrap;
}

/* ===== STEP 1 – SERVICE SELECTION ===== */
.form-section {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-select,
.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--dark3);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    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='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-input {
    background-image: none;
    cursor: text;
}

.form-textarea {
    background-image: none;
    cursor: text;
    resize: vertical;
    min-height: 80px;
}

/* Lesson count selector */
.lesson-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lesson-btn {
    padding: 8px 18px;
    border-radius: 8px;
    background: var(--dark3);
    border: 2px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.lesson-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

.lesson-btn:hover:not(.selected) {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== STEP 2 – DATE & TIME ===== */
.date-time-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

/* Calendar */
.calendar-wrap {
    background: var(--dark3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.cal-header {
    background: var(--dark4);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cal-header .cal-month {
    font-size: 16px;
    font-weight: 700;
}

.cal-header .cal-month strong {
    color: var(--primary);
}

.cal-nav {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.cal-nav:hover {
    background: var(--dark3);
    color: var(--text);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.cal-day-header {
    text-align: center;
    padding: 10px 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50%;
    margin: 2px auto;
    width: 32px;
    height: 32px;
    transition: all 0.2s;
    color: var(--text);
}

.cal-day:hover:not(.disabled):not(.other-month) {
    background: var(--dark4);
}

.cal-day.today {
    font-weight: 800;
    color: var(--primary);
}

.cal-day.selected {
    background: var(--primary);
    color: #000;
    font-weight: 700;
}

.cal-day.disabled,
.cal-day.other-month {
    color: var(--border);
    cursor: default;
    pointer-events: none;
}

/* Time slots grid */
.slots-area h3 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.slot-btn {
    padding: 12px 8px;
    text-align: center;
    background: var(--primary);
    border: 2px solid transparent;
    border-radius: 8px;
    color: #000;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.slot-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.slot-btn.selected {
    background: #000;
    border-color: var(--primary);
    color: var(--primary);
}

.slot-btn.booked {
    background: var(--dark4);
    color: var(--text-muted);
    cursor: not-allowed;
    text-decoration: line-through;
    border-color: var(--border);
}

.slot-btn.not-enough {
    background: var(--dark4);
    color: var(--text-muted);
    cursor: not-allowed;
    border-color: var(--border);
    opacity: 0.5;
}

.slots-loading {
    color: var(--text-muted);
    font-size: 14px;
    padding: 20px 0;
}

.no-slots {
    color: var(--text-muted);
    font-size: 14px;
    padding: 20px 0;
    text-align: center;
    background: var(--dark3);
    border-radius: 8px;
    border: 1px dashed var(--border);
}

/* ===== STEP 3 – REVIEW ===== */
.review-section {
    font-size: 14px;
}

.review-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.review-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.review-block {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    background: var(--dark3);
}

.review-header .svc-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
}

.review-header .svc-date {
    font-size: 14px;
    color: var(--text-muted);
}

.review-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 20px 22px;
    gap: 20px;
}

.review-actions {
    border-top: 1px solid var(--border);
    padding: 16px 22px;
}

.review-total {
    font-size: 17px;
    font-weight: 700;
    margin: 20px 0;
}

.review-total span {
    color: var(--primary);
    font-size: 22px;
}

/* ===== STEP 4 – PERSONAL INFO ===== */
.order-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 14px;
}

.order-table td {
    padding: 12px 16px;
    border: 1px solid var(--border);
}

.order-table tr:first-child td {
    border-top: 1px solid var(--border);
}

.order-table .total-row td {
    font-weight: 800;
    font-size: 16px;
    color: var(--primary);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: #000;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--dark4);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 15px;
}

.btn-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* ===== SUCCESS SCREEN ===== */
.success-screen {
    text-align: center;
    padding: 40px 20px;
}

.success-screen .check-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.success-screen h2 {
    font-family: 'Oswald', sans-serif;
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 10px;
}

.success-screen p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.success-screen .ref-badge {
    display: inline-block;
    margin: 20px 0;
    background: var(--dark4);
    border: 2px solid var(--primary);
    padding: 10px 28px;
    border-radius: 30px;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.success-detail {
    background: var(--dark3);
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px auto;
    max-width: 480px;
    text-align: left;
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.success-detail-row:last-child {
    border-bottom: none;
}

/* ===== PRICE PLANS SECTION ===== */
.plans-section {
    padding: 60px 20px;
    text-align: center;
}

.plans-section .section-sub {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.plans-section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(28px, 5vw, 44px);
    color: var(--primary);
    font-style: italic;
    margin-bottom: 48px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.plan-card {
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.2s;
}

.plan-card:hover {
    transform: translateY(-4px);
}

.plan-card.featured {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.plan-card .plan-name {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-style: italic;
    font-weight: 700;
    color: var(--primary);
}

.plan-card.featured .plan-name {
    color: #000;
}

.plan-card .plan-tag {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.plan-card.featured .plan-tag {
    color: rgba(0, 0, 0, 0.6);
}

.plan-card .plan-price {
    font-size: 60px;
    font-weight: 800;
    line-height: 1;
    margin: 12px 0 4px;
}

.plan-card .plan-price sup {
    font-size: 24px;
    vertical-align: top;
    margin-top: 12px;
    display: inline-block;
}

.plan-card .plan-price sub {
    font-size: 16px;
}

.plan-card .plan-discount {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.plan-card.featured .plan-discount {
    color: rgba(0, 0, 0, 0.7);
}

.plan-features {
    text-align: left;
    list-style: none;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-features li {
    font-size: 13px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.plan-card.featured .plan-features li {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.plan-features li strong {
    color: var(--primary);
}

.plan-card.featured .plan-features li strong {
    color: #000;
}

.custom-price {
    font-size: 24px;
    font-weight: 800;
    margin: 20px 0 8px;
}

/* ===== FOOTER ===== */
.appt-footer {
    background: #0a0a0a;
    border-top: 1px solid var(--border);
    padding: 50px 40px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 200px repeat(3, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 30px;
}

.footer-logo .brand {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.footer-logo .brand span {
    color: #fff;
}

.footer-logo p {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 6px;
}

.footer-logo img {
    height: 200px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    margin-bottom: 8px;
}

.footer-col h4 {
    color: var(--primary);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-col a,
.footer-col p {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== SPINNER ===== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .appt-nav {
        padding: 0 16px;
    }

    .nav-links {
        display: none;
    }

    .burger-btn {
        display: flex;
    }

    .wizard-card {
        padding: 20px 16px;
    }

    .date-time-grid {
        grid-template-columns: 1fr;
    }

    .calendar-wrap {
        max-width: 100%;
    }

    .review-details {
        grid-template-columns: 1fr;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .appt-hero h1 {
        font-size: 36px;
    }

    .slots-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .step-label {
        display: none;
    }
}