/* YSF Course Survey Styles */

.ysf-course-survey {
    max-width: 700px;
    margin: 30px 0;
}

.ysf-survey-intro {
    margin-bottom: 20px;
}

.ysf-survey-welcome {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* ── Accordion list ─────────────────────────────────────────── */

.ysf-survey-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    max-width: 100% !important;
}

.ysf-survey-question {
    /* border-bottom: 1px solid #e0e0e0;
    background: #fff; */
}

.ysf-survey-question:last-of-type {
    border-bottom: none;
}

/* ── Accordion header (wraps label + chevron) ────────────────── */

.ysf-survey-question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    gap: 12px;
    transition: background 0.15s ease;
}

.ysf-survey-question-header:hover {
    /* background: #f7f7f7; */
}

.ysf-survey-question.is-open .ysf-survey-question-header {
    /* background: #f7f7f7; */
}

.ysf-survey-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.ysf-survey-label .required {
    color: #e74c3c;
    margin-left: 3px;
}

/* Status icons on the right of the header */
.ysf-accordion-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ysf-accordion-answered {
    display: none;
    width: 20px;
    height: 20px;
    padding: 2px 3px;
    background: #2ecc71;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}

.ysf-survey-question.is-answered .ysf-accordion-answered {
    display: block;
}

.ysf-accordion-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #19683b;
    transition: transform 0.25s ease;
}

.ysf-survey-question.is-open .ysf-accordion-chevron {
    transform: rotate(180deg);
}

/* ── Accordion body (collapsible) ────────────────────────────── */

.ysf-survey-question-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.ysf-survey-question.is-open .ysf-survey-question-body {
    max-height: 2000px;
    padding: 4px 20px 20px;
}

/* ── Options ─────────────────────────────────────────────────── */

.ysf-survey-options {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ysf-survey-option {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    /* background: #f9f9f9;
    border: 1.5px solid #e0e0e0; */
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #000
}

.ysf-survey-option:hover {
    background: #f0f0f0;
    border-color: #0073aa;
}

.ysf-survey-option input[type="radio"],
.ysf-survey-option input[type="checkbox"] {
    margin: 0 12px 0 0;
    cursor: pointer;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.ysf-survey-option input[type="radio"]:checked + span,
.ysf-survey-option input[type="checkbox"]:checked + span {
    
}

.ysf-survey-option:has(input:checked) {
    background: #faefe8;
    border-color: #009e87;
}

.ysf-survey-option span {
    flex: 1;
    font-size: 1rem;
    line-height: 1.4;
}

.ysf-survey-other-field {
    margin-top: 8px;
    margin-left: 30px;
}

/* ── Inputs / textarea ───────────────────────────────────────── */

.ysf-survey-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.ysf-survey-input:focus {
    outline: none;
    border-color: #0073aa;
}

/* ── Error / actions ─────────────────────────────────────────── */

.ysf-survey-error {
    padding: 12px 20px;
    background: #fee;
    /* border: 1px solid #fcc; */
    border-radius: 4px;
    color: #000000;
    font-size: 1rem;
    margin: 12px 0;
}

.ysf-survey-actions {
    margin-top: 20px;
    padding: 0 0 20px;
    text-align: left;
}

.ysf-survey-submit {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ysf-survey-submit:hover {
    background: #005a87;
}

.ysf-survey-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ── Success message ─────────────────────────────────────────── */

.ysf-survey-thanks {
    font-size: 1.125rem;
    padding: 1rem;
    border-radius: 6px;
    background-color: #d2ebe9;
    text-align: center;
    line-height: 1.6;
}

.ysf-survey-thanks p {
    margin: 0;
}

/* ── Mobile ──────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .ysf-survey-question-header {
        padding: 14px 16px;
    }

    .ysf-survey-question.is-open .ysf-survey-question-body {
        padding: 4px 16px 16px;
    }

    .ysf-survey-error {
        margin: 10px 16px;
    }

    .ysf-survey-actions {
        padding: 0 16px 16px;
    }

    .ysf-survey-actions .btn,
    .ysf-survey-submit {
        width: 100%;
        padding: 14px 20px;
    }
}

/* REVIEW */
.ysf-review-extra-questions {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-review-form h3 {
    font-size: 1.125rem;
    padding: 0 20px !important;
    margin-top: 1rem !important;
}

.course-review-fields.pdp-faq__item {
    margin-bottom: 1rem;
}
.course-review-fields.pdp-faq__item p {
    padding: 0 20px;
    font-size: 1rem;
}
.course-review-fields.pdp-faq__item p label {
    font-weight: 600;
}

/* Stars rating */
.course-review-form .form-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    padding: 0 20px;
    margin: 1rem 0 2rem;
}
.course-review-form .form-row .label {
    font-family: "futura-pt", system-ui, sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3125rem;
    color: #17181b;
}
.course-review-form .stars {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.11px;
}

.course-review-form .stars .star {
    width: 30.37px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px #17181b;
    transition: transform 0.12s ease, color 0.12s ease,
        -webkit-text-stroke 0.12s ease;
}

.course-review-form .stars .star:hover,
.course-review-form .stars .star.is-active,
.course-review-form .stars .star:has(~ .star:hover) {
    color: #ffd700;
    -webkit-text-stroke: 0;
}

.course-review-form .stars .star:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
    border-radius: 4px;
}