/* Main Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #090909;
    color: #F5F5F0;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background overlays */
.stars-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(197, 168, 128, 0.04) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 35%);
    z-index: -1;
    pointer-events: none;
}

.app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
    margin-bottom: 40px;
}

.logo {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 1.1rem;
}

.gold-text {
    color: #C5A880;
}

.light-text {
    color: #F5F5F0;
    font-weight: 300;
}

.header-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #C5A880;
    border: 1px solid rgba(197, 168, 128, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    background-color: rgba(197, 168, 128, 0.05);
}

/* Card Container */
.onboarding-card {
    background-color: #0F0F0F;
    border: 1px solid rgba(197, 168, 128, 0.12);
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Screen and Form Step Visibility toggles */
.screen, .form-step {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.screen.active, .form-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Titles */
.serif-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F5F5F0;
}

.serif-question {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: #F5F5F0;
}

.subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    color: #A0A0A0;
    margin-bottom: 40px;
    max-width: 800px;
}

.q-step {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #C5A880;
    display: block;
    margin-bottom: 8px;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 3px;
    background-color: rgba(197, 168, 128, 0.1);
    margin-bottom: 30px;
    border-radius: 2px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #D4AF37;
    transition: width 0.4s ease;
}

/* Portal Welcome Intro Box */
.portal-intro-box {
    background-color: #121212;
    border: 1px solid rgba(197, 168, 128, 0.15);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: left;
}

.box-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #D4AF37;
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.portal-intro-box h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.portal-intro-box p {
    font-size: 0.9rem;
    color: #8E8E8E;
    font-weight: 300;
}

/* Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    text-align: left;
}

.form-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #C5A880;
}

.form-group input, .form-group textarea, .form-group select {
    background-color: #121212;
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-radius: 6px;
    padding: 14px 16px;
    color: #F5F5F0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #D4AF37;
    background-color: #161616;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23C5A880' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

/* Choice Cards */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
    text-align: left;
}

.option-card {
    display: block;
    position: relative;
    padding: 20px 24px;
    background-color: #121212;
    border: 1px solid rgba(197, 168, 128, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.option-card input {
    position: absolute;
    opacity: 0;
}

.option-title {
    display: block;
    font-weight: 500;
    font-size: 1.05rem;
    color: #F5F5F0;
    margin-bottom: 4px;
}

.option-desc {
    display: block;
    font-size: 0.85rem;
    color: #8E8E8E;
    font-weight: 300;
}

.option-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background-color: rgba(197, 168, 128, 0.02);
}

.option-card:has(input:checked) {
    border-color: #D4AF37;
    background-color: rgba(212, 175, 55, 0.04);
}

/* Button & Button Grouping */
.btn-group {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(197, 168, 128, 0.1);
    padding-top: 30px;
    margin-top: 20px;
}

.btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 14px 28px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary {
    background-color: #C5A880;
    color: #090909;
    border: none;
}

.btn-primary:hover {
    background-color: #D4AF37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: #C5A880;
    border: 1px solid rgba(197, 168, 128, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(197, 168, 128, 0.05);
    border-color: #C5A880;
}

/* Dashboard styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
    padding-bottom: 24px;
    margin-bottom: 30px;
}

.dashboard-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #C5A880;
    display: block;
    margin-bottom: 6px;
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1px;
    margin-bottom: 30px;
    overflow-x: auto;
}

.tab-link {
    background: transparent;
    border: none;
    color: #8E8E8E;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-link:hover {
    color: #F5F5F0;
}

.tab-link.active {
    color: #D4AF37;
    border-bottom-color: #D4AF37;
}

/* Tab content panel */
.tabs-container {
    min-height: 250px;
    margin-bottom: 40px;
}

.tab-content {
    display: none;
    text-align: left;
    animation: fadeIn 0.4s ease;
}

.tab-content.active-content {
    display: block;
}

.dossier-card {
    background-color: #121212;
    border: 1px solid rgba(197, 168, 128, 0.1);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 24px;
}

.dossier-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #C5A880;
    display: block;
    margin-bottom: 10px;
}

.dossier-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 16px;
    color: #F5F5F0;
}

.dossier-body {
    font-size: 0.95rem;
    color: #A0A0A0;
    font-weight: 300;
}

.dossier-list {
    margin-top: 15px;
    padding-left: 20px;
}

.dossier-list li {
    margin-bottom: 10px;
    color: #A0A0A0;
    font-size: 0.9rem;
    font-weight: 300;
}

.dossier-list strong {
    color: #F5F5F0;
}

/* Footer elements */
.main-footer {
    text-align: center;
    font-size: 0.75rem;
    color: #555555;
    margin-top: 40px;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Print Overrides */
@media print {
    body {
        background-color: #FFFFFF !important;
        color: #000000 !important;
    }
    .app-container {
        padding: 0;
        max-width: 100%;
    }
    .stars-overlay, .main-header, .no-print, .btn-group, .btn-print, .tabs-nav, .main-footer {
        display: none !important;
    }
    .onboarding-card {
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    .tab-content {
        display: block !important;
        opacity: 1 !important;
        margin-bottom: 40px;
        page-break-inside: avoid;
    }
    .dossier-card {
        background-color: transparent !important;
        border: 1px solid #CCCCCC !important;
        color: #000000 !important;
    }
    .dossier-title {
        color: #000000 !important;
    }
    .dossier-body, .dossier-list li {
        color: #333333 !important;
    }
    .dossier-list strong {
        color: #000000 !important;
    }
}

/* Responsive Styling */
@media(max-width: 768px) {
    .onboarding-card {
        padding: 30px 20px;
    }
    .serif-title {
        font-size: 2.2rem;
    }
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .btn-print {
        width: 100%;
    }
}
