/* ===== Perfume Finder Quiz — Nisbah Theme ===== */

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

#pfq-wrapper {
    max-width: 760px;
    margin: 40px auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#pfq-quiz {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e8edf5;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
#pfq-header {
    background: #1a4fcb;
    padding: 36px 44px 28px;
    text-align: center;
    color: #fff;
}

#pfq-logo {
    font-size: 40px;
    margin-bottom: 10px;
    line-height: 1;
}

#pfq-header h2 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
    font-family: 'Inter', sans-serif;
}

#pfq-header p {
    margin: 0 0 22px;
    font-size: 14px;
    opacity: 0.88;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

#pfq-progress-bar {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 99px;
    height: 6px;
    margin-bottom: 8px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

#pfq-progress-fill {
    background: #fff;
    height: 100%;
    border-radius: 99px;
    width: 20%;
    transition: width 0.4s ease;
}

#pfq-progress-text {
    font-size: 12px !important;
    opacity: 0.78;
    margin: 0 !important;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ── Questions ───────────────────────────────────────────────────────────── */
#pfq-questions {
    padding: 36px 44px;
    background: #fff;
}

.pfq-step h3 {
    font-size: 18px;
    color: #111827;
    margin: 0 0 20px;
    line-height: 1.4;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.pfq-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.pfq-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.18s ease;
    background: #fff;
}

.pfq-option:hover {
    border-color: #1a4fcb;
    background: #f0f5ff;
}

.pfq-option input[type="radio"] {
    display: none;
}

.pfq-option.selected {
    border-color: #1a4fcb;
    background: #eef3fd;
    box-shadow: 0 0 0 3px rgba(26, 79, 203, 0.10);
}

.pfq-option-key {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
    transition: all 0.18s ease;
}

.pfq-option.selected .pfq-option-key {
    background: #1a4fcb;
    color: #fff;
}

.pfq-option-label {
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.pfq-option.selected .pfq-option-label {
    color: #1a4fcb;
    font-weight: 500;
}

/* ── Navigation ──────────────────────────────────────────────────────────── */
.pfq-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4px;
}

.pfq-btn {
    padding: 11px 26px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.1px;
}

.pfq-btn-back {
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #e2e8f0;
}

.pfq-btn-back:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.pfq-btn-next,
.pfq-btn-submit {
    background: #1a4fcb !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(26, 79, 203, 0.25) !important;
}

.pfq-btn-next:hover,
.pfq-btn-next:focus,
.pfq-btn-submit:hover,
.pfq-btn-submit:focus {
    background: #1a4fcb !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(26, 79, 203, 0.25) !important;
    transform: none !important;
}

.pfq-btn-next:disabled,
.pfq-btn-submit:disabled {
    background: #1a4fcb !important;
    color: #fff !important;
    opacity: 0.40 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

/* ── Loading ─────────────────────────────────────────────────────────────── */
#pfq-loading {
    padding: 64px 44px;
    text-align: center;
    color: #6b7280;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
}

.pfq-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid #e2e8f0;
    border-top-color: #1a4fcb;
    border-radius: 50%;
    animation: pfq-spin 0.75s linear infinite;
    margin: 0 auto 18px;
}

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

/* ── Results ─────────────────────────────────────────────────────────────── */
#pfq-results {
    padding: 36px 44px;
    background: #fff;
}

#pfq-results h2 {
    font-size: 22px;
    color: #111827;
    margin: 0 0 6px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.pfq-results-sub {
    color: #6b7280;
    margin: 0 0 28px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

#pfq-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.pfq-product-card {
    border: 1px solid #e8edf5;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}

.pfq-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    border-color: #c7d7f5;
}

.pfq-product-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    background: #f8fafc;
    display: block;
    padding: 12px;
    box-sizing: border-box;
}

.pfq-product-image-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
}

.pfq-product-body {
    padding: 12px 14px 14px;
    border-top: 1px solid #f1f5f9;
}

.pfq-product-brand {
    font-size: 11px;
    font-weight: 600;
    color: #1a4fcb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 3px;
    font-family: 'Inter', sans-serif;
}

.pfq-product-name {
    font-weight: 600;
    font-size: 13px;
    color: #111827;
    margin: 0 0 4px;
    line-height: 1.35;
    font-family: 'Inter', sans-serif;
}

.pfq-product-price {
    color: #111827;
    font-weight: 700;
    font-size: 15px;
    margin: 0 0 8px;
    font-family: 'Inter', sans-serif;
}

.pfq-product-reason {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.55;
    margin: 0 0 12px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
}

.pfq-product-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 9px 0;
    background: #1a4fcb;
    color: #fff !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.18s ease;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.pfq-product-btn:hover {
    background: #1540a8;
}

#pfq-restart {
    display: block;
    margin: 0 auto;
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #e2e8f0;
    font-size: 13px;
}

#pfq-restart:hover {
    background: #e2e8f0;
}

/* ── Nisbah branding strip ───────────────────────────────────────────────── */
.pfq-powered-by {
    text-align: center;
    padding: 14px;
    background: #f8fafc;
    border-top: 1px solid #e8edf5;
    font-size: 11px;
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.3px;
}

.pfq-powered-by strong {
    color: #1a4fcb;
}

/* ── Error ───────────────────────────────────────────────────────────────── */
#pfq-error {
    padding: 64px 44px;
    text-align: center;
    color: #dc2626;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    #pfq-header,
    #pfq-questions,
    #pfq-results {
        padding: 24px 20px;
    }
    #pfq-header h2 { font-size: 20px; }
    #pfq-results-grid { grid-template-columns: 1fr; }
}

@media (min-width: 601px) and (max-width: 800px) {
    #pfq-results-grid { grid-template-columns: repeat(2, 1fr); }
}
