/* Fortrydelsesknap — Frontend */

/* Overlay */
.fk-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 999998;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.fk-overlay.fk-aktiv {
    display: flex;
}

/* Modal */
.fk-modal {
    background: #fff;
    border-radius: 10px;
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 28px 28px;
    position: relative;
    box-shadow: 0 8px 40px rgba(0,0,0,.25);
    animation: fk-slide-in .2s ease;
}
@keyframes fk-slide-in {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.fk-luk {
    position: absolute;
    top: 12px; right: 14px;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 4px;
}
.fk-luk:hover { color: #333; }

.fk-modal h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
}
.fk-intro {
    font-size: .88rem;
    color: #666;
    margin: 0 0 20px;
    line-height: 1.5;
}

/* Formularfelter */
.fk-felt-gruppe {
    margin-bottom: 14px;
}
.fk-felt-gruppe label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.fk-felt-gruppe label span {
    color: #c0392b;
}
.fk-felt-gruppe input,
.fk-felt-gruppe textarea {
    width: 100%;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: .9rem;
    font-family: inherit;
    color: #222;
    background: #fafafa;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.fk-felt-gruppe input:focus,
.fk-felt-gruppe textarea:focus {
    outline: none;
    border-color: #2c7a4b;
    box-shadow: 0 0 0 3px rgba(44,122,75,.15);
    background: #fff;
}
.fk-felt-gruppe textarea {
    resize: vertical;
    min-height: 72px;
}

.fk-legal {
    font-size: .78rem;
    color: #888;
    line-height: 1.5;
    margin: 4px 0 16px;
}

.fk-fejl {
    background: #fef0f0;
    border: 1px solid #f5c6c6;
    border-radius: 6px;
    color: #c0392b;
    padding: 10px 14px;
    font-size: .875rem;
    margin-bottom: 12px;
}

/* Indsend-knap */
.fk-indsend-knap {
    width: 100%;
    padding: 12px 20px;
    background: #2c7a4b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, opacity .15s;
}
.fk-indsend-knap:hover { background: #235f3a; }
.fk-indsend-knap:disabled { opacity: .6; cursor: not-allowed; }

/* Succes */
.fk-succes {
    text-align: center;
    padding: 12px 0;
}
.fk-succes-ikon {
    width: 56px; height: 56px;
    background: #e8f5e9;
    color: #2c7a4b;
    font-size: 1.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.fk-succes h3 {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin: 0 0 10px;
}
.fk-succes p {
    font-size: .9rem;
    color: #555;
    margin: 0 0 8px;
    line-height: 1.5;
}
.fk-succes a {
    display: inline-block;
    margin-top: 10px;
    color: #2c7a4b;
    font-size: .9rem;
    font-weight: 600;
}

/* Flydende knap */
.fk-floating-knap {
    position: fixed;
    bottom: 16px; right: 16px;
    z-index: 999997;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border: none;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    transition: box-shadow .15s, transform .15s;
}
.fk-floating-knap svg {
    width: 14px; height: 14px;
}
.fk-floating-knap:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.28);
    transform: translateY(-2px);
}

/* Topbar */
.fk-header-bar {
    width: 100%;
    text-align: center;
    padding: 8px 16px;
    font-size: .85rem;
    position: sticky;
    top: 0;
    z-index: 9999;
}
.fk-header-bar button {
    background: none;
    border: none;
    font-weight: 600;
    font-size: .85rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
}

/* Footerbar */
.fk-footer-bar {
    width: 100%;
    padding: 16px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    margin-top: 32px;
}

/* Trigger-knap (shortcode / inline) */
.fk-trigger-knap {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 5px 10px !important;
    border: none !important;
    border-radius: 6px;
    font-size: .75rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    color: inherit !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: opacity .15s;
}
.fk-trigger-knap:hover { opacity: .85; }

@media (max-width: 768px) {
    .fk-trigger-knap {
        padding: 4px 8px !important;
        font-size: .68rem !important;
    }
}

/* WooCommerce thank-you boks */
.fk-thankyou-boks {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 16px 0;
    background: #fafafa;
}

@media (max-width: 480px) {
    .fk-modal { padding: 24px 16px 20px; }
    .fk-floating-knap span { display: none; }
    .fk-floating-knap { padding: 14px; border-radius: 50%; }
}
