/* ==========================================
   ASSESSMENT — matching Graf Wealth Advisory design system
   White · Black · Navy  |  Inter only
   ========================================== */

/* Variables — identical to main site */
:root {
    --black:     #0d0d0d;
    --white:     #ffffff;
    --accent:    #0a2540;
    --grey:      #888888;
    --off-white: #f5f5f5;
    --border:    rgba(0, 0, 0, 0.1);
    --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ==========================================
   HEADER — mirrors main site nav
   ========================================== */

.assessment-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.375rem 3rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.assessment-header-logo img {
    height: 26px;
    width: auto;
}

.assessment-header-back {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--black);
    opacity: 0.5;
    transition: opacity 0.2s;
}

.assessment-header-back:hover { opacity: 1; }

/* Hide old logo container */
.logo-container { display: none; }

/* ==========================================
   CONTAINER
   ========================================== */

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* ==========================================
   LANDING PAGE
   ========================================== */

.landing-page {
    min-height: calc(100vh - 70px);
    background: var(--white);
    padding: 0;
}

.landing-header {
    text-align: left;
    padding: 5rem 3rem 3rem;
    max-width: 800px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border);
}

.landing-title {
    font-family: var(--font);
    font-size: clamp(3rem, 5vw, 3.75rem);
    font-weight: 800;
    color: #0A2540;
    letter-spacing: -0.04em;
    line-height: 1.03;
    margin-bottom: 1rem;
}

.landing-subtitle {
    font-size: 1.125rem;
    color: #555555;
    max-width: 600px;
    line-height: 1.7;
}

/* Value Proposition */
.value-prop {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--border);
    max-width: 800px;
    margin: 0 auto;
}

.value-item {
    padding: 2.5rem 1.5rem;
    border-right: 1px solid var(--border);
    text-align: left;
    transition: background 0.2s;
}

.value-item:last-child { border-right: none; }
.value-item:hover { background: var(--off-white); }

.value-icon {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.value-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--accent);
}

.value-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

.value-item p {
    font-size: 0.9375rem;
    color: var(--grey);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Credibility */
.credibility {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
    border-bottom: 1px solid var(--border);
}

.credibility-item {
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--border);
}

.credibility-item:last-child { border-right: none; }

.credibility-item h4 {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.credibility-item p {
    font-size: 0.9375rem;
    color: var(--grey);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Landing CTA */
.landing-cta {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
}

.landing-cta h2 {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #0A2540;
    margin-bottom: 24px;
}

.benefits-list {
    list-style: none;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
}

.benefits-list li {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--grey);
}

.benefits-list li:nth-child(even) { border-right: none; }
.benefits-list li:nth-last-child(-n+2) { border-bottom: none; }

.benefits-list strong {
    color: var(--black);
    font-weight: 600;
    display: block;
    margin-bottom: 0.125rem;
}

.cta-box {
    padding-top: 2rem;
    min-height: 120px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.cta-meta {
    font-size: 0.875rem;
    color: var(--grey);
    white-space: nowrap;
}

.cta-privacy {
    font-size: 0.8125rem;
    color: var(--grey);
    opacity: 0.7;
    line-height: 1.5;
}

.cta-box .btn-primary {
    margin-top: 0.5rem;
    align-self: flex-end;
}

/* ==========================================
   BUTTONS — match main site exactly
   ========================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: var(--white);
    border: none;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.btn-primary:hover { opacity: 0.85; }

.btn-primary:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--black);
    border: 1px solid var(--border);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: border-color 0.2s, opacity 0.2s;
}

.btn-secondary:hover { border-color: var(--black); }

/* ==========================================
   ASSESSMENT CONTAINER
   ========================================== */

.assessment-container {
    min-height: calc(100vh - 70px);
    background: var(--white);
    padding: 3rem 2rem;
}

/* Progress Bar */
.progress-container {
    max-width: 700px;
    margin: 0 auto 3rem;
}

.progress-bar {
    height: 2px;
    background: var(--border);
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: right;
    font-size: 0.75rem;
    color: var(--grey);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Question Wrapper */
.question-wrapper {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    min-height: 400px;
}

.question {
    background: var(--white);
    padding: 0;
}

.question-number {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 1rem;
}

.question-text {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--black);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.question-helper {
    font-size: 0.9375rem;
    color: var(--grey);
    margin-bottom: 2rem;
    font-style: normal;
    line-height: 1.6;
}

/* Answer Options */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
}

.answer-option {
    background: var(--white);
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 1.125rem 1.5rem;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
}

.answer-option:last-child { border-bottom: none; }

.answer-option:hover { background: var(--off-white); }

.answer-option.selected {
    background: var(--accent);
}

.answer-option.selected label,
.answer-option.selected input { color: var(--white); }

.answer-option input[type="radio"] {
    margin-right: 0.875rem;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.answer-option label {
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--black);
    line-height: 1.5;
}

/* Text Input */
.text-input,
.textarea-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 0.9375rem;
    font-family: var(--font);
    color: var(--black);
    background: var(--white);
    transition: border-color 0.2s;
}

.text-input:focus,
.textarea-input:focus {
    outline: none;
    border-color: var(--accent);
}

.textarea-input {
    min-height: 120px;
    resize: vertical;
}

.input-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.input-group { margin-bottom: 1.5rem; }

.optional-text {
    font-size: 0.8125rem;
    color: var(--grey);
}

/* Navigation Buttons */
.nav-buttons {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* ==========================================
   PRIORITY RANKING
   ========================================== */

.priority-ranking { width: 100%; }

.priority-options {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.priority-option {
    background: var(--white);
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.priority-option:last-child { border-bottom: none; }
.priority-option:hover { background: var(--off-white); }

.priority-option.selected {
    background: rgba(10, 37, 64, 0.05);
    border-bottom: 1px solid var(--border);
}

.priority-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.priority-option label {
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--black);
    flex: 1;
}

.selected-priorities {
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    min-height: 80px;
}

.priority-rank-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.priority-rank-item:last-child { border-bottom: none; }

.rank-number {
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.contact-form-fields { width: 100%; }

/* ==========================================
   THANK YOU PAGE
   ========================================== */

.thank-you-page {
    min-height: calc(100vh - 70px);
    background: var(--white);
    padding: 4rem 2rem;
}

.thank-you-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.checkmark-icon {
    width: 64px;
    height: 64px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 2rem;
}

.thank-you-content h1 {
    font-family: var(--font);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--black);
    margin-bottom: 1rem;
}

.thank-you-message {
    font-size: 1.0625rem;
    color: var(--grey);
    margin-bottom: 3rem;
    line-height: 1.65;
}

/* Next Steps */
.next-steps {
    text-align: left;
    border: 1px solid var(--border);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.next-steps h2 {
    font-family: var(--font);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: 2rem;
    text-align: left;
}

.step {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
}

.step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.step-content h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.step-content p {
    font-size: 0.9375rem;
    color: var(--grey);
    line-height: 1.6;
}

.thank-you-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.thank-you-footer p {
    font-size: 0.875rem;
    color: var(--grey);
}

.thank-you-footer a {
    color: var(--black);
    text-decoration: underline;
    font-weight: 600;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 960px) {
    .assessment-header { padding: 1.25rem 1.5rem; }

    .landing-header { padding: 5rem 1.5rem 2rem; }

    .value-prop {
        grid-template-columns: 1fr;
    }

    .value-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 2rem 1.5rem;
    }

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

    .credibility-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1.5rem;
    }

    .landing-cta { padding: 2rem 1.5rem; }

    .benefits-list {
        grid-template-columns: 1fr;
    }

    .benefits-list li { border-right: none; }
    .benefits-list li:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
    .benefits-list li:last-child { border-bottom: none; }

    .cta-meta { white-space: normal; }

    .cta-box .btn-primary {
        align-self: stretch;
        width: 100%;
        justify-content: center;
    }

    .btn-secondary { width: 100%; justify-content: center; }

    .nav-buttons { flex-direction: column-reverse; }

    .next-steps { padding: 1.5rem; }
}
