/* ─── SHARED DESIGN TOKENS (matching landing page) ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --sage: #7B9E7B;
    --sage-light: #E8F0E4;
    --sage-dark: #4A6B4A;
    --cream: #FDF8F0;
    --warm: #D4956A;
    --warm-light: #F5E6D8;
    --charcoal: #2C2C2C;
    --text: #3D3D3D;
    --text-light: #6B6B6B;
    --white: #ffffff;
    --error: #D4564A;
    --success: #4A8B4A;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; }

a { color: var(--sage-dark); text-decoration: none; }
a:hover { color: var(--warm); }

/* ─── NAV ─── */
.app-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123, 158, 123, 0.12);
}

.app-nav .logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sage-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.app-nav .logo span { color: var(--warm); }

.app-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.app-nav .nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.2s;
}

.app-nav .nav-links a:hover { color: var(--sage-dark); }

.app-nav .nav-links .btn-nav {
    background: var(--sage-dark);
    color: white;
    padding: 0.55rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}

.app-nav .nav-links .btn-nav:hover {
    background: var(--sage);
    color: white;
}

/* ─── PAGE CONTAINER ─── */
.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

.page-header {
    margin-bottom: 3rem;
}

.page-header .section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--sage);
    margin-bottom: 0.75rem;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    line-height: 1.7;
}

/* ─── COMPANION CARDS ─── */
.companions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.companion-card {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid rgba(123, 158, 123, 0.12);
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.companion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(74, 107, 74, 0.08);
}

.companion-top {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.companion-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
}

.companion-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}

.companion-rate {
    font-size: 0.85rem;
    color: var(--sage);
    font-weight: 500;
}

.companion-bio {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.companion-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.interest-tag {
    font-size: 0.75rem;
    background: var(--sage-light);
    color: var(--sage-dark);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    font-weight: 500;
}

.companion-card .btn-book {
    width: 100%;
    padding: 0.75rem;
    background: var(--sage-dark);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    display: block;
}

.companion-card .btn-book:hover {
    background: var(--sage);
    color: white;
}

/* ─── BOOKING PAGE ─── */
.booking-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: flex-start;
}

.booking-form-card {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid rgba(123, 158, 123, 0.12);
    padding: 2.5rem;
}

.booking-sidebar {
    position: sticky;
    top: 5.5rem;
}

.companion-summary {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid rgba(123, 158, 123, 0.12);
    padding: 2rem;
    margin-bottom: 1.25rem;
}

.companion-summary .companion-top { margin-bottom: 1rem; }

.pricing-toggle {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid rgba(123, 158, 123, 0.12);
    padding: 1.5rem;
}

.pricing-toggle h4 {
    font-size: 0.95rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.tier-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid rgba(123, 158, 123, 0.15);
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 0.5rem;
    transition: border-color 0.2s, background 0.2s;
}

.tier-option:hover { border-color: var(--sage); }
.tier-option.active {
    border-color: var(--sage-dark);
    background: var(--sage-light);
}

.tier-option input[type="radio"] {
    accent-color: var(--sage-dark);
    width: 18px;
    height: 18px;
}

.tier-details { flex: 1; }

.tier-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--charcoal);
}

.tier-price {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.15rem;
}

.tier-badge {
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--warm);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
}

/* ─── FORM STYLES ─── */
.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(123, 158, 123, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.form-group label .optional {
    color: var(--text-light);
    font-weight: 400;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid rgba(123, 158, 123, 0.2);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--sage);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* ─── DATE PICKER ─── */
.date-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.date-header h4 {
    font-size: 1rem;
    color: var(--charcoal);
}

.date-header button {
    background: var(--sage-light);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--sage-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.date-header button:hover { background: var(--sage); color: white; }

.day-label {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    padding: 0.5rem 0;
}

.day-cell {
    text-align: center;
    padding: 0.55rem 0.25rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    background: none;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
}

.day-cell:hover:not(.disabled):not(.empty) {
    background: var(--sage-light);
}

.day-cell.selected {
    background: var(--sage-dark);
    color: white;
    font-weight: 600;
}

.day-cell.today {
    border: 2px solid var(--sage);
}

.day-cell.disabled {
    color: #ccc;
    cursor: default;
}

.day-cell.empty {
    cursor: default;
}

/* ─── TIME SLOTS ─── */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.5rem;
}

.time-slot {
    padding: 0.6rem;
    text-align: center;
    border: 1.5px solid rgba(123, 158, 123, 0.2);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    background: var(--white);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
}

.time-slot:hover {
    border-color: var(--sage);
    background: var(--sage-light);
}

.time-slot.selected {
    background: var(--sage-dark);
    color: white;
    border-color: var(--sage-dark);
}

.no-slots {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    background: var(--sage-light);
    border-radius: 10px;
}

/* ─── BUTTONS ─── */
.btn-primary {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: var(--sage-dark);
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover { background: var(--sage); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled {
    background: #c5c5c5;
    cursor: not-allowed;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--white);
    color: var(--sage-dark);
    border: 1.5px solid rgba(123, 158, 123, 0.3);
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--sage-light);
    color: var(--sage-dark);
}

/* ─── CONFIRMATION PAGE ─── */
.confirmation-card {
    max-width: 680px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 24px;
    border: 1px solid rgba(123, 158, 123, 0.12);
    padding: 3rem;
    text-align: center;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: var(--sage-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.confirmation-card h1 {
    font-size: 1.8rem;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.confirmation-card .subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.booking-details {
    text-align: left;
    background: var(--cream);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.booking-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(123, 158, 123, 0.1);
}

.booking-details .detail-row:last-child { border-bottom: none; }

.detail-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal);
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* ─── LOADING / EMPTY STATES ─── */
.loading {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--sage-light);
    border-top-color: var(--sage-dark);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.error-msg {
    text-align: center;
    padding: 2rem;
    color: var(--error);
    background: #fef2f2;
    border-radius: 12px;
    font-size: 0.9rem;
}

/* ─── FOOTER ─── */
.app-footer {
    padding: 2.5rem 2rem;
    text-align: center;
    background: var(--charcoal);
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    margin-top: 4rem;
}

.app-footer span { color: var(--warm); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .app-nav { padding: 0.75rem 1.25rem; }
    .app-nav .logo { font-size: 1.25rem; }
    .page { padding: 5rem 1.25rem 3rem; }
    .companions-grid { grid-template-columns: 1fr; }
    .booking-layout { grid-template-columns: 1fr; }
    .booking-sidebar { position: static; }
    .form-row { grid-template-columns: 1fr; }
    .confirmation-card { padding: 2rem; }
    .confirmation-actions { flex-direction: column; }
}
