* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --warm-cream: #FDF8F0;
    --deep-teal: #1A4A4A;
    --soft-sage: #7BA68E;
    --sunset-gold: #D4954A;
    --warm-brown: #8B6D4F;
    --light-sage: #E8F0EB;
    --text-dark: #2C3E3E;
    --text-muted: #5F7A7A;
    --white: #ffffff;
    --error: #c0392b;
    --success: #27ae60;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background: var(--warm-cream);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#app {
    flex: 1;
    padding-top: 80px;
}

/* ---- Navigation ---- */
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.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 74, 74, 0.06);
}

.logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: var(--deep-teal);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.logo span { color: var(--sunset-gold); }

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--deep-teal); }

.nav-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    background: var(--deep-teal);
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.01em;
}
.nav-btn:hover {
    background: var(--soft-sage);
    transform: translateY(-1px);
}

/* ---- Footer ---- */
footer {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--deep-teal);
    color: rgba(255,255,255,0.5);
}
footer .logo { color: white; margin-bottom: 0.75rem; display: block; }
footer .logo span { color: var(--sunset-gold); }
footer p { font-size: 0.8rem; }
footer .tagline { font-size: 0.85rem; color: rgba(255,255,255,0.4); margin-bottom: 0.5rem; }

/* ---- Shared ---- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.page-header .eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sunset-gold);
    margin-bottom: 0.75rem;
}

.page-header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--deep-teal);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.page-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Caregiver Cards ---- */
.caregiver-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.caregiver-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(26, 74, 74, 0.06);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.caregiver-card:hover {
    box-shadow: 0 20px 60px rgba(26, 74, 74, 0.08);
    transform: translateY(-2px);
}

.card-top {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--light-sage);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    color: var(--deep-teal);
    flex-shrink: 0;
}

.card-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--deep-teal);
    margin-bottom: 0.15rem;
}

.card-location {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.star { color: var(--sunset-gold); font-size: 0.85rem; }

.rating-value {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--deep-teal);
}

.rating-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-bio {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.tag {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    background: var(--light-sage);
    color: var(--soft-sage);
    letter-spacing: 0.02em;
}

.tag.cert {
    background: rgba(212, 149, 74, 0.1);
    color: var(--sunset-gold);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(26, 74, 74, 0.06);
}

.card-rate {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    color: var(--deep-teal);
}
.card-rate small {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.card-trips {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- Filter Bar ---- */
.filter-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.filter-btn {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    border: 1px solid rgba(26, 74, 74, 0.12);
    background: var(--white);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--deep-teal);
    color: var(--white);
    border-color: var(--deep-teal);
}

/* ---- Caregiver Profile ---- */
.profile-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-hero {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(26, 74, 74, 0.06);
    margin-bottom: 1.5rem;
}

.profile-top {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--light-sage);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    color: var(--deep-teal);
    flex-shrink: 0;
}

.profile-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    color: var(--deep-teal);
    margin-bottom: 0.25rem;
}

.profile-location {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.verified-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(39, 174, 96, 0.08);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    display: inline-block;
}

.profile-bio {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-weight: 300;
}

.profile-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(26, 74, 74, 0.06);
    margin-bottom: 1.5rem;
}

.profile-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    color: var(--deep-teal);
    margin-bottom: 1rem;
}

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

.detail-item label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.25rem;
}

.detail-item span {
    font-size: 0.95rem;
    color: var(--deep-teal);
    font-weight: 500;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-primary {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    background: var(--deep-teal);
    padding: 0.9rem 2rem;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}
.btn-primary:hover {
    background: var(--soft-sage);
    transform: translateY(-1px);
}

.btn-outline {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--deep-teal);
    background: transparent;
    padding: 0.9rem 2rem;
    border-radius: 14px;
    border: 2px solid var(--deep-teal);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
}
.btn-outline:hover {
    background: var(--deep-teal);
    color: var(--white);
}

/* ---- Forms ---- */
.form-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
}

.form-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(26, 74, 74, 0.06);
    margin-bottom: 1.5rem;
}

.form-card h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    color: var(--deep-teal);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(26, 74, 74, 0.06);
}

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

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--deep-teal);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(26, 74, 74, 0.12);
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--warm-cream);
    transition: border-color 0.2s;
    outline: none;
}

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

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

.form-group .hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--deep-teal);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
}
.form-submit:hover {
    background: var(--soft-sage);
    transform: translateY(-1px);
}
.form-submit:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

/* ---- Alerts ---- */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(39, 174, 96, 0.08);
    color: var(--success);
    border: 1px solid rgba(39, 174, 96, 0.15);
}

.alert-error {
    background: rgba(192, 57, 43, 0.08);
    color: var(--error);
    border: 1px solid rgba(192, 57, 43, 0.15);
}

/* ---- Booking Modal ---- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 74, 74, 0.4);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: var(--deep-teal);
    margin-bottom: 1rem;
}

.modal-close {
    float: right;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

/* ---- Journey Card ---- */
.journey-hero {
    background: var(--deep-teal);
    color: white;
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.journey-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: white;
}

.journey-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.journey-meta-item {
    font-size: 0.85rem;
}
.journey-meta-item strong {
    color: var(--sunset-gold);
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.15rem;
}

/* ---- Confirmation ---- */
.confirmation {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.confirmation h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: var(--deep-teal);
    margin-bottom: 1rem;
}

.confirmation p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* ---- Back Link ---- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}
.back-link:hover { color: var(--deep-teal); }

/* ---- Loading ---- */
.loading {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    font-size: 1rem;
}

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

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

/* ---- Become a Caregiver CTA ---- */
.nav-link-cta {
    color: var(--sunset-gold) !important;
    font-weight: 600 !important;
}
.nav-link-cta:hover {
    color: var(--deep-teal) !important;
}

/* ---- Registration Progress ---- */
.reg-progress {
    max-width: 500px;
    margin: 0 auto 2rem;
}

.reg-progress-bar {
    height: 4px;
    background: rgba(26, 74, 74, 0.08);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.reg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--soft-sage), var(--deep-teal));
    border-radius: 100px;
    transition: width 0.4s ease;
}

.reg-steps-indicator {
    display: flex;
    justify-content: space-between;
}

.reg-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(26, 74, 74, 0.06);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.reg-step-dot.active {
    background: var(--deep-teal);
    color: white;
}

.reg-step-dot.current {
    background: var(--soft-sage);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(123, 166, 142, 0.3);
}

/* ---- Registration Navigation ---- */
.reg-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}

.reg-nav .btn-primary,
.reg-nav .btn-outline {
    flex: none;
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
}

/* ---- Photo Upload ---- */
.photo-upload-area {
    cursor: pointer;
    text-align: center;
}

.photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 0.75rem;
    overflow: hidden;
    border: 3px dashed rgba(26, 74, 74, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
    background: var(--light-sage);
}

.photo-upload-area:hover .photo-preview {
    border-color: var(--soft-sage);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.photo-placeholder span {
    font-size: 1.8rem;
    color: var(--soft-sage);
    display: block;
    margin-bottom: 0.25rem;
}

/* ---- Checkbox Grid ---- */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    border: 1.5px solid rgba(26, 74, 74, 0.08);
    background: var(--warm-cream);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.checkbox-item:hover {
    border-color: var(--soft-sage);
    background: var(--light-sage);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--deep-teal);
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-label {
    color: var(--deep-teal);
    font-weight: 600;
}

.checkbox-label {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ---- Dashboard Header ---- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ---- Admin Cards ---- */
.admin-tabs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.admin-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(26, 74, 74, 0.06);
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.admin-card:hover {
    box-shadow: 0 10px 40px rgba(26, 74, 74, 0.06);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    nav { padding: 0.85rem 1.25rem; }
    .nav-links { gap: 1rem; }
    .logo { font-size: 1.2rem; }
    .caregiver-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .profile-top { flex-direction: column; align-items: center; text-align: center; }
    .profile-actions { flex-direction: column; }
    .journey-meta { gap: 1rem; }
    .filter-bar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; }
    .container { padding: 1.5rem; }
    .form-card { padding: 1.5rem; }
    .checkbox-grid { grid-template-columns: 1fr; }
    .reg-nav { flex-direction: column; }
    .reg-nav .btn-primary, .reg-nav .btn-outline { width: 100%; text-align: center; }
    .admin-card-header { flex-direction: column; }
    .admin-actions { flex-direction: column; }
}

@media (max-width: 480px) {
    .nav-link { display: none; }
    .nav-link-cta { display: inline !important; }
    .page-header h1 { font-size: 1.8rem; }
}
