/* Skjul CF7-sektionen indtil quiz-resultat er klar */
body:not(.quiz-show-call) #bliv-ringet-op {
    display: none !important;
}

#quiz-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    font-family: sans-serif;
    color: #555;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top-color: var(--brand, #0073e6);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

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



:root {
    --brand: #2A9256; /* Pegasus grøn */
    --brand-dark: #01583b;
    --bg: #f7f7f7;
    --card: #fff;
    --text: #222;
}

* {
    box-sizing: border-box;
}

.quiz-wrapper {
    font-family: 'Ubuntu', sans-serif;
    max-width: 820px;
    margin: 0 auto;
    background: var(--card);
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
    padding: 45px 30px;
}

h1 {
    font-size: 28px;
    margin: 0 0 8px;
    text-align: center;
}

.sub {
    color: #666;
    text-align: center;
    margin: 0 0 24px;
}

.step {
    display: none;
    animation: fade .25s ease;
}

.step.active {
    display: block;
}

.q {
    font-size: 20px;
    margin: 0 0 8px;
    font-weight: bold;
}

.hint {
    color: #666;
    font-size: 14px;
    margin: 0 0 16px 0;
}

.choices {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

button.choice {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    background: #fff;
    padding: 20px 14px;
    border-radius: 10px;
    cursor: pointer;
    color: #000000;
    text-transform: unset !important;
}

button.choice:hover {
    border-color: var(--brand);
}

.nav {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.btn {
    flex: 1 1 auto;
    border: none;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    padding: 20px 14px;
    border-radius: 10px;
    cursor: pointer;
}

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

.btn.secondary {
    background: #eee;
    color: #333;
}

.meter {
    height: 6px;
    background: #ececec;
    border-radius: 999px;
    overflow: hidden;
    margin: 25px 0 30px;
}

.meter > div {
    height: 100%;
    background: var(--brand);
    width: 0;
}

.recommendation {
    margin-top: 20px;
    padding: 40px 30px;
    border: 1px solid #d9f2e4;
    background: #f2fff7;
    border-radius: 12px;
}

.recommendation h3{
    font-size: 25px;
}

.recommendation h4{
    font-size: 30px;
    margin-bottom: 12px;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    background-color: #ffffff;
}

.media {
    display: grid;
    gap: 12px;
}

.media-thumbnails {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}
.media-thumbnails img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #eee;
    cursor: pointer;
}

.tag-wrapper{
    margin-bottom: 16px;
    gap: 12px;
    display: flex;
    flex-direction: column;
}


.tag {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef8f2;
    border: 1px solid #dcf1e5;
    font-size: 12px;
    margin-right: 6px;
    width: fit-content;
    text-align: center;
}

.cta-wrapper p{
    font-weight: bold;
}

.cta-wrapper-inner{
    margin-top: 20px;
    gap: 12px;
    display: flex;

    flex-direction: column;
    text-align: center;
}

a.cta {
    display: inline-block;
    margin-top: 0;
    padding: 12px 24px;
    border-radius: 16px;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    max-width: fit-content;
}

a.cta:hover {
    background: var(--brand-dark);
}

.sr-only {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.stack {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

details.info {
    background: #f7faf8;
    border: 1px solid #e5f0ea;
    border-radius: 10px;
    padding: 10px;
}

details.info > summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
}


details.info > li {
    margin-right: 8px;
}


.emailbox {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.emailbox input {
    flex: 1 1 auto;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.note {
    color: #8a5500;
    margin-top: 8px;
}

.quiz-price span{
    font-size: 25px;
    font-weight: bold;
    color:  var(--brand);
}

.leasing-text{
    margin: 8px 0px 12px 0px !important;
    color: var(--brand);
    font-size: 14px;
    font-style: italic;
}

#bliv-ringet-op{
    padding: 40px 30px;
    background: #eaeaea;
    border-radius: 8px;
    border: solid 1px var(--brand);
    margin-top: 60px;
}

.sub-title{
    font-size: 18px;
}

#video-placering {
    max-width: 620px !important;
    margin: 50px auto 80px !important;
}

.video-title {
    font-size: 20px;
    text-align: center;
}


iframe.youtube {
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
    border-radius: 12px;
}

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

@media screen and (min-width: 900px) {
    .quiz-wrapper {
        padding: 60px 45px;
    }

    .card {
        display: grid;
        grid-template-columns: 200px 1fr;
        gap: 32px;
        align-items: start;
    }

    .cta-wrapper {
        flex-direction: row;
    }

    .tag-wrapper {
        flex-direction: row;
    }

    #bliv-ringet-op {
        padding: 70px 50px;
    }
}