/* =============================================================
   PagePro Quote Form – CSS
   Ændre farver, radius og spacing via variablerne herunder.
   ============================================================= */

:root {
    /* Primærfarve (CTA / orange) */
    --ppqf-color-primary:       #ff6a00;
    --ppqf-color-primary-hover: #e55f00;
    --ppqf-color-primary-light: #fff3ec;

    /* Tekst */
    --ppqf-color-text:          #1e1e1e;
    --ppqf-color-text-muted:    #6b6b6b;

    /* Baggrund og grænser */
    --ppqf-color-bg:            #ffffff;
    --ppqf-color-bg-soft:       #faf9f7;
    --ppqf-color-border:        #e4e4e4;
    --ppqf-color-border-focus:  #ff6a00;

    /* Fejl */
    --ppqf-color-error:         #d0312d;
    --ppqf-color-error-light:   #fff0ef;

    /* Success */
    --ppqf-color-success:       #1a8a4a;
    --ppqf-color-success-light: #e8f7ee;

    /* Afrunding */
    --ppqf-radius-sm:   8px;
    --ppqf-radius-md:   12px;
    --ppqf-radius-lg:   16px;
    --ppqf-radius-full: 999px;

    /* Spacing */
    --ppqf-space-xs:  8px;
    --ppqf-space-sm:  12px;
    --ppqf-space-md:  20px;
    --ppqf-space-lg:  32px;
    --ppqf-space-xl:  48px;

    /* Skygge */
    --ppqf-shadow:    0 4px 24px rgba(0, 0, 0, 0.07);
    --ppqf-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);

    /* Transition */
    --ppqf-transition: 0.18s ease;
}

/* ---------------------------------------------------------------
   Wrapper
   ------------------------------------------------------------- */
.ppqf-wrapper {
    background: var(--ppqf-color-bg);
    border-radius: var(--ppqf-radius-lg);
    box-shadow: var(--ppqf-shadow);
    padding: var(--ppqf-space-lg) var(--ppqf-space-lg) var(--ppqf-space-xl);
    max-width: 680px;
    margin: 0 auto;
    font-family: inherit;
    color: var(--ppqf-color-text);
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* ---------------------------------------------------------------
   Progress bar
   ------------------------------------------------------------- */
.ppqf-progress {
    position: relative;
    margin-bottom: var(--ppqf-space-sm);
}

.ppqf-progress-bar-track {
    background: var(--ppqf-color-border);
    border-radius: var(--ppqf-radius-full);
    height: 4px;
    overflow: hidden;
}

.ppqf-progress-bar {
    height: 4px;
    background: var(--ppqf-color-primary);
    border-radius: var(--ppqf-radius-full);
    transition: width 0.4s ease;
    width: 33.33%;
}

.ppqf-steps-label {
    font-size: 0.78rem;
    color: var(--ppqf-color-text-muted);
    text-align: right;
    margin-top: 6px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------
   Step dots
   ------------------------------------------------------------- */
.ppqf-step-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--ppqf-space-lg);
}

.ppqf-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ppqf-color-bg-soft);
    border: 2px solid var(--ppqf-color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ppqf-color-text-muted);
    transition: background var(--ppqf-transition), border-color var(--ppqf-transition), color var(--ppqf-transition);
    flex-shrink: 0;
}

.ppqf-dot.active {
    background: var(--ppqf-color-primary);
    border-color: var(--ppqf-color-primary);
    color: #fff;
}

.ppqf-dot.completed {
    background: var(--ppqf-color-success-light);
    border-color: var(--ppqf-color-success);
    color: var(--ppqf-color-success);
}

.ppqf-dot-line {
    flex: 1;
    height: 2px;
    background: var(--ppqf-color-border);
    max-width: 80px;
}

/* ---------------------------------------------------------------
   Step container
   ------------------------------------------------------------- */
.ppqf-step {
    animation: ppqf-fade-in 0.28s ease both;
}

.ppqf-step.hidden {
    display: none;
}

@keyframes ppqf-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ppqf-step-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--ppqf-color-text);
    margin: 0 0 6px;
    line-height: 1.25;
}

.ppqf-step-desc {
    font-size: 0.93rem;
    color: var(--ppqf-color-text-muted);
    margin: 0 0 var(--ppqf-space-lg);
}

/* ---------------------------------------------------------------
   Felter
   ------------------------------------------------------------- */
.ppqf-field {
    margin-bottom: var(--ppqf-space-md);
}

.ppqf-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ppqf-space-sm);
}

@media (max-width: 520px) {
    .ppqf-field-row {
        grid-template-columns: 1fr;
    }
}

.ppqf-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ppqf-color-text);
    margin-bottom: var(--ppqf-space-xs);
}

.ppqf-label em {
    font-weight: 400;
    color: var(--ppqf-color-text-muted);
    font-style: normal;
}

/* ---------------------------------------------------------------
   Text inputs & textarea
   ------------------------------------------------------------- */
.ppqf-input,
.ppqf-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--ppqf-color-border);
    border-radius: var(--ppqf-radius-sm);
    font-size: 0.93rem;
    color: var(--ppqf-color-text);
    background: var(--ppqf-color-bg-soft);
    transition: border-color var(--ppqf-transition), box-shadow var(--ppqf-transition);
    outline: none;
    font-family: inherit;
    -webkit-appearance: none;
}

.ppqf-input:focus,
.ppqf-textarea:focus {
    border-color: var(--ppqf-color-border-focus);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
}

.ppqf-input.error,
.ppqf-textarea.error {
    border-color: var(--ppqf-color-error);
    background: var(--ppqf-color-error-light);
}

.ppqf-textarea {
    resize: vertical;
    min-height: 100px;
}

/* ---------------------------------------------------------------
   Radio cards
   ------------------------------------------------------------- */
.ppqf-radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ppqf-space-xs);
}

.ppqf-radio-group.ppqf-radio-inline {
    grid-template-columns: repeat(auto-fill, minmax(100px, auto));
}

@media (max-width: 400px) {
    .ppqf-radio-group {
        grid-template-columns: 1fr;
    }
}

.ppqf-radio-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1.5px solid var(--ppqf-color-border);
    border-radius: var(--ppqf-radius-sm);
    background: var(--ppqf-color-bg-soft);
    cursor: pointer;
    transition: border-color var(--ppqf-transition), background var(--ppqf-transition), box-shadow var(--ppqf-transition);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ppqf-color-text);
    user-select: none;
}

.ppqf-radio-card:hover {
    border-color: var(--ppqf-color-primary);
    background: var(--ppqf-color-primary-light);
}

.ppqf-radio-card input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--ppqf-color-primary);
    cursor: pointer;
}

.ppqf-radio-card:has(input:checked) {
    border-color: var(--ppqf-color-primary);
    background: var(--ppqf-color-primary-light);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.10);
}

.ppqf-radio-card.error-card {
    border-color: var(--ppqf-color-error);
}

/* ---------------------------------------------------------------
   Checkbox cards
   ------------------------------------------------------------- */
.ppqf-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ppqf-space-xs);
}

.ppqf-checkbox-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid var(--ppqf-color-border);
    border-radius: var(--ppqf-radius-sm);
    background: var(--ppqf-color-bg-soft);
    cursor: pointer;
    transition: border-color var(--ppqf-transition), background var(--ppqf-transition);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ppqf-color-text);
    user-select: none;
}

.ppqf-checkbox-card:hover {
    border-color: var(--ppqf-color-primary);
    background: var(--ppqf-color-primary-light);
}

.ppqf-checkbox-card input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--ppqf-color-primary);
    cursor: pointer;
}

.ppqf-checkbox-card:has(input:checked) {
    border-color: var(--ppqf-color-primary);
    background: var(--ppqf-color-primary-light);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.10);
}

/* ---------------------------------------------------------------
   Samtykke checkbox
   ------------------------------------------------------------- */
.ppqf-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--ppqf-color-text-muted);
    line-height: 1.5;
}

.ppqf-consent-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--ppqf-color-primary);
    cursor: pointer;
}

/* ---------------------------------------------------------------
   Fejlmeddelelser
   ------------------------------------------------------------- */
.ppqf-error {
    display: block;
    font-size: 0.8rem;
    color: var(--ppqf-color-error);
    margin-top: 5px;
    min-height: 1em;
    font-weight: 500;
}

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

/* ---------------------------------------------------------------
   Navigationsknapper
   ------------------------------------------------------------- */
.ppqf-nav {
    margin-top: var(--ppqf-space-lg);
    display: flex;
    justify-content: flex-end;
}

.ppqf-nav-split {
    justify-content: space-between;
    align-items: center;
}

.ppqf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--ppqf-radius-full);
    font-size: 0.93rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background var(--ppqf-transition), transform var(--ppqf-transition), box-shadow var(--ppqf-transition);
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
}

.ppqf-btn:active {
    transform: scale(0.97);
}

/* Næste / Submit */
.ppqf-btn-next,
.ppqf-btn-submit {
    background: var(--ppqf-color-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 106, 0, 0.28);
}

.ppqf-btn-next:hover,
.ppqf-btn-submit:hover {
    background: var(--ppqf-color-primary-hover);
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.36);
}

.ppqf-btn-submit {
    padding: 15px 28px;
    font-size: 1rem;
}

/* Tilbage */
.ppqf-btn-back {
    background: transparent;
    color: var(--ppqf-color-text-muted);
    border: 1.5px solid var(--ppqf-color-border);
    padding: 12px 20px;
}

.ppqf-btn-back:hover {
    background: var(--ppqf-color-bg-soft);
    border-color: var(--ppqf-color-text-muted);
    color: var(--ppqf-color-text);
}

/* Loading state */
.ppqf-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------------------------------------------------------------
   Success state
   ------------------------------------------------------------- */
.ppqf-success {
    text-align: center;
    padding: var(--ppqf-space-xl) var(--ppqf-space-lg);
    animation: ppqf-fade-in 0.35s ease both;
}

.ppqf-success.hidden {
    display: none;
}

.ppqf-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ppqf-color-success-light);
    color: var(--ppqf-color-success);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--ppqf-space-md);
    border: 2px solid var(--ppqf-color-success);
}

.ppqf-success h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ppqf-color-text);
    margin: 0 0 var(--ppqf-space-xs);
    line-height: 1.4;
}

.ppqf-success p {
    font-size: 0.93rem;
    color: var(--ppqf-color-text-muted);
    margin: 0;
}

/* ---------------------------------------------------------------
   Responsivitet – lille mobil
   ------------------------------------------------------------- */
@media (max-width: 480px) {
    .ppqf-wrapper {
        padding: var(--ppqf-space-md);
        border-radius: var(--ppqf-radius-md);
    }

    .ppqf-step-title {
        font-size: 1.2rem;
    }

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

    .ppqf-nav-split {
        flex-direction: column-reverse;
        gap: var(--ppqf-space-xs);
        align-items: stretch;
    }

    .ppqf-btn-back {
        text-align: center;
        justify-content: center;
    }
}
