/* ==========================================================================
   TestamenteGuiden.dk – Design System
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Colors */
    --color-navy:        #1a2332;
    --color-navy-light:  #2a3a52;
    --color-gold:        #c9a84c;
    --color-gold-light:  #d4b96a;
    --color-gold-dark:   #a68a3a;
    --color-cream:       #f5f0e8;
    --color-cream-dark:  #e8e0d0;
    --color-white:       #ffffff;
    --color-text:        #2c2c2c;
    --color-text-light:  #5a5a5a;
    --color-error:       #c0392b;
    --color-error-bg:    #fdf0ef;
    --color-success:     #27ae60;
    --color-success-bg:  #eafaf1;
    --color-warning:     #b8860b;
    --color-warning-bg:  #fef9e7;

    /* Typography */
    --font-serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans:   'Source Sans 3', 'Segoe UI', Arial, sans-serif;

    /* Spacing */
    --space-xs:  4px;
    --space-sm:  8px;
    --space-md:  16px;
    --space-lg:  24px;
    --space-xl:  32px;
    --space-2xl: 48px;

    /* Layout */
    --max-width:        720px;
    --border-radius:    4px;
    --border-radius-lg: 8px;

    /* Shadows */
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:   0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg:   0 8px 24px rgba(0,0,0,0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-cream);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--color-navy);
    line-height: 1.3;
}

a {
    color: var(--color-gold-dark);
    text-decoration: underline;
}

a:hover {
    color: var(--color-navy);
}

fieldset {
    border: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Header ---------- */
#site-header {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 0 var(--space-lg);
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header-inner {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.85;
}

.logo-icon {
    color: var(--color-white);
    display: flex;
    align-items: center;
}

.logo-icon svg {
    width: 28px;
    height: 28px;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.3px;
}

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

.logo-tld {
    color: var(--color-gold-light);
    font-size: 18px;
    font-weight: 400;
}

/* ---------- Progress Bar ---------- */
#progress-bar {
    background: var(--color-white);
    padding: var(--space-md) var(--space-lg);
    position: sticky;
    top: 64px;
    z-index: 90;
    box-shadow: var(--shadow-sm);
}

.progress-track {
    height: 4px;
    background: var(--color-cream-dark);
    border-radius: 2px;
    margin-bottom: var(--space-md);
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold));
    border-radius: 2px;
    transition: width var(--transition-base);
    width: 0%;
}

.step-indicators {
    list-style: none;
    display: flex;
    justify-content: space-between;
    max-width: 960px;
    margin: 0 auto;
    gap: 2px;
}

.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    cursor: default;
    opacity: 0.4;
    transition: opacity var(--transition-fast);
    flex: 1;
}

.step-dot.active,
.step-dot.completed {
    opacity: 1;
}

.step-dot.completed {
    cursor: pointer;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid var(--color-cream-dark);
    background: var(--color-white);
    color: var(--color-text-light);
    transition: all var(--transition-fast);
}

.step-dot.active .step-number {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-navy);
}

.step-dot.completed .step-number {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: var(--color-white);
}

.step-label {
    font-size: 11px;
    color: var(--color-text-light);
    text-align: center;
    white-space: nowrap;
}

.step-dot.active .step-label {
    color: var(--color-navy);
    font-weight: 600;
}

/* ---------- Wizard Container ---------- */
#wizard-container {
    flex: 1;
    max-width: var(--max-width);
    width: 100%;
    margin: var(--space-2xl) auto;
    padding: 0 var(--space-lg);
}

.wizard-step {
    display: none;
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow-md);
    animation: fadeIn var(--transition-base);
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wizard-step h2 {
    font-size: 26px;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--color-cream);
}

.step-description {
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
    font-size: 15px;
}

/* ---------- Welcome Step ---------- */
.welcome-content .intro-text {
    font-size: 17px;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin: var(--space-md) 0 var(--space-xl) 0;
}

.feature-list li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--color-text);
}

.feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-gold-dark);
    font-weight: 700;
}

.time-estimate {
    color: var(--color-text-light);
    font-size: 15px;
    margin-bottom: var(--space-lg);
}

/* ---------- Info & Disclaimer Boxes ---------- */
.disclaimer-box {
    background: var(--color-warning-bg);
    border-left: 4px solid var(--color-gold);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-xl);
}

.disclaimer-box h3 {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-warning);
    margin-bottom: var(--space-sm);
}

.disclaimer-box p {
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.disclaimer-box p:last-child {
    margin-bottom: 0;
}

.info-box {
    background: #eef3f9;
    border-left: 4px solid var(--color-navy-light);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-xl);
}

.info-box p {
    font-size: 14px;
    margin-bottom: var(--space-sm);
}

.info-box p:last-child {
    margin-bottom: 0;
}

.warning-box {
    background: var(--color-warning-bg);
    border: 1px solid var(--color-gold);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    margin-top: var(--space-md);
    font-size: 14px;
    color: var(--color-warning);
}

/* ---------- Form Elements ---------- */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-navy);
    margin-bottom: var(--space-xs);
}

.required {
    color: var(--color-error);
}

.optional {
    color: var(--color-text-light);
    font-weight: 400;
    font-size: 13px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-cream-dark);
    border-radius: var(--border-radius);
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

.form-group input.field-error,
.form-group select.field-error,
.form-group textarea.field-error {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232c2c2c' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.error-message {
    display: block;
    color: var(--color-error);
    font-size: 13px;
    margin-top: var(--space-xs);
    min-height: 0;
}

.error-message:empty {
    display: none;
}

.field-help {
    display: block;
    color: var(--color-text-light);
    font-size: 13px;
    font-style: italic;
    margin-top: var(--space-xs);
}

/* Form Row (side-by-side fields) */
.form-row {
    display: flex;
    gap: var(--space-md);
}

.form-group--small {
    flex: 0 0 140px;
}

.form-group--large {
    flex: 1;
}

/* Radio & Checkbox Groups */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 400;
    cursor: pointer;
    font-size: 15px;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-cream-dark);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.radio-label:hover,
.checkbox-label:hover {
    border-color: var(--color-gold);
    background: var(--color-warning-bg);
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    accent-color: var(--color-gold-dark);
    width: 18px;
    height: 18px;
}

.confirm-section {
    background: var(--color-cream);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    margin-top: var(--space-xl);
}

.confirm-section .checkbox-label {
    border-color: transparent;
    padding: var(--space-sm) 0;
    font-size: 14px;
}

/* ---------- Dynamic Blocks (children, heirs, legacies, charity) ---------- */
.dynamic-block {
    background: var(--color-cream);
    border: 1px solid var(--color-cream-dark);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    position: relative;
}

.dynamic-block h4 {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: var(--space-md);
}

.btn-remove-block {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--color-error);
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font-sans);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius);
    transition: background var(--transition-fast);
}

.btn-remove-block:hover {
    background: var(--color-error-bg);
}

.dynamic-block .form-row {
    flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-navy);
    border-color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: var(--color-gold-dark);
    border-color: var(--color-gold-dark);
}

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

.btn-secondary {
    background: transparent;
    color: var(--color-navy);
    border-color: var(--color-navy);
}

.btn-secondary:hover {
    background: var(--color-navy);
    color: var(--color-white);
}

.btn-danger {
    background: transparent;
    color: var(--color-error);
    border-color: var(--color-error);
}

.btn-danger:hover {
    background: var(--color-error);
    color: var(--color-white);
}

.btn-add {
    background: transparent;
    color: var(--color-gold-dark);
    border: 2px dashed var(--color-gold);
    width: 100%;
    padding: 14px;
    margin-top: var(--space-sm);
}

.btn-add:hover {
    background: var(--color-warning-bg);
    border-style: solid;
}

/* Wizard Navigation */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-cream);
}

/* Action Buttons (Step 12) */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-xl);
}

/* ---------- Review Step (Step 11) ---------- */
.review-section {
    border-top: 3px solid var(--color-gold);
    background: var(--color-cream);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.review-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.review-section-header h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--color-navy);
}

.btn-edit-section {
    background: none;
    border: 1px solid var(--color-gold-dark);
    color: var(--color-gold-dark);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--border-radius);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-edit-section:hover {
    background: var(--color-gold);
    color: var(--color-navy);
    border-color: var(--color-gold);
}

.review-section dl {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: var(--space-xs) var(--space-md);
}

.review-section dt {
    font-weight: 600;
    font-size: 13px;
    color: var(--color-text-light);
}

.review-section dd {
    font-size: 15px;
    color: var(--color-text);
}

.review-section ul {
    list-style: disc;
    padding-left: var(--space-lg);
}

.review-section li {
    font-size: 14px;
    margin-bottom: var(--space-xs);
}

.review-empty {
    color: var(--color-text-light);
    font-style: italic;
    font-size: 14px;
}

/* ---------- Landing Page (Forside) ---------- */
#landing-page {
    overflow: hidden;
}

/* --- Hero Banner --- */
.hero-banner {
    background: linear-gradient(135deg, #1a2332 0%, #2a3a52 50%, #1a2332 100%);
    padding: 72px var(--space-lg) 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-banner::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.hero-banner-inner {
    max-width: 520px;
    flex-shrink: 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.3);
    color: var(--color-gold-light);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: var(--space-lg);
}

.hero-title {
    font-size: 44px;
    line-height: 1.15;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.5px;
}

.hero-highlight {
    color: var(--color-gold);
    position: relative;
}

.hero-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.btn-hero {
    font-size: 16px;
    padding: 16px 32px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

.btn-hero:hover {
    box-shadow: 0 6px 24px rgba(201,168,76,0.4);
    transform: translateY(-1px);
}

.hero-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.hero-graphic {
    flex: 0 0 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-doc-float {
    position: relative;
    animation: floatDoc 6s ease-in-out infinite;
}

@keyframes floatDoc {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.hero-svg {
    width: 220px;
    height: auto;
    filter: drop-shadow(0 16px 40px rgba(0,0,0,0.4));
}

.hero-doc-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    background: white;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: popIn 0.5s ease 1s both;
}

@keyframes popIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* --- Trust Strip --- */
.trust-strip {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-cream-dark);
    padding: var(--space-md) var(--space-lg);
}

.trust-strip-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-light);
    white-space: nowrap;
}

/* --- Section Headings --- */
.section-heading {
    text-align: center;
    font-size: 28px;
    color: var(--color-navy);
    margin-bottom: var(--space-xl);
    position: relative;
}

.section-heading::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: var(--color-gold);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* --- USP Section --- */
.usp-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 64px var(--space-lg);
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.usp-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-cream-dark);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
}

.usp-card--wide {
    grid-column: 2 / 4;
}

.usp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: var(--color-gold);
}

.usp-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.usp-icon--green { background: #eafaf1; color: #27ae60; }
.usp-icon--gold  { background: #fef9e7; color: #c9a84c; }
.usp-icon--red   { background: #fdf0ef; color: #c0392b; }
.usp-icon--navy  { background: #eef3f9; color: #1a2332; }

.usp-card h3 {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: var(--space-sm);
}

.usp-card p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --- How It Works --- */
.how-section {
    background: var(--color-white);
    padding: 64px var(--space-lg);
}

.how-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-lg);
    max-width: 820px;
    margin: 0 auto;
}

.how-step {
    flex: 1;
    text-align: center;
    max-width: 240px;
}

.how-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
    color: var(--color-gold);
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    box-shadow: 0 4px 12px rgba(26,35,50,0.2);
}

.how-step h3 {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: var(--space-sm);
}

.how-step p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.how-arrow {
    padding-top: 12px;
    flex-shrink: 0;
    opacity: 0.5;
}

/* --- Bottom CTA --- */
.landing-cta {
    padding: 0 var(--space-lg) 48px;
}

.cta-box {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, #1a2332, #2a3a52);
    border-radius: 16px;
    padding: 48px var(--space-xl);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.cta-box h2 {
    color: var(--color-white);
    font-size: 26px;
    margin-bottom: var(--space-sm);
}

.cta-box p {
    color: rgba(255,255,255,0.65);
    font-size: 16px;
    margin-bottom: var(--space-xl);
}

.landing-disclaimer {
    background: var(--color-cream-dark);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-2xl);
}

.landing-disclaimer p {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ---------- Testament Success Banner (Step 12) ---------- */
.testament-success-banner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: linear-gradient(135deg, #eafaf1, #d5f5e3);
    border: 1px solid #a3d9a5;
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-xl);
}

.success-icon-wrap {
    flex-shrink: 0;
}

.success-title {
    font-size: 24px;
    color: var(--color-navy);
    margin-bottom: 4px;
    border-bottom: none;
    padding-bottom: 0;
}

.success-subtitle {
    color: var(--color-text-light);
    font-size: 15px;
    margin: 0;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.action-buttons--bottom {
    margin-top: var(--space-xl);
}

/* ---------- Testament Output (Step 12) ---------- */
#testament-output-wrapper {
    background: #e8e0d0;
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
}

#testament-output {
    background: var(--color-white);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    padding: 72px 72px 60px;
    max-width: 780px;
    margin: 0 auto;
    border: none;
    position: relative;
}

#testament-output::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-navy), var(--color-gold), var(--color-navy));
}

.testament-document {
    font-family: var(--font-serif);
    font-size: 14.5px;
    line-height: 1.85;
    color: #1a1a1a;
}

.testament-document h1 {
    text-align: center;
    font-size: 30px;
    letter-spacing: 10px;
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: none;
    color: var(--color-navy);
    text-transform: uppercase;
}

.testament-document h1::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    background: var(--color-gold);
    margin: 14px auto 28px;
}

.testament-document h2 {
    font-size: 16px;
    margin-top: 32px;
    margin-bottom: 10px;
    color: var(--color-navy);
    border-bottom: 1px solid var(--color-cream);
    padding-bottom: 6px;
}

.testament-document p {
    margin-bottom: 10px;
}

.testament-document ul {
    list-style: none;
    padding-left: var(--space-md);
}

.testament-document ul li {
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

.testament-document ul li::before {
    content: "\2013";
    position: absolute;
    left: 0;
    color: var(--color-gold-dark);
}

.testament-preamble {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-cream);
}

.testator-info {
    margin-left: var(--space-lg);
}

.testament-section {
    margin-bottom: 12px;
}

.testament-section-empty {
    color: #999;
    font-style: italic;
}

.testament-signature {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--color-cream);
}

.signature-block {
    margin-top: 44px;
}

.signature-line {
    border-bottom: 1px solid #1a1a1a;
    width: 300px;
    height: 44px;
}

.signature-name {
    font-size: 13px;
    margin-top: 4px;
    color: var(--color-text-light);
}

.notar-section {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 2px solid var(--color-cream);
}

/* ---------- Modal ---------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    max-width: 440px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.modal-content h3 {
    margin-bottom: var(--space-md);
}

.modal-content p {
    margin-bottom: var(--space-lg);
    color: var(--color-text-light);
}

.modal-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
}

/* ---------- Footer ---------- */
#site-footer {
    background: var(--color-navy);
    color: var(--color-cream-dark);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    margin-top: auto;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
}

#site-footer p {
    font-size: 14px;
    margin-bottom: var(--space-xs);
}

.footer-disclaimer {
    font-size: 12px;
    opacity: 0.7;
}

/* ---------- Step Error Summary ---------- */
.step-error-summary {
    background: var(--color-error-bg);
    border: 1px solid var(--color-error);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    color: var(--color-error);
    font-size: 14px;
    font-weight: 600;
}

/* ---------- Conditional Section ---------- */
.conditional-section {
    animation: fadeIn var(--transition-base);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet */
@media (max-width: 960px) {
    #wizard-container {
        padding: 0 var(--space-md);
        margin: var(--space-lg) auto;
    }

    .wizard-step {
        padding: var(--space-lg);
    }

    .hero-banner {
        padding: 48px var(--space-lg) 56px;
        gap: var(--space-xl);
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-graphic {
        flex: 0 0 200px;
    }

    .hero-svg {
        width: 180px;
    }

    .usp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .usp-card--wide {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 600px) {
    #site-header {
        height: 56px;
        padding: 0 var(--space-md);
    }

    .logo-text {
        font-size: 18px;
    }

    #progress-bar {
        padding: var(--space-sm) var(--space-md);
        top: 56px;
    }

    .step-label {
        display: none;
    }

    .step-number {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .step-dot.active .step-label {
        display: block;
    }

    #wizard-container {
        margin: var(--space-md) auto;
        padding: 0 var(--space-sm);
    }

    .wizard-step {
        padding: var(--space-lg) var(--space-md);
    }

    .wizard-step h2 {
        font-size: 22px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-group--small {
        flex: 1;
    }

    .radio-group {
        flex-direction: column;
    }

    .wizard-navigation {
        flex-direction: column-reverse;
        gap: var(--space-md);
    }

    .wizard-navigation .btn {
        width: 100%;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }

    #testament-output {
        padding: var(--space-xl) var(--space-md);
    }

    #testament-output-wrapper {
        padding: var(--space-md);
    }

    .review-section dl {
        grid-template-columns: 1fr;
    }

    .review-section dt {
        margin-top: var(--space-sm);
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
    }

    /* Landing page mobile */
    .hero-banner {
        flex-direction: column;
        text-align: center;
        padding: 36px var(--space-md) 48px;
        gap: var(--space-xl);
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-graphic {
        flex: none;
        order: -1;
    }

    .hero-graphic,
    .hero-svg {
        width: 160px;
    }

    .btn-hero {
        width: 100%;
        font-size: 15px;
    }

    .trust-strip-inner {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }

    .usp-section {
        padding: 40px var(--space-md);
    }

    .usp-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .usp-card--wide {
        grid-column: auto;
    }

    .section-heading {
        font-size: 22px;
    }

    .how-steps {
        flex-direction: column;
        align-items: center;
    }

    .how-arrow {
        transform: rotate(90deg);
        padding: 0;
    }

    .how-section {
        padding: 40px var(--space-md);
    }

    .cta-box {
        padding: 32px var(--space-lg);
    }

    .cta-box h2 {
        font-size: 22px;
    }

    .testament-success-banner {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }

    .success-title {
        font-size: 20px;
    }

    .calc-comparison {
        flex-direction: column;
    }

    .calc-column {
        min-width: 0;
    }
}

/* ==========================================================================
   FORBEDRING 3: Legal Tooltips + Glossary
   ========================================================================== */

/* ---------- Legal Term Trigger ---------- */
.legal-term {
    border-bottom: 1.5px dashed var(--color-gold);
    cursor: help;
    position: relative;
    transition: border-color var(--transition-fast);
}
.legal-term::after {
    content: '\00a0\003F';
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--color-white);
    background: var(--color-gold);
    border-radius: 50%;
    width: 14px;
    height: 14px;
    line-height: 14px;
    text-align: center;
    margin-left: 2px;
    vertical-align: super;
}
.legal-term:hover {
    border-color: var(--color-gold-dark);
}

/* ---------- Tooltip Popover ---------- */
.legal-tooltip {
    position: absolute;
    z-index: 9999;
    background: var(--color-white);
    border: 1px solid var(--color-cream-dark);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md);
    max-width: 340px;
    width: max-content;
    animation: tooltipIn 150ms ease;
}
@keyframes tooltipIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.legal-tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-cream-dark);
}
.legal-tooltip-header strong {
    font-family: var(--font-serif);
    color: var(--color-navy);
    font-size: 15px;
}
.legal-tooltip-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--color-text-light);
    line-height: 1;
    padding: 0 4px;
}
.legal-tooltip-close:hover {
    color: var(--color-error);
}
.legal-tooltip p {
    margin: 0 0 var(--space-sm) 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text);
}
.legal-tooltip-example {
    font-style: italic;
    font-size: 13px !important;
    color: var(--color-text-light) !important;
    padding: var(--space-sm);
    background: var(--color-cream);
    border-radius: var(--border-radius);
    margin-bottom: 0 !important;
}

/* ---------- Glossary Button in Header ---------- */
.btn-glossary {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid rgba(201,168,76,0.4);
    color: var(--color-gold);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.btn-glossary:hover {
    background: rgba(201,168,76,0.1);
    border-color: var(--color-gold);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ---------- Glossary Sidebar ---------- */
.glossary-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9990;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}
.glossary-open ~ .glossary-overlay,
.glossary-sidebar.glossary-open + .glossary-overlay {
    opacity: 1;
    pointer-events: auto;
}
/* Handle overlay being before sidebar in DOM */
body.glossary-body-lock .glossary-overlay {
    opacity: 1;
    pointer-events: auto;
}
body.glossary-body-lock {
    overflow: hidden;
}
.glossary-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: var(--color-white);
    z-index: 9995;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    transition: right var(--transition-base);
    display: flex;
    flex-direction: column;
}
.glossary-sidebar.glossary-open {
    right: 0;
}
.glossary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-cream-dark);
}
.glossary-header h3 {
    margin: 0;
    font-family: var(--font-serif);
    color: var(--color-navy);
    font-size: 20px;
}
.glossary-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-text-light);
    line-height: 1;
}
.glossary-close:hover {
    color: var(--color-error);
}
.glossary-search-wrap {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--color-cream-dark);
}
.glossary-search-wrap input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-cream-dark);
    border-radius: var(--border-radius);
    font-size: 14px;
    font-family: var(--font-sans);
    box-sizing: border-box;
}
.glossary-search-wrap input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.glossary-list {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md) var(--space-lg);
}
.glossary-item {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-cream);
}
.glossary-item:last-child {
    border-bottom: none;
}
.glossary-item h4 {
    margin: 0 0 var(--space-xs) 0;
    font-family: var(--font-serif);
    color: var(--color-navy);
    font-size: 16px;
}
.glossary-item p {
    margin: 0 0 var(--space-xs) 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text);
}
.glossary-example {
    font-style: italic;
    font-size: 13px !important;
    color: var(--color-text-light) !important;
}

/* ==========================================================================
   FORBEDRING 2: Testament Type Choice + Next Steps Guide
   ========================================================================== */

/* ---------- Testament Type Radio Buttons ---------- */
.testament-type-choice {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-cream-dark);
}
.testament-type-choice h3 {
    margin-bottom: var(--space-md);
}
.radio-group--detailed {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.radio-label--detailed {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--color-cream-dark);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--color-white);
}
.radio-label--detailed:hover {
    border-color: var(--color-gold-light);
    background: var(--color-cream);
}
.radio-label--detailed input[type="radio"] {
    margin-top: 4px;
    flex-shrink: 0;
}
.radio-label--detailed input[type="radio"]:checked + .radio-label-content {
    color: var(--color-navy);
}
.radio-label--detailed:has(input:checked) {
    border-color: var(--color-gold);
    background: rgba(201,168,76,0.05);
    box-shadow: 0 0 0 1px var(--color-gold);
}
.radio-label-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.radio-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 6px;
}
.radio-badge--recommended {
    background: var(--color-success-bg);
    color: var(--color-success);
}
.radio-description {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* ---------- Next Steps Guide (Step 13) ---------- */
.next-steps-guide {
    margin-top: var(--space-2xl);
    border-top: 2px solid var(--color-cream-dark);
    padding-top: var(--space-xl);
}
.next-steps-content {
    background: var(--color-cream);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
}
.next-steps-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--color-navy);
    margin: 0 0 var(--space-lg) 0;
}
.next-steps-title svg {
    color: var(--color-gold);
    flex-shrink: 0;
}
.next-steps-type-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: var(--space-md);
}
.next-steps-type-badge--notar {
    background: var(--color-navy);
    color: var(--color-gold);
}
.next-steps-type-badge--vidne {
    background: var(--color-gold);
    color: var(--color-navy);
}
.next-steps-checklist {
    padding-left: var(--space-lg);
    margin: 0 0 var(--space-lg) 0;
}
.next-steps-checklist li {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
    color: var(--color-text);
}
.next-steps-checklist li::marker {
    color: var(--color-gold);
    font-weight: 700;
}
.next-steps-checklist a {
    color: var(--color-gold-dark);
    text-decoration: underline;
}
.next-steps-tip {
    background: var(--color-white);
    border-left: 3px solid var(--color-gold);
    padding: var(--space-md);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text);
}

/* ==========================================================================
   FORBEDRING 1: Inheritance Calculator
   ========================================================================== */

/* ---------- Calculator Summary ---------- */
.calc-summary {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    justify-content: center;
}
.calc-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-xl);
    background: var(--color-cream);
    border-radius: var(--border-radius-lg);
    min-width: 140px;
}
.calc-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
}
.calc-value {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
}
.calc-value--red {
    color: var(--color-error);
}
.calc-value--green {
    color: var(--color-success);
}

/* ---------- Comparison Columns ---------- */
.calc-comparison {
    display: flex;
    gap: var(--space-xl);
}
.calc-column {
    flex: 1;
    min-width: 0;
}
.calc-column-title {
    font-family: var(--font-serif);
    font-size: 16px;
    margin: 0 0 var(--space-xs) 0;
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid;
}
.calc-column-title--legal {
    color: var(--color-text-light);
    border-color: var(--color-cream-dark);
}
.calc-column-title--testament {
    color: var(--color-navy);
    border-color: var(--color-gold);
}
.calc-column-subtitle {
    font-size: 12px;
    color: var(--color-text-light);
    margin: 0 0 var(--space-md) 0;
}

/* ---------- Bar Chart ---------- */
.calc-bars {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.calc-bar-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 50px;
    gap: var(--space-sm);
    align-items: center;
}
.calc-bar-name {
    font-size: 13px;
    color: var(--color-text);
    line-height: 1.3;
}
.calc-bar-name small {
    color: var(--color-text-light);
    font-size: 11px;
}
.calc-bar-track {
    height: 20px;
    background: var(--color-cream);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.calc-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 600ms ease;
    min-width: 2px;
}
.calc-bar--spouse {
    background: var(--color-navy);
}
.calc-bar--child {
    background: var(--color-gold);
}
.calc-bar--heir {
    background: var(--color-success);
}
.calc-bar--other {
    background: var(--color-cream-dark);
}
.calc-bar-pct {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    text-align: right;
}

/* ---------- Calculator Note ---------- */
.calc-note {
    margin-top: var(--space-xl);
    padding: var(--space-md);
    background: var(--color-warning-bg);
    border-left: 3px solid var(--color-warning);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-size: 13px;
    line-height: 1.5;
}
.calc-note p {
    margin: 0;
}

/* ---------- Vidne section in testament ---------- */
.vidne-section {
    margin-top: 36px;
    padding-top: 16px;
    border-top: 1px solid #ccc;
}
.vidne-block {
    margin-top: 24px;
}

/* ==========================================================================
   Sprint 1+2: Konkurrent-analyse Forbedringer
   ========================================================================== */

/* ---------- Info Box Warning Variant ---------- */
.info-box--warning {
    background: var(--color-warning-bg);
    border-left-color: var(--color-gold);
}
.info-box--warning p {
    color: var(--color-text);
}

/* ---------- Calculator Warnings ---------- */
.calc-warning {
    padding: var(--space-md);
    border-radius: var(--border-radius);
    margin-top: var(--space-md);
    font-size: 14px;
    line-height: 1.5;
}
.calc-warning p {
    margin: 0;
}
.calc-warning--error {
    background: var(--color-error-bg);
    border: 1px solid var(--color-error);
    color: var(--color-error);
}
.calc-warning--info {
    background: #eef3f9;
    border: 1px solid var(--color-navy-light);
    color: var(--color-text);
}

/* ---------- I1: Subsidiary Heir Section ---------- */
.heir-substitute-section {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
}
.substitute-details {
    cursor: pointer;
}
.substitute-details summary {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-gold-dark);
    padding: var(--space-sm) 0;
    list-style: none;
}
.substitute-details summary::-webkit-details-marker {
    display: none;
}
.substitute-details summary::before {
    content: "+ ";
    font-weight: 700;
}
.substitute-details[open] summary::before {
    content: "\2212 ";
}
.substitute-help {
    font-size: 13px;
    color: var(--color-text-light);
    margin: var(--space-xs) 0 var(--space-md) 0;
    font-style: italic;
}
.substitute-details .form-row {
    gap: var(--space-md);
}
.substitute-details .form-group {
    margin-bottom: var(--space-md);
}
.substitute-details label {
    font-size: 13px;
}
.substitute-details input {
    font-size: 14px;
    padding: 8px 12px;
}

/* ==========================================================================
   Landing: "Sådan får du et gyldigt testamente" sektion
   ========================================================================== */

.landing-how-it-really-works {
    max-width: 820px;
    margin: 0 auto;
    padding: 56px var(--space-lg) 48px;
}

.landing-how-inner {
    background: var(--color-white);
    border-radius: 16px;
    padding: var(--space-2xl) var(--space-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-cream-dark);
}

.validity-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.validity-option {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--border-radius-lg);
    background: var(--color-cream);
    border: 1px solid var(--color-cream-dark);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.validity-option:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-gold-light);
}

.validity-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    box-shadow: var(--shadow-sm);
}

.validity-option h3 {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: var(--space-sm);
}

.validity-option p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.validity-option p:last-child {
    margin-bottom: 0;
}

.validity-option ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: var(--space-md) 0 0 0;
}

.validity-option ul li {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.6;
    padding: var(--space-xs) 0;
    padding-left: var(--space-lg);
    position: relative;
}

.validity-option ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}

/* Mobile: validity-options stacks vertically */
@media (max-width: 600px) {
    .landing-how-it-really-works {
        padding: 40px var(--space-md);
    }

    .landing-how-inner {
        padding: var(--space-xl) var(--space-md);
    }

    .validity-options {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

/* ========== Længstlevende ægtefælle-sektion ========== */
#spouse-laengstlevende-section {
    border-top: 1px solid var(--gray-200);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
}

#spouse-laengstlevende-section h3 {
    margin-bottom: var(--space-sm);
}

#spouse-uskiftet-bo-section {
    margin-top: var(--space-md);
}

#saerboern-uskiftet-bo-warning {
    margin-top: var(--space-sm);
}
