:root {
    --review-forest: #203d2d;
    --review-forest-light: #315d43;
    --review-sage: #769477;
    --review-gold: #d2a43b;
    --review-rust: #a84b2f;
    --review-cream: #f8f3e9;
    --review-paper: #fffdf8;
    --review-ink: #24332b;
    --review-muted: #68736d;
    --review-line: #ded8ca;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.review-page {
    color: var(--review-ink);
    background: var(--review-cream);
}

.review-page .nav-link.active {
    color: #fff;
}

.review-page .nav-link.active::after {
    width: 100%;
}

.review-hero {
    position: relative;
    min-height: 680px;
    padding: 150px 0 86px;
    overflow: hidden;
    color: #f9f6ef;
    background:
        radial-gradient(circle at 83% 30%, rgba(211, 166, 61, 0.28), transparent 27%),
        linear-gradient(135deg, #172c21 0%, #244331 58%, #31583d 100%);
}

.review-hero::before,
.review-hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.review-hero::before {
    width: 540px;
    height: 540px;
    top: -190px;
    right: -170px;
}

.review-hero::after {
    width: 360px;
    height: 360px;
    bottom: -245px;
    left: -90px;
}

.review-hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
    background-image:
        radial-gradient(circle at 12% 30%, rgba(255, 255, 255, 0.12) 0 1px, transparent 2px),
        radial-gradient(circle at 68% 16%, rgba(255, 255, 255, 0.1) 0 1px, transparent 2px);
    background-size: 110px 110px, 155px 155px;
}

.review-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
    gap: 72px;
    align-items: center;
}

.review-eyebrow,
.review-kicker,
.review-step {
    margin: 0 0 16px;
    color: var(--review-gold);
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.review-eyebrow span {
    margin-right: 8px;
}

.review-hero h1 {
    max-width: 760px;
    margin-bottom: 26px;
    color: #fff;
    font-size: clamp(3rem, 5.3vw, 5.25rem);
    line-height: 1.03;
    letter-spacing: -0.035em;
}

.review-hero h1 em {
    color: #e9c96f;
    font-weight: inherit;
}

.review-hero-lead {
    max-width: 690px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1.18rem, 2vw, 1.46rem);
    line-height: 1.55;
}

.review-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 34px;
    color: rgba(255, 255, 255, 0.76);
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
}

.review-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.review-trust-row i {
    color: #e4bf5c;
}

.review-hero-art {
    position: relative;
    display: grid;
    justify-items: center;
    min-height: 465px;
}

.review-book-halo {
    position: absolute;
    width: 430px;
    height: 430px;
    top: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.04);
}

.review-hero-book {
    position: relative;
    z-index: 1;
    display: block;
    width: min(340px, 84%);
    height: auto;
    filter: drop-shadow(0 30px 28px rgba(5, 19, 11, 0.38));
    transform: rotate(2deg);
}

.review-series-dots {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 9px;
    margin-top: -22px;
}

.review-series-dots span {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.68);
    background: rgba(24, 47, 34, 0.84);
    font-family: Arial, sans-serif;
    font-size: 0.7rem;
}

.review-series-dots .is-active {
    color: #213d2e;
    background: #e4bd55;
    border-color: #e4bd55;
    font-weight: 800;
}

.review-form-section {
    position: relative;
    padding: 100px 0 110px;
    background:
        linear-gradient(90deg, rgba(32, 61, 45, 0.025) 1px, transparent 1px),
        linear-gradient(rgba(32, 61, 45, 0.025) 1px, transparent 1px),
        var(--review-cream);
    background-size: 42px 42px;
}

.review-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: 72px;
    align-items: start;
}

.review-side-panel {
    position: sticky;
    top: 112px;
}

.review-side-panel h2 {
    margin-bottom: 22px;
    color: var(--review-forest);
    font-size: clamp(2.15rem, 3.2vw, 3.15rem);
    line-height: 1.08;
}

.review-side-panel > p:not(.review-kicker) {
    color: #59665f;
    font-size: 1.15rem;
    line-height: 1.65;
}

.review-side-quote {
    position: relative;
    margin: 34px 0;
    padding: 28px 28px 27px 36px;
    overflow: hidden;
    border-left: 4px solid var(--review-gold);
    border-radius: 0 16px 16px 0;
    background: rgba(255, 253, 248, 0.78);
    box-shadow: 0 14px 36px rgba(45, 65, 52, 0.07);
}

.review-side-quote p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--review-forest);
    font-size: 1.08rem;
    font-style: italic;
    line-height: 1.55;
}

.review-quote-mark {
    position: absolute;
    top: -23px;
    right: 13px;
    color: rgba(118, 148, 119, 0.16);
    font-family: Georgia, serif;
    font-size: 7.5rem;
    line-height: 1;
}

.review-book-list {
    display: grid;
    gap: 10px;
}

.review-book-list > div {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.review-book-list > div:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateX(3px);
}

.review-book-list img {
    display: block;
    width: 42px;
    height: 55px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 5px 12px rgba(34, 50, 41, 0.16);
}

.review-book-list span {
    min-width: 0;
    color: var(--review-muted);
    font-size: 0.95rem;
    line-height: 1.25;
}

.review-book-list strong {
    display: block;
    margin-bottom: 2px;
    color: var(--review-forest);
    font-family: Arial, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.review-form-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(57, 80, 64, 0.12);
    border-radius: 26px;
    background: var(--review-paper);
    box-shadow: 0 26px 70px rgba(40, 57, 46, 0.14);
}

.review-form-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--review-rust), var(--review-gold), var(--review-sage));
}

.review-form-heading {
    padding: 45px 50px 30px;
    border-bottom: 1px solid #ebe6dc;
}

.review-form-heading h2 {
    margin-bottom: 8px;
    color: var(--review-forest);
    font-size: clamp(2rem, 3vw, 2.7rem);
}

.review-form-heading > p:last-child {
    margin: 0;
    color: var(--review-muted);
}

.review-form-heading > p:last-child span,
.review-field > label > span,
.review-fieldset legend > span,
.review-check strong {
    color: var(--review-rust);
}

.review-form {
    display: grid;
    gap: 28px;
    padding: 38px 50px 50px;
}

.review-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.review-fieldset {
    min-width: 0;
    padding: 0;
    border: 0;
}

.review-fieldset legend,
.review-field > label,
.review-label-row label {
    display: block;
    margin-bottom: 9px;
    color: var(--review-forest);
    font-family: Arial, sans-serif;
    font-size: 0.88rem;
    font-weight: 800;
}

.review-choice-grid {
    display: grid;
    gap: 12px;
}

.review-choice-grid--three {
    grid-template-columns: repeat(3, 1fr);
}

.review-choice {
    cursor: pointer;
}

.review-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.review-choice > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 58px;
    padding: 10px 14px;
    border: 1px solid var(--review-line);
    border-radius: 12px;
    color: #536159;
    background: #fff;
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.review-choice i {
    color: #87948b;
}

.review-choice input:checked + span {
    color: var(--review-forest);
    border-color: var(--review-sage);
    background: #edf4ed;
    box-shadow: inset 0 0 0 1px var(--review-sage);
}

.review-choice input:checked + span i {
    color: var(--review-rust);
}

.review-choice input:focus-visible + span {
    outline: 3px solid rgba(168, 75, 47, 0.2);
    outline-offset: 2px;
}

.review-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.review-rating input {
    position: absolute;
    opacity: 0;
}

.review-rating label {
    cursor: pointer;
    color: #d7d3c9;
    font-size: 2.25rem;
    line-height: 1;
    transition: color 0.16s ease, transform 0.16s ease;
}

.review-rating label:hover,
.review-rating label:hover ~ label,
.review-rating input:checked ~ label {
    color: #d9a933;
}

.review-rating label:hover {
    transform: translateY(-2px);
}

.review-rating input:focus-visible + label {
    outline: 3px solid rgba(168, 75, 47, 0.2);
    outline-offset: 2px;
    border-radius: 4px;
}

.review-rating-copy {
    margin: 5px 0 0;
    color: var(--review-muted);
    font-size: 0.9rem;
}

.review-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.review-field {
    min-width: 0;
}

.review-field input,
.review-field textarea,
.review-field select {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    border: 1px solid var(--review-line);
    border-radius: 11px;
    outline: none;
    color: var(--review-ink);
    background: #fff;
    font: 1rem/1.35 Arial, sans-serif;
    box-shadow: 0 1px 0 rgba(26, 48, 34, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.review-field textarea {
    min-height: 168px;
    resize: vertical;
    font-family: 'Crimson Text', Georgia, serif;
    font-size: 1.08rem;
}

.review-field input::placeholder,
.review-field textarea::placeholder {
    color: #9ba39e;
}

.review-field input:focus,
.review-field textarea:focus,
.review-field select:focus {
    border-color: var(--review-sage);
    box-shadow: 0 0 0 4px rgba(118, 148, 119, 0.15);
}

.review-field [aria-invalid="true"] {
    border-color: #b13f32;
    background: #fffafa;
    box-shadow: 0 0 0 3px rgba(177, 63, 50, 0.1);
}

.review-select-wrap {
    position: relative;
}

.review-select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 17px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #66736b;
    border-bottom: 2px solid #66736b;
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.review-field select {
    padding-right: 42px;
    appearance: none;
}

.review-optional {
    color: var(--review-muted) !important;
    font-size: 0.78rem;
    font-weight: 400;
}

.review-field-hint,
.review-field-error {
    min-height: 0;
    margin: 6px 0 0;
    font-size: 0.82rem;
    line-height: 1.3;
}

.review-field-hint {
    color: var(--review-muted);
}

.review-field-error {
    color: #a63228;
    font-family: Arial, sans-serif;
    font-weight: 600;
}

.review-field-error:empty {
    display: none;
}

.review-label-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: baseline;
}

.review-label-row > span {
    flex-shrink: 0;
    color: var(--review-muted);
    font-family: Arial, sans-serif;
    font-size: 0.76rem;
}

.review-check {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    cursor: pointer;
    color: #59645e;
    font-family: Arial, sans-serif;
    font-size: 0.84rem;
    line-height: 1.48;
}

.review-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--review-forest-light);
}

.review-check strong {
    color: var(--review-forest);
}

.review-form-status {
    display: none;
    padding: 13px 16px;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}

.review-form-status.is-error {
    display: block;
    color: #812a23;
    border: 1px solid #efc7c2;
    background: #fff2f0;
}

.review-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 58px;
    padding: 15px 24px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #9a432d, #ba5938);
    box-shadow: 0 12px 26px rgba(154, 67, 45, 0.23);
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.review-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 32px rgba(154, 67, 45, 0.3);
}

.review-submit:focus-visible {
    outline: 3px solid rgba(168, 75, 47, 0.28);
    outline-offset: 3px;
}

.review-submit:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.review-submit.is-loading i {
    animation: review-arrow 0.8s ease-in-out infinite alternate;
}

@keyframes review-arrow {
    to { transform: translateX(5px); }
}

.review-submit-note {
    margin: -12px 0 0;
    text-align: center;
    color: #7b847f;
    font-family: Arial, sans-serif;
    font-size: 0.76rem;
}

.review-submit-note i {
    margin-right: 5px;
    color: var(--review-sage);
}

.review-success {
    min-height: 720px;
    padding: 100px 55px;
    text-align: center;
}

.review-success[hidden] {
    display: none;
}

.review-success-icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    margin: 0 auto 28px;
    border: 1px solid #b8cdb8;
    border-radius: 50%;
    color: #fff;
    background: var(--review-forest-light);
    box-shadow: 0 0 0 12px #edf4ed;
    font: 700 2rem/1 Arial, sans-serif;
}

.review-success h2 {
    max-width: 520px;
    margin: 0 auto 18px;
    color: var(--review-forest);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.review-success > p:not(.review-kicker) {
    max-width: 560px;
    margin: 0 auto;
    color: var(--review-muted);
    font-size: 1.12rem;
}

.review-success-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
}

.review-again {
    min-height: 48px;
    padding: 10px 18px;
    border: 1px solid var(--review-line);
    border-radius: 8px;
    cursor: pointer;
    color: var(--review-forest);
    background: transparent;
    font-family: Arial, sans-serif;
    font-weight: 700;
}

.review-closing {
    padding: 88px 0 92px;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(rgba(31, 60, 43, 0.94), rgba(31, 60, 43, 0.94)),
        url("/assets/images/author/mock-children-muddy-garden.webp") center 44% / cover;
}

.review-closing h2 {
    max-width: 700px;
    margin: 0 auto 22px;
    color: #fff;
    font-size: clamp(2.25rem, 4vw, 3.4rem);
}

.review-closing a {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    color: #e9c96f;
    font-family: Arial, sans-serif;
    font-weight: 800;
    text-decoration: none;
}

.review-closing a:hover span {
    transform: translateX(4px);
}

.review-closing a span {
    transition: transform 0.2s ease;
}

@media (max-width: 980px) {
    .review-hero {
        min-height: auto;
        padding-top: 132px;
    }

    .review-hero-grid {
        grid-template-columns: 1fr minmax(260px, 0.58fr);
        gap: 32px;
    }

    .review-hero-art {
        min-height: 380px;
    }

    .review-book-halo {
        width: 350px;
        height: 350px;
    }

    .review-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .review-side-panel {
        position: static;
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
        gap: 15px 42px;
        align-items: start;
    }

    .review-side-panel .review-kicker,
    .review-side-panel h2,
    .review-side-panel > p,
    .review-side-quote {
        grid-column: 1;
    }

    .review-book-list {
        grid-column: 2;
        grid-row: 1 / span 5;
    }
}

@media (max-width: 720px) {
    .review-hero {
        padding: 118px 0 65px;
    }

    .review-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .review-hero-copy {
        display: grid;
        justify-items: center;
    }

    .review-hero h1 {
        font-size: clamp(2.75rem, 12vw, 4.2rem);
    }

    .review-trust-row {
        justify-content: center;
    }

    .review-hero-art {
        min-height: 400px;
    }

    .review-hero-book {
        width: min(310px, 74vw);
    }

    .review-form-section {
        padding: 70px 0 78px;
    }

    .review-side-panel {
        display: block;
    }

    .review-book-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 26px;
    }

    .review-form-heading {
        padding: 36px 25px 26px;
    }

    .review-form {
        gap: 24px;
        padding: 30px 25px 38px;
    }

    .review-choice-grid--three,
    .review-fields-grid {
        grid-template-columns: 1fr;
    }

    .review-choice-grid--three {
        gap: 9px;
    }

    .review-choice > span {
        justify-content: flex-start;
        min-height: 52px;
        padding-left: 18px;
    }

    .review-form-card {
        border-radius: 20px;
    }
}

@media (max-width: 440px) {
    .review-hero {
        padding-top: 108px;
    }

    .review-trust-row {
        display: grid;
        justify-items: start;
    }

    .review-book-list {
        grid-template-columns: 1fr;
    }

    .review-form-heading {
        padding-inline: 20px;
    }

    .review-form {
        padding-inline: 20px;
    }

    .review-label-row {
        display: block;
    }

    .review-label-row > span {
        display: block;
        margin-top: -5px;
        margin-bottom: 7px;
    }

    .review-success {
        min-height: 600px;
        padding: 78px 25px;
    }

    .review-success-actions {
        display: grid;
    }
}

@media (prefers-reduced-motion: reduce) {
    .review-page *,
    .review-page *::before,
    .review-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Review incentive */
.review-reward {
    margin: 1.25rem 0 0;
    padding: 0.9rem 1.1rem;
    background: rgba(251, 246, 234, 0.94);
    border: 1px dashed rgba(139, 69, 19, 0.45);
    border-radius: 12px;
    color: #4a3a22;
    font-size: 0.95rem;
    line-height: 1.5;
}

.review-reward i {
    color: #d4af37;
    margin-right: 0.35rem;
}

.review-reward--success {
    text-align: left;
    margin: 1.25rem 0;
}

.review-reward--success p {
    margin: 0;
}

.review-reward--success p + p {
    margin-top: 0.35rem;
    font-size: 0.9rem;
}
