
/* My Account Reviews */
.ysf-pending-reviews-wrapper {
    position: relative;
    /* background-color: #fefdc8; */
    border-radius: 10px;
    padding: 2rem 2rem;
    margin: 0 2.5rem;
    max-width: 64.5rem;
    width: 100%;
    margin: 0rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;

    --pending-reviews-bg-color: #FFF2AD;
}
.ysf-pending-reviews-header {
    background-color: var(--pending-reviews-bg-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.ysf-pending-reviews-wrapper h3 {
    display: inline-block;
    margin: 0 0;
}
img.ysf-pending-reviews-image {
    margin-top: -42px;
    height: 96px;
    left: 24px;
}
svg.ysf-pending-reviews-chevron {
    transition: transform .1s ease;
    transform-origin: center;
}
.ysf-pending-reviews-header.active svg {
    transform: rotate(180deg);
}

.ysf-pending-reviews-content {
    padding: 3rem 2rem 2rem;
    border: 3px solid var(--pending-reviews-bg-color);
    margin-top: -1.5rem;
    border-radius: 8px;
    text-align: center;
    width: 100%;
}

.ysf-pending-reviews-intro {
    max-width: 480px;
    margin-bottom: 2rem;
}

.ysf-pending-reviews-wrapper .ysf-no-pending-reviews {
    margin-bottom: 0;
}

.ysf-pending-reviews-form {
    display: flex;
    align-content: stretch;
    flex-direction: row;
    gap: .5rem;
    justify-content: center;
}


/* POPUP */
.ysf-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.ysf-popup button.popup-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    color: #333;
    position: absolute;
    right: 0;
    top: 0.25rem;
    padding: 0.5rem 1.25rem;
    margin: 0 0;
    width: auto;
    color: #fff;
    position: absolute;
    z-index: 1;
}

.ysf-popup button.popup-close:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0.375rem;
    width: 2.5rem;
    height: 2.5rem;
    z-index: -1;
    background-color: #000;
    border-radius: 50%;
}

.popup-container {
    max-width: 95%;
    max-height: 95%;
    overflow-y: auto;
    background: #ffe3d0;
    padding: 2rem;
    border-radius: 0.75rem;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.popup-content .acf-innerblocks-container>p {
    padding: 0.5rem 0 !important;
    margin: 0 0;
}

.popup-content h2 {
    margin: 1rem auto 2rem auto;
    padding: 0;
    color: #000;
}

.popup-content h2 strong {
    font-size: 3rem;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.popup-header h2 {
    margin: 1rem auto 0 auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media screen and (max-width: 600px) {
    .ysf-pending-reviews-header {
        gap: 8px;
        width: auto;
    }
    img.ysf-pending-reviews-image {
        margin-top: -42px;
        height: 50px;
        left: -16px;
        position: absolute;
    }
    .ysf-pending-reviews-form {
        flex-direction: column;
    }
}

/* REVIEW */
#ysf-course-select {
    background-color: #fff;
    outline: none;
    border: 1px solid #000;
    border-radius: 4px;
    padding: 8px;
}

.ysf-review-extra-questions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}
.ysf-review-extra-questions .ysf-survey-question {
    padding: 1rem 1rem;
}

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

.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-fields .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-fields .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-fields .stars {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.11px;
}

.course-review-fields .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-fields .stars .star:hover,
.course-review-fields .stars .star.is-active,
.course-review-fields .stars .star:has(~ .star:hover) {
    color: #ffd700;
    -webkit-text-stroke: 0;
}

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

/* Accordion */
.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 {
    /* font-weight: 600; */
}

.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;
}