@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --qf-lime: #ccff00;
    --qf-lime-strong: #b0e000;
    --qf-lime-text: #5c7a0a;
    --qf-lime-soft: #f4ffd6;
    --qf-ink: #0a0a0a;
    --qf-green: #16a34a;
    --qf-red: #dc2626;
}

.quizforge-embed {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: transparent;
    position: relative;
    display: flex;
    flex-direction: column;
}

.quizforge-embed * {
    box-sizing: border-box;
}

/* Card — every visual block (topbar, question, results) is one of these */
.qf-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 1px 6px rgba(0,0,0,.05);
    margin-bottom: 14px;
    flex-shrink: 0;
}

/* Loading state */
.qf-embed-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    flex: 1;
}

.qf-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--qf-lime-text);
    border-radius: 50%;
    animation: qf-spin 0.7s linear infinite;
}

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

/* Topbar card: progress label + timer + dotted progress track */
.qf-topbar {
    padding: 16px 20px;
}

.qf-topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.qf-topbar-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9ca3af;
}

.qf-progress-track {
    position: relative;
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
}

.qf-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--qf-lime);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.qf-progress-dots {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qf-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e5e7eb;
    flex-shrink: 0;
}

.qf-progress-dot.done {
    background: var(--qf-lime);
    box-shadow: none;
}

.qf-progress-dot.current {
    width: 10px;
    height: 10px;
    background: var(--qf-ink);
    box-shadow: none;
}

/* Timer */
.qf-timer-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.qf-timer-pill.qf-timer-low {
    background: #fef2f2;
    color: var(--qf-red);
}

.qf-timer-pill.qf-timer-up {
    background: #fef2f2;
    color: var(--qf-red);
}

/* Quiz intro / start screen */
.qf-intro-card {
    overflow: hidden;
    animation: qf-fade-in .3s ease-out;
}

.qf-intro-header {
    padding: 32px 24px 28px;
    text-align: center;
    background: var(--qf-ink);
}

.qf-intro-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 16px;
    background: var(--qf-lime);
    color: var(--qf-ink);
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px 4px rgba(204,255,0,.35);
}

.qf-intro-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.3;
    /* Theme (Academy LMS) applies its own h3 styling globally inside
       .academy-lessons-content__text; force it back to the plugin's design. */
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    border: none !important;
    border-radius: 0 !important;
}

.qf-intro-desc {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

.qf-intro-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.qf-intro-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.qf-intro-stat:nth-child(odd) {
    border-right: 1px solid #f3f4f6;
}

.qf-intro-stat svg {
    color: #9ca3af;
    flex-shrink: 0;
}

.qf-intro-action {
    padding: 18px 20px 20px;
}

.qf-intro-start {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
    font-size: 14px;
}

/* Results card */
.qf-results-card {
    overflow: hidden;
    animation: qf-fade-in .3s ease-out;
}

.qf-results-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--qf-ink);
    color: #fff;
}

.qf-results-banner h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    /* Theme (Academy LMS) applies its own h3 styling globally inside
       .academy-lessons-content__text; force it back to the plugin's design. */
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    color: inherit !important;
    font-weight: 700 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    border: none !important;
    border-radius: 0 !important;
}

.qf-results-banner-icon {
    display: flex;
    flex-shrink: 0;
}

.qf-results-banner-icon svg {
    width: 20px;
    height: 20px;
}

.qf-results-banner-pass .qf-results-banner-icon { color: var(--qf-green); }
.qf-results-banner-fail .qf-results-banner-icon { color: var(--qf-red); }
.qf-results-banner-neutral .qf-results-banner-icon { color: var(--qf-lime); }

.qf-results-body {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 26px 22px;
    flex-wrap: wrap;
}

.qf-results-body-simple {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
}

.qf-results-ring-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    margin: 0 auto;
}

.qf-results-ring {
    width: 120px;
    height: 120px;
}

.qf-results-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qf-results-ring-text strong {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.qf-results-ring-text span {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 3px;
}

.qf-results-stats {
    flex: 1;
    min-width: 200px;
}

.qf-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #6b7280;
}

.qf-stat-row:last-child {
    border-bottom: none;
}

.qf-stat-row > span:last-child {
    font-weight: 700;
    color: #111827;
}

.qf-stat-pill {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--qf-lime);
    color: var(--qf-ink);
    font-size: 12px;
    font-weight: 700;
}

.qf-stat-pill.pass {
    background: #dcfce7;
    color: var(--qf-green);
}

.qf-stat-pill.fail {
    background: #fee2e2;
    color: var(--qf-red);
}

.qf-results-msg {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.qf-results-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 22px 22px;
}

/* Question card */
.qf-question-card {
    padding: 22px 20px 18px;
}

.qf-question-display {
    animation: qf-slide-up .3s cubic-bezier(.16,1,.3,1);
}

.qf-question-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.qf-question-num-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--qf-lime);
    color: var(--qf-ink);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qf-question-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    /* Theme (Academy LMS) applies its own h3 styling globally inside
       .academy-lessons-content__text; force it back to the plugin's design. */
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    color: #111827 !important;
    font-weight: 700 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    border: none !important;
    border-radius: 0 !important;
}

.qf-question-content {
    font-size: 16px;
    color: #1f2937;
    line-height: 1.6;
    margin-bottom: 14px;
    white-space: pre-wrap;
}

/* Explanation (Review Answers) */
.qf-explanation {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 14px 16px;
    background: var(--qf-lime-soft);
    border: 1px solid var(--qf-lime);
    border-radius: 12px;
    animation: qf-fade-in .3s ease-out;
}

.qf-explanation-icon {
    display: flex;
    flex-shrink: 0;
    color: var(--qf-lime-text);
    margin-top: 1px;
}

.qf-explanation-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--qf-lime-text);
    margin: 0 0 3px;
}

.qf-explanation-text {
    font-size: 13px;
    line-height: 1.55;
    color: #374151;
    margin: 0;
    white-space: pre-wrap;
}

.qf-question-image {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    margin-bottom: 14px;
    max-width: 100%;
}

.qf-question-image img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    display: block;
}

/* Bar chart */
.qf-bar-chart {
    margin-bottom: 14px;
}

.qf-bar-chart-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-align: center;
    margin-bottom: 12px;
}

.qf-bar-chart-svg {
    width: 100%;
    overflow: visible;
}

/* Answers - text */
.qf-answers-text {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.qf-answer-btn {
    width: 100%;
    text-align: left;
    padding: 13px 15px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all .15s;
    font-family: inherit;
}

.qf-answer-btn:hover:not(:disabled) {
    border-color: #d1d5db;
    background: #f9fafb;
}

.qf-answer-btn.selected {
    border-color: var(--qf-lime);
    background: var(--qf-lime-soft);
    box-shadow: 0 0 0 3px rgba(204,255,0,.25);
}

.qf-answer-btn.correct {
    border-color: var(--qf-green);
    background: #f0fdf4;
}

.qf-answer-btn.incorrect {
    border-color: var(--qf-red);
    background: #fef2f2;
}

.qf-answer-btn.dimmed {
    border-color: #e5e7eb;
    opacity: .55;
}

.qf-answer-btn:disabled {
    cursor: default;
}

.qf-answer-letter {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}

.qf-answer-btn.selected .qf-answer-letter {
    background: var(--qf-lime);
    color: var(--qf-ink);
}

.qf-answer-btn.correct .qf-answer-letter {
    background: var(--qf-green);
    color: #fff;
}

.qf-answer-btn.incorrect .qf-answer-letter {
    background: var(--qf-red);
    color: #fff;
}

.qf-answer-result-icon {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
}

.qf-answer-btn.correct .qf-answer-result-icon { color: var(--qf-green); }
.qf-answer-btn.incorrect .qf-answer-result-icon { color: var(--qf-red); }

.qf-answer-label {
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    flex: 1;
}

/* Answers - image grid */
.qf-answers-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 400px) {
    .qf-answers-images {
        grid-template-columns: repeat(3, 1fr);
    }
}

.qf-answer-img-btn {
    width: 100%;
    padding: 8px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all .2s;
    font-family: inherit;
}

.qf-answer-img-btn:hover:not(:disabled) {
    border-color: #d1d5db;
}

.qf-answer-img-btn.selected {
    border-color: var(--qf-lime);
    background: var(--qf-lime-soft);
    box-shadow: 0 0 0 3px rgba(204,255,0,.25);
}

.qf-answer-img-btn.correct {
    border-color: var(--qf-green);
    background: #f0fdf4;
}

.qf-answer-img-btn.incorrect {
    border-color: var(--qf-red);
    background: #fef2f2;
}

.qf-answer-img-btn.dimmed {
    opacity: .55;
}

.qf-answer-img-btn:disabled {
    cursor: default;
}

.qf-answer-img-thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 7px;
    overflow: hidden;
    background: #f3f4f6;
}

.qf-answer-img-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qf-answer-img-lbl {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    text-align: center;
}

.qf-answer-img-check {
    color: var(--qf-green);
    display: none;
}

.qf-answer-img-btn.correct .qf-answer-img-check {
    display: block;
}

.qf-answer-img-check svg {
    width: 14px;
    height: 14px;
}

/* Question card footer nav */
.qf-card-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.qf-nav-hint {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    flex: 1;
}

/* Buttons */
.qf-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    white-space: nowrap;
}

.qf-nav-btn:hover:not(:disabled) {
    background: #e5e7eb;
}

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

.qf-nav-btn.qf-nav-next {
    background: var(--qf-lime);
    color: var(--qf-ink);
}

.qf-nav-btn.qf-nav-next:hover:not(:disabled) {
    background: var(--qf-lime-strong);
}

.qf-nav-btn.qf-nav-next:disabled {
    background: var(--qf-lime-soft);
    color: #9ca3af;
    opacity: 1;
}

.qf-nav-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Footer */
.qf-embed-footer {
    display: flex;
    justify-content: center;
    padding: 8px 0 2px;
    flex-shrink: 0;
}

.qf-embed-footer span {
    font-size: 10px;
    color: #d1d5db;
    letter-spacing: .05em;
}

/* Error state */
.qf-embed-error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    flex: 1;
}

.qf-embed-error p {
    font-size: 13px;
    color: #6b7280;
}

/* Animations */
@keyframes qf-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes qf-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Email Collection Modal ────────────────────────────────────────────── */
.qf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    animation: qf-fade-in 0.2s ease-out;
}

@keyframes qf-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.qf-modal-container {
    animation: qf-slide-up 0.3s ease-out;
}

@keyframes qf-slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.qf-modal-content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 100%;
    padding: 40px;
    text-align: center;
}

.qf-modal-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 12px;
    margin: 0 auto 24px;
    display: block;
}

.qf-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.qf-modal-message {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.qf-modal-form {
    text-align: left;
}

.qf-modal-field {
    margin-bottom: 20px;
}

.qf-modal-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.qf-modal-field input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.qf-modal-field input:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.qf-modal-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: left;
}

.qf-modal-button {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 12px;
}

.qf-modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.4);
}

.qf-modal-button:active {
    transform: translateY(0);
}

.qf-modal-skip {
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    color: #6b7280;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

.qf-modal-skip:hover {
    color: #374151;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .qf-modal-content {
        padding: 32px 24px;
    }
    
    .qf-modal-title {
        font-size: 24px;
    }
    
    .qf-modal-message {
        font-size: 15px;
    }
}
/* ─── Email Collection Modal - Base Styles ──────────────────────────────── */
.qf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    animation: qf-fade-in 0.2s ease-out;
}

@keyframes qf-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.qf-modal-container {
    animation: qf-slide-up 0.3s ease-out;
}

@keyframes qf-slide-up {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.qf-modal-content {
    max-width: 480px;
    width: 100%;
}

.qf-modal-form {
    text-align: left;
}

.qf-modal-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    text-align: left;
}

/* ─── Modern Gradient Template ───────────────────────────────────────────── */
.qf-modal-modern .qf-modal-content {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    padding: 48px 40px;
    text-align: center;
}

.qf-modal-modern .qf-modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.qf-modal-modern .qf-modal-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qf-modal-modern .qf-modal-message {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 32px 0;
    line-height: 1.5;
}

.qf-modal-modern .qf-modal-field {
    margin-bottom: 16px;
}

.qf-modal-modern .qf-modal-field input {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.95);
    color: #374151;
    font-weight: 500;
    text-align: center;
}

.qf-modal-modern .qf-modal-field input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.qf-modal-modern .qf-modal-field input:focus {
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.qf-modal-modern .qf-modal-button {
    width: 100%;
    padding: 16px 24px;
    background: #5b21b6;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qf-modal-modern .qf-modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    background: #4c1d95;
}

.qf-modal-modern .qf-modal-skip {
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
}

.qf-modal-modern .qf-modal-skip:hover {
    color: #ffffff;
}

/* ─── Hero Image Template ────────────────────────────────────────────────── */
.qf-modal-hero .qf-modal-content {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    text-align: center;
}

.qf-modal-hero-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.qf-modal-hero-body {
    padding: 32px 40px 40px;
}

.qf-modal-hero .qf-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.qf-modal-hero .qf-modal-message {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 28px 0;
    line-height: 1.6;
}

.qf-modal-hero .qf-modal-field {
    margin-bottom: 16px;
}

.qf-modal-hero .qf-modal-field input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.2s;
}

.qf-modal-hero .qf-modal-field input:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.qf-modal-hero .qf-modal-button {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 12px;
}

.qf-modal-hero .qf-modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4);
}

.qf-modal-hero .qf-modal-skip {
    width: 100%;
    padding: 10px 24px;
    background: transparent;
    color: #9ca3af;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s;
}

.qf-modal-hero .qf-modal-skip:hover {
    color: #6b7280;
}

/* ─── Dark Minimal Template ──────────────────────────────────────────────── */
.qf-modal-minimal .qf-modal-content {
    background: #1e293b;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 48px 40px;
    text-align: left;
    max-width: 560px;
}

.qf-modal-minimal .qf-modal-title {
    font-size: 32px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.qf-modal-minimal .qf-modal-message {
    font-size: 15px;
    color: #cbd5e1;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.qf-modal-minimal .qf-modal-field {
    margin-bottom: 16px;
}

.qf-modal-minimal .qf-modal-field input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    color: #ffffff;
    transition: all 0.2s;
}

.qf-modal-minimal .qf-modal-field input::placeholder {
    color: #94a3b8;
}

.qf-modal-minimal .qf-modal-field input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(236, 72, 153, 0.5);
}

.qf-modal-minimal .qf-modal-inline-group {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.qf-modal-minimal .qf-modal-inline-group input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px 0 0 8px;
    font-size: 15px;
    color: #ffffff;
}

.qf-modal-minimal .qf-modal-inline-group input::placeholder {
    color: #94a3b8;
}

.qf-modal-minimal .qf-modal-button-inline {
    padding: 14px 28px;
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: #ffffff;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.qf-modal-minimal .qf-modal-button-inline:hover {
    background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}

.qf-modal-minimal .qf-modal-skip-minimal {
    background: transparent;
    color: #94a3b8;
    border: none;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 8px 0;
    position: absolute;
    top: 20px;
    right: 20px;
}

.qf-modal-minimal .qf-modal-skip-minimal:hover {
    color: #cbd5e1;
}

/* ─── Mobile Responsiveness ──────────────────────────────────────────────── */
@media (max-width: 640px) {
    .qf-modal-modern .qf-modal-content,
    .qf-modal-hero-body,
    .qf-modal-minimal .qf-modal-content {
        padding: 32px 24px;
    }
    
    .qf-modal-modern .qf-modal-title,
    .qf-modal-hero .qf-modal-title,
    .qf-modal-minimal .qf-modal-title {
        font-size: 24px;
    }
    
    .qf-modal-modern .qf-modal-message,
    .qf-modal-hero .qf-modal-message,
    .qf-modal-minimal .qf-modal-message {
        font-size: 14px;
    }
    
    .qf-modal-minimal .qf-modal-inline-group {
        flex-direction: column;
    }
    
    .qf-modal-minimal .qf-modal-inline-group input {
        border-radius: 8px;
    }
    
    .qf-modal-minimal .qf-modal-button-inline {
        border-radius: 8px;
        width: 100%;
    }
}
