.testimonial-page {
    min-height: 100vh;
    background: #f5f7fb;
    color: #182235;
}

.testimonial-page .navbar {
    position: relative;
    height: auto;
    min-height: 72px;
}

.testimonial-page .nav-container {
    min-height: 72px;
}

.testimonial-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.testimonial-main {
    padding-top: 56px;
    padding-bottom: 80px;
}

.testimonial-intro {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.testimonial-eyebrow {
    margin-bottom: 10px;
    color: #1769d2;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.testimonial-intro h1,
.testimonial-thanks h1 {
    margin-bottom: 14px;
    color: #172033;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.15;
}

.testimonial-intro > p:last-child,
.testimonial-thanks > p:not(.testimonial-eyebrow) {
    color: #596579;
    font-size: 16px;
    line-height: 1.7;
}

.testimonial-form {
    display: grid;
    gap: 22px;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-section {
    min-width: 0;
    padding: 26px;
    border: 1px solid #e0e7f0;
    border-radius: 12px;
    background: #fff;
}

.testimonial-section legend {
    padding: 0 8px;
    color: #172033;
    font-size: 18px;
    font-weight: 800;
}

.testimonial-section legend > span {
    display: inline-grid;
    width: 28px;
    height: 28px;
    margin-right: 7px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #1769d2;
    font-size: 13px;
}

.testimonial-section legend small {
    color: #68758a;
    font-size: 12px;
    font-weight: 500;
}

.testimonial-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.testimonial-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    color: #263449;
    font-size: 14px;
    font-weight: 700;
}

.testimonial-field:last-child {
    margin-bottom: 0;
}

.testimonial-field > span small {
    color: #748095;
    font-size: 12px;
    font-weight: 500;
}

.testimonial-field input:not([type="file"]),
.testimonial-field select,
.testimonial-field textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    color: #263449;
    background: #fff;
    font: inherit;
    font-size: 14px;
}

.testimonial-field input[readonly] {
    background: #f1f4f8;
    color: #667085;
}

.testimonial-field textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.6;
}

.testimonial-field input:focus,
.testimonial-field select:focus,
.testimonial-field textarea:focus {
    outline: 3px solid rgba(23, 105, 210, .15);
    border-color: #1769d2;
}

.testimonial-field input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px dashed #b8c4d4;
    border-radius: 7px;
    background: #f8fafc;
    font-size: 13px;
}

.rating-field {
    max-width: 360px;
    margin-bottom: 20px;
}

.testimonial-field-wide {
    margin-top: 18px;
}

.testimonial-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 900px;
    padding: 18px;
    border: 1px solid #d7e4f4;
    border-radius: 9px;
    background: #edf5ff;
    color: #344258;
    font-size: 13px;
    line-height: 1.6;
}

.testimonial-consent input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #1769d2;
}

.testimonial-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    justify-self: start;
}

.testimonial-errors {
    max-width: 900px;
    margin: 0 auto 22px;
    padding: 17px 20px;
    border: 1px solid #fecaca;
    border-radius: 9px;
    color: #991b1b;
    background: #fef2f2;
}

.testimonial-errors ul {
    margin: 8px 0 0 20px;
}

.testimonial-empty,
.testimonial-thanks {
    max-width: 760px;
    margin: 0 auto;
    padding: 44px 28px;
    border: 1px solid #e0e7f0;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.testimonial-empty h2 {
    margin-bottom: 10px;
    color: #172033;
}

.testimonial-empty p {
    margin-bottom: 20px;
    color: #596579;
}

.testimonial-thanks-icon {
    display: inline-grid;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 50%;
    color: #087a54;
    background: #dcfce9;
    font-size: 25px;
}

.testimonial-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.testimonial-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
}

.testimonial-public-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.testimonial-public-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid #e0e7f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 35, 58, .045);
}

.testimonial-public-header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 15px;
}

.testimonial-avatar {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-avatar-fallback {
    display: grid;
    place-items: center;
    color: #1769d2;
    background: #e6f1ff;
    font-size: 19px;
}

.testimonial-person {
    min-width: 0;
    flex: 1;
}

.testimonial-person h2 {
    overflow-wrap: anywhere;
    color: #172033;
    font-size: 16px;
}

.testimonial-person p {
    margin-top: 3px;
    color: #69758a;
    font-size: 12px;
}

.testimonial-stars {
    display: flex;
    flex: 0 0 auto;
    gap: 2px;
    color: #d4dbe5;
    font-size: 12px;
}

.testimonial-stars .is-filled {
    color: #e0a326;
}

.testimonial-course {
    margin-bottom: 18px;
    padding: 9px 11px;
    border-radius: 6px;
    color: #185da9;
    background: #edf5ff;
    font-size: 12px;
    font-weight: 700;
}

.testimonial-answer {
    margin-top: 15px;
}

.testimonial-answer h3 {
    margin-bottom: 5px;
    color: #263449;
    font-size: 13px;
}

.testimonial-answer p,
.testimonial-quote {
    color: #596579;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.testimonial-quote {
    margin-top: 16px;
    padding-left: 14px;
    border-left: 3px solid #1769d2;
    font-style: italic;
}

.testimonial-video {
    display: block;
    width: 100%;
    max-height: 360px;
    margin-top: 18px;
    border-radius: 8px;
    background: #111827;
}

.testimonial-media-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #1769d2;
    font-size: 14px;
    font-weight: 700;
}

.testimonial-public-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 13px;
    border-top: 1px solid #e9edf3;
    color: #7a8597;
    font-size: 12px;
}

.testimonial-public-footer a {
    color: #1769d2;
}

.testimonial-page .about-footer {
    padding-top: 0;
}

.testimonial-page .about-footer .footer-bottom {
    text-align: center;
}

@media (max-width: 768px) {
    .testimonial-page .nav-container {
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .testimonial-page .nav-links {
        order: 3;
        display: flex;
        width: 100%;
        gap: 18px;
        overflow-x: auto;
    }

    .testimonial-page .nav-links a {
        flex: 0 0 auto;
        font-size: 13px;
    }

    .testimonial-nav-cta {
        margin-left: auto;
        padding: 10px 13px;
        font-size: 13px;
    }

    .testimonial-main {
        padding-top: 36px;
        padding-bottom: 54px;
    }

    .testimonial-section {
        padding: 20px 16px;
    }

    .testimonial-fields-grid,
    .testimonial-public-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .testimonial-actions a {
        justify-content: center;
        text-align: center;
    }

    .testimonial-public-card {
        padding: 19px;
    }
}
