/* ============================================
   WOOD / DARK GREEN – MINIMALIST SCANDINAVIAN
   Mobil first
   ============================================ */

:root {
    --green-deep: #1e2b23;
    --green-soft: #2f4136;
    --wood:       #c8b79a;
    --bone:       #f2efe8;
    --ink:        #1a1a1a;
    --muted:      #6b6b62;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bone);
    margin: 0;
    padding: 0;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* ===== TOP NAV ===== */
.top-nav {
    background: var(--green-deep);
    color: var(--bone);
    border-bottom: 1px solid var(--green-soft);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    align-items: flex-start;
}

.brand {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    color: var(--wood);
    text-decoration: none;
}

.profile-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    width: 100%;
}

.profile-btn {
    flex: 1 1 0;
    padding: 0.7rem 0.5rem;
    background: transparent;
    color: var(--bone);
    border: 1px solid var(--green-soft);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-btn:hover { background: var(--green-soft); color: var(--wood); }
.profile-btn.active { background: var(--wood); color: var(--green-deep); border-color: var(--wood); }

/* ===== PAGE WRAP ===== */
.page-wrap {
    display: flex;
    flex-direction: column;
    max-width: 1300px;
    margin: 0 auto;
    background: var(--bone);
}

/* ===== PROFIL-KORT ===== */
.profile-card {
    background: var(--green-deep);
    color: var(--bone);
    padding: 2rem 1.25rem 1.5rem;
    border-bottom: 4px solid var(--wood);
}

.profile-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.profile-image {
    width: 110px;
    height: 110px;
    border-radius: 0;
    border: 2px solid var(--wood);
    background: var(--green-soft);
    overflow: hidden;
    flex-shrink: 0;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--wood);
}

.profile-meta { min-width: 0; }

.name {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 0 0 0.3rem;
    text-transform: uppercase;
    color: var(--bone);
}

.title {
    font-size: 0.75rem;
    color: var(--wood);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.profile-contact-inline {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: center;
}

.profile-contact-inline a {
    color: var(--bone);
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
    word-break: break-word;
}

.profile-contact-inline a:hover { color: var(--wood); }
.profile-contact-inline i { color: var(--wood); width: 16px; }

/* Highlights */
.highlights {
    display: flex;
    margin: 1.5rem 0;
    border: 1px solid var(--green-soft);
}

.highlight {
    flex: 1;
    padding: 0.9rem 0.4rem;
    text-align: center;
    border-right: 1px solid var(--green-soft);
}

.highlight:last-child { border-right: none; }

.highlight-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--wood);
    margin-bottom: 0.1rem;
}

.highlight-label {
    display: block;
    font-size: 0.6rem;
    color: var(--bone);
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* CTA i profil-kort (primært desktop) */
.cta-inline {
    display: none;
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--wood);
    color: var(--green-deep);
    text-decoration: none;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background 0.2s ease;
    margin-bottom: 1.5rem;
}

.cta-inline:hover { background: var(--bone); }

.profile-extra { display: none; }

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 2rem 1.25rem;
    background: var(--bone);
}

.section { margin-bottom: 2.5rem; }

.section-title {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--green-deep);
    margin: 0 0 1.2rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid var(--green-deep);
}

.about-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--ink);
    margin-bottom: 1.1rem;
}

/* Value box */
.value-box {
    border-left: 3px solid var(--wood);
    padding: 1.2rem;
    background: rgba(200, 183, 154, 0.08);
    margin: 1.5rem 0;
}

.value-title {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--green-deep);
    margin-bottom: 0.8rem;
}

.problem-solution-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.problem-solution-item {
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(30, 43, 35, 0.1);
}

.problem-solution-item:last-child { border-bottom: none; }

.problem { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.25rem; }
.solution { font-size: 0.9rem; color: var(--green-deep); font-weight: 500; }

/* Timeline */
.timeline {
    border-left: 1px solid var(--green-soft);
    padding-left: 1.2rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.8rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1.2rem - 4px);
    top: 6px;
    width: 7px;
    height: 7px;
    background: var(--wood);
}

.timeline-period {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--wood);
    background: var(--green-deep);
    display: inline-block;
    padding: 0.2rem 0.6rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--green-deep);
    margin: 0 0 0.25rem;
}

.timeline-company {
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.timeline-item p { font-size: 0.9rem; margin: 0 0 0.7rem; }

.result-list { list-style: none; padding: 0; margin: 0; }

.result-list li {
    font-size: 0.85rem;
    padding: 0.3rem 0 0.3rem 1.1rem;
    position: relative;
}

.result-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--wood);
}

/* Tags */
.tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    background: transparent;
    color: var(--green-deep);
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--green-deep);
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.main-content .tag:hover {
    background: var(--green-deep);
    color: var(--wood);
}

.profile-card .tag {
    color: var(--bone);
    border-color: var(--green-soft);
}

.profile-card .tag:hover {
    border-color: var(--wood);
    color: var(--wood);
}

.plain-list { list-style: none; padding: 0; margin: 0; }

.plain-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--green-soft);
    font-size: 0.85rem;
    color: var(--bone);
}

.plain-list li:last-child { border-bottom: none; }

/* ===== KONTAKT / BRUGERREJSE ===== */
.contact-section {
    background: var(--green-deep);
    color: var(--bone);
    padding: 2.5rem 1.25rem;
    margin: 2rem -1.25rem -2rem -1.25rem;
}

.contact-section .section-title {
    color: var(--wood);
    border-bottom-color: var(--wood);
}

.form-intro {
    font-size: 0.9rem;
    color: rgba(242, 239, 232, 0.7);
    margin-bottom: 1.8rem;
    text-align: center;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Progress */
.journey-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 0 0.25rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

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

.progress-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--green-soft);
    color: var(--bone);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-step.active .progress-dot {
    background: var(--wood);
    border-color: var(--wood);
    color: var(--green-deep);
}

.progress-step.completed .progress-dot {
    background: transparent;
    border-color: var(--wood);
    color: var(--wood);
}

.progress-label {
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--bone);
    white-space: nowrap;
}

.progress-line {
    flex: 1;
    height: 1px;
    background: var(--green-soft);
    margin: 0 0.4rem;
    max-width: 60px;
    margin-bottom: 1.1rem;
}

/* Steps */
.journey-step {
    display: none;
    border: none;
    padding: 0;
    margin: 0;
    animation: fadeIn 0.35s ease;
}

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

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

.step-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bone);
    margin-bottom: 0.35rem;
    letter-spacing: 0.5px;
    display: block;
}

.step-hint {
    font-size: 0.8rem;
    color: rgba(242, 239, 232, 0.6);
    margin-bottom: 1.3rem;
}

.optional {
    color: rgba(242, 239, 232, 0.5);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

/* Form fields */
.form-group { margin-bottom: 1.1rem; }

.form-label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--wood);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1rem;
    background: transparent;
    border: 1px solid var(--green-soft);
    border-radius: 0;
    color: var(--bone);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    min-height: 48px;
}

.form-control:focus {
    outline: none;
    border-color: var(--wood);
}

.form-control::placeholder { color: rgba(242, 239, 232, 0.4); }

select.form-control option {
    background: var(--green-deep);
    color: var(--bone);
}

/* Type cards */
.type-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.type-card {
    position: relative;
    border: 1px solid var(--green-soft);
    padding: 1.1rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.type-card i {
    font-size: 1.3rem;
    color: var(--wood);
    margin-bottom: 0.4rem;
    display: block;
}

.type-name {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--bone);
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.type-desc { font-size: 0.72rem; color: rgba(242, 239, 232, 0.5); }

.type-card:hover,
.type-card:focus-visible {
    border-color: var(--wood);
    outline: none;
}

.type-card.selected {
    border-color: var(--wood);
    background: rgba(200, 183, 154, 0.1);
}

.type-check {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wood);
    color: var(--green-deep);
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.type-card.selected .type-check {
    opacity: 1;
    transform: scale(1);
}

/* ===== RETTELSE AF KNAPPER I BRUGERREJSEN ===== */

/* 1. Grundlæggende knap-styling (fjern width: 100% herfra) */
.journey-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.2rem;
    background: var(--wood);
    color: var(--green-deep);
    border: none;
    border-radius: 0;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
    
    /* VIGTIGT: Gør at knappen kan krympe og ikke tvinger layoutet ud */
    min-width: 0; 
    box-sizing: border-box;
}

.journey-btn:hover { background: var(--bone); }
.journey-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* 2. Navigationen (flex-containeren) */
.journey-nav {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.2rem;
    width: 100%;
    box-sizing: border-box;
}

/* 3. "Tilbage"-knappen (fast bredde baseret på indhold) */
.journey-nav .back-btn {
    flex: 0 1 auto; /* Må gerne krympe, men starter med sin egen bredde */
    background: transparent;
    color: var(--bone);
    border: 1px solid var(--green-soft);
    padding: 1rem 1rem;
}

.journey-nav .back-btn:hover {
    border-color: var(--wood);
    color: var(--wood);
}

/* 4. "Næste" og "Send"-knapperne (fylder resten af pladsen) */
.journey-nav .next-btn,
.journey-nav .submit-btn {
    flex: 1 1 0%; /* Tvinger dem til at dele den resterende plads ligeligt */
    white-space: nowrap;
}

/* Sørg for at knapper, der står alene (f.eks. på Trin 1) fylder det hele */
.journey-step > .journey-btn {
    width: 100%;
}
/* Samtykke */
.consent-block {
    margin: 1.5rem 0 1rem;
    padding: 1.1rem;
    background: rgba(200, 183, 154, 0.08);
    border-left: 3px solid var(--wood);
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    cursor: pointer;
    position: relative;
}

.consent-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.consent-box {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 1px solid var(--wood);
    background: transparent;
    position: relative;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.consent-label input:checked + .consent-box { background: var(--wood); }

.consent-label input:checked + .consent-box::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-deep);
    font-size: 0.85rem;
    font-weight: 700;
}

.consent-label input:focus-visible + .consent-box {
    outline: 2px solid var(--wood);
    outline-offset: 2px;
}

.consent-text {
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(242, 239, 232, 0.85);
}

.consent-text strong {
    color: var(--wood);
    font-size: 0.88rem;
    display: inline-block;
    margin-bottom: 0.25rem;
}

/* Reassurance */
.reassurance {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin: 1.2rem 0;
}

.reassurance-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.78rem;
    color: rgba(242, 239, 232, 0.75);
    line-height: 1.5;
}

.reassurance-item i {
    color: var(--wood);
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Success */
.success-message {
    background: var(--wood);
    color: var(--green-deep);
    padding: 1rem;
    margin-top: 1rem;
    display: none;
    font-size: 0.9rem;
    text-align: center;
}

/* Sticky mobil CTA */
.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--wood);
    color: var(--green-deep);
    text-decoration: none;
    padding: 1rem;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-top: 1px solid var(--green-soft);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.mobile-cta:hover { background: var(--bone); }

/* Giv plads i bunden så sticky CTA ikke dækker */
body { padding-bottom: 60px; }

/* ===== TABLET ===== */
@media (min-width: 640px) {
    .nav-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
    }

    .profile-buttons { width: auto; }

    .profile-btn {
        flex: 0 0 auto;
        padding: 0.7rem 1rem;
        font-size: 0.72rem;
    }

    .profile-identity {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 1.5rem;
    }

    .profile-contact-inline {
        flex-direction: row;
        gap: 1.2rem;
        align-items: center;
    }

    .type-grid { grid-template-columns: repeat(3, 1fr); }

    .main-content { padding: 2.5rem 2rem; }

    .contact-section {
        margin: 2rem -2rem -2.5rem -2rem;
        padding: 2.5rem 2rem;
    }

    .journey-progress { margin-bottom: 2.5rem; }
    .progress-label { font-size: 0.65rem; }

    .reassurance { flex-direction: row; gap: 1rem; }
    .reassurance-item { flex: 1; flex-direction: column; gap: 0.4rem; }
    .reassurance-item i { font-size: 1.1rem; }
}

/* ===== DESKTOP ===== */
@media (min-width: 1024px) {
    .mobile-cta { display: none; }
    body { padding-bottom: 0; }

    .page-wrap {
        flex-direction: row;
        align-items: flex-start;
        min-height: calc(100vh - 80px);
    }

    .profile-card {
        width: 34%;
        position: sticky;
        top: 80px;
        align-self: flex-start;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        padding: 2.5rem 2rem;
        border-bottom: none;
        border-right: 1px solid var(--green-soft);
    }

    .profile-identity {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-image { width: 140px; height: 140px; }

    .profile-contact-inline {
        flex-direction: column;
        gap: 0.4rem;
    }

    .cta-inline { display: block; }

    .profile-extra { display: block; }

    .main-content {
        width: 66%;
        padding: 3rem;
        max-width: 900px;
    }

    .contact-section {
        margin: 2rem -3rem -3rem -3rem;
        padding: 3rem;
    }

    .name { font-size: 1.5rem; }
}

/* ===== PRINT ===== */
@media print {
    .top-nav, .contact-section, .mobile-cta, .cta-inline { display: none; }
    .page-wrap { flex-direction: row; box-shadow: none; }
    .profile-card { width: 35%; position: static; max-height: none; }
    .main-content { width: 65%; }
}