/* Final Focus Quiz – Frontend */

.ffq-wrap {
    max-width: 680px;
    margin: 0 auto;
    font-family: 'Barlow Condensed', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Progress bar */
.ffq-progress-bar {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-bottom: 32px;
}
.ffq-progress-fill {
    height: 100%;
    background: #CC1B1B;
    border-radius: 2px;
    width: 0%;
    transition: width 0.4s ease;
}

/* Slides */
.ffq-slides {
    position: relative;
}
.ffq-slide {
    display: none;
    animation: ffqFadeIn 0.35s ease;
}
.ffq-slide.ffq-active {
    display: block;
}
@keyframes ffqFadeIn {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}
.ffq-slide.ffq-going-back {
    animation: ffqFadeBack 0.35s ease;
}
@keyframes ffqFadeBack {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}

.ffq-slide-inner {
    padding: 8px 0 24px;
}

/* Question title */
.ffq-question-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 8px;
}
.ffq-question-desc {
    font-size: 16px;
    color: #555;
    margin: 0 0 20px;
}

/* Input fields */
.ffq-input-group {
    margin-bottom: 16px;
}
.ffq-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.ffq-text-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 18px;
    font-family: inherit;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.ffq-text-input:focus {
    border-color: #CC1B1B;
}

/* Options */
.ffq-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}
.ffq-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
}
.ffq-option:hover {
    border-color: #CC1B1B;
    background: #fff5f5;
}
.ffq-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #CC1B1B;
    flex-shrink: 0;
}
.ffq-option.ffq-selected {
    border-color: #CC1B1B;
    background: #fff5f5;
}
.ffq-option-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.ffq-option-label {
    font-size: 18px;
    color: #1a1a1a;
}

/* Nav buttons */
.ffq-nav {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    align-items: center;
}
.ffq-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}
.ffq-btn-next,
.ffq-btn-submit {
    background: #CC1B1B;
    color: #fff;
}
.ffq-btn-next:hover,
.ffq-btn-submit:hover {
    background: #a81515;
}
.ffq-btn-back {
    background: transparent;
    color: #888;
    padding-left: 0;
}
.ffq-btn-back:hover {
    color: #333;
}

/* Submit slide */
.ffq-submit-msg {
    font-size: 20px;
    color: #444;
    margin-bottom: 20px;
}

/* Error */
.ffq-error-msg {
    color: #CC1B1B;
    font-size: 14px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fff5f5;
    border-radius: 6px;
    border: 1px solid #f5c6c6;
}

/* Result slide */
.ffq-result-inner {
    text-align: center;
    padding: 16px 0 32px;
}
.ffq-result-image-wrap {
    margin-bottom: 24px;
}
.ffq-result-image {
    max-width: 100%;
    max-height: 280px;
    border-radius: 12px;
    object-fit: cover;
}
.ffq-result-title {
    font-size: 34px;
    font-weight: 700;
    color: #CC1B1B;
    margin: 0 0 16px;
    line-height: 1.1;
}
.ffq-result-desc {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Mobile */
@media (max-width: 480px) {
    .ffq-question-title { font-size: 22px; }
    .ffq-option-label   { font-size: 16px; }
    .ffq-result-title   { font-size: 26px; }
}

/* Welcome screen */
.ffq-welcome-inner {
    padding: 24px 0 28px;
    text-align: left;
}
.ffq-welcome-title {
    font-size: 34px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 14px;
    line-height: 1.15;
}
.ffq-welcome-desc {
    font-size: 18px;
    color: #444;
    line-height: 1.6;
    margin: 0 0 8px;
}
.ffq-btn-welcome {
    background: #CC1B1B;
    color: #fff;
    font-size: 18px;
    padding: 14px 34px;
}

/* CTA button after result */
.ffq-btn-cta {
    background: #CC1B1B;
    color: #fff !important;
    font-size: 17px;
    padding: 13px 32px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-block;
    margin-top: 24px;
}
