.testimonial-page-hero {
    min-height: 440px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        url("image/about-one-img-1.webp")
        center / cover
        no-repeat;
}

.testimonial-page-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(13, 36, 81, 0.97) 0%,
            rgba(22, 51, 107, 0.88) 52%,
            rgba(22, 51, 107, 0.52) 100%
        );
}

.testimonial-page-hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 0 75px;
}

.testimonial-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.testimonial-breadcrumb a {
    color: rgba(255, 255, 255, 0.72);
}

.testimonial-breadcrumb a:hover {
    color: #ffffff;
}

.testimonial-breadcrumb i {
    font-size: 9px;
}

.testimonial-hero-label {
    color: #ffffff;
}

.testimonial-page-hero h1 {
    max-width: 760px;
    margin: 17px 0;
    color: #ffffff;
    font-family: "Manrope", sans-serif;
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.05;
}

.testimonial-page-hero p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
    line-height: 1.8;
}

.testimonial-summary-section {
    position: relative;
    z-index: 4;
    margin-top: -42px;
}

.testimonial-summary-grid {
    min-height: 115px;
    padding: 25px 40px;
    border: 1px solid #e1e6ef;
    border-radius: 18px;
    display: grid;
    grid-template-columns:
        1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 30px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(20, 39, 72, 0.12);
}

.testimonial-summary-item {
    text-align: center;
}

.testimonial-summary-item strong {
    display: block;
    margin-bottom: 5px;
    color: #16336b;
    font-family: "Manrope", sans-serif;
    font-size: 31px;
}

.testimonial-summary-item > span {
    color: #758094;
    font-size: 12px;
    font-weight: 600;
}

.testimonial-summary-divider {
    width: 1px;
    height: 50px;
    background: #e2e7ef;
}

.testimonial-summary-stars {
    margin-bottom: 7px;
    color: #f58220;
}

.testimonial-list-section {
    padding: 105px 0;
    background: #f6f8fb;
}

.testimonial-page-heading {
    margin-bottom: 42px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.testimonial-page-heading h2 {
    margin: 13px 0 0;
    color: #16336b;
    font-family: "Manrope", sans-serif;
    font-size: clamp(30px, 4vw, 45px);
}

.testimonial-page-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.testimonial-page-card {
    min-width: 0;
    padding: 30px;
    border: 1px solid #e0e6ee;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(24, 42, 72, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.testimonial-page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 46px rgba(24, 42, 72, 0.11);
}

.testimonial-page-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.testimonial-page-stars {
    color: #f58220;
    font-size: 13px;
}

.testimonial-page-quote {
    color: #dce4f2;
    font-size: 34px;
}

.testimonial-page-message {
    margin: 26px 0 30px;
    flex: 1;
    color: #49566a;
    font-size: 15px;
    line-height: 1.85;
}

.testimonial-page-customer {
    display: flex;
    align-items: center;
    gap: 13px;
}

.testimonial-page-avatar {
    width: 47px;
    height: 47px;
    flex: 0 0 47px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: #16336b;
    font-family: "Manrope", sans-serif;
    font-weight: 800;
}

.testimonial-page-customer strong,
.testimonial-page-customer span,
.testimonial-page-customer small {
    display: block;
}

.testimonial-page-customer strong {
    color: #19325f;
    font-size: 14px;
}

.testimonial-page-customer span {
    margin-top: 2px;
    color: #798497;
    font-size: 12px;
}

.testimonial-page-customer small {
    margin-top: 6px;
    color: #98a1b0;
    font-size: 10px;
}

.testimonial-page-customer small i {
    margin-right: 3px;
}

.testimonial-page-customer small span {
    display: inline;
    margin: 0 5px;
}

.testimonial-page-empty {
    max-width: 650px;
    margin: 0 auto;
    padding: 55px 30px;
    border: 1px dashed #ccd5e2;
    border-radius: 18px;
    text-align: center;
    background: #ffffff;
}

.testimonial-page-empty > i {
    margin-bottom: 18px;
    color: #f58220;
    font-size: 38px;
}

.testimonial-page-empty h3 {
    margin: 0 0 8px;
    color: #16336b;
}

.testimonial-page-empty p {
    margin: 0;
    color: #758094;
}

.testimonial-form-note {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #e2e7ef;
    border-radius: 13px;
    display: flex;
    gap: 14px;
    background: #f8fafc;
}

.testimonial-form-note > i {
    margin-top: 2px;
    color: #f58220;
    font-size: 19px;
}

.testimonial-form-note strong,
.testimonial-form-note span {
    display: block;
}

.testimonial-form-note strong {
    margin-bottom: 5px;
    color: #19325f;
    font-size: 13px;
}

.testimonial-form-note span {
    color: #798497;
    font-size: 12px;
    line-height: 1.6;
}

.testimonial-form-card {
    padding: 34px;
    border: 1px solid #e0e6ef;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(23, 42, 74, 0.1);
}

.testimonial-alert {
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 11px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.6;
}

.testimonial-alert.success {
    border: 1px solid #a9dfca;
    color: #116449;
    background: #edf9f4;
}

.testimonial-alert.error {
    border: 1px solid #f0bbbb;
    color: #9f2929;
    background: #fff1f1;
}

.testimonial-form-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 21px;
}

.testimonial-field-full {
    grid-column: 1 / -1;
}

.testimonial-field label {
    display: block;
    margin-bottom: 8px;
    color: #263b61;
    font-size: 12px;
    font-weight: 700;
}

.testimonial-field label span {
    color: #e15454;
}

.testimonial-field input,
.testimonial-field textarea {
    width: 100%;
    border: 1px solid #dce2eb;
    border-radius: 10px;
    color: #253653;
    background: #ffffff;
    font: inherit;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.testimonial-field input {
    min-height: 48px;
    padding: 0 14px;
}

.testimonial-field textarea {
    min-height: 165px;
    padding: 14px;
    resize: vertical;
    line-height: 1.7;
}

.testimonial-field input:focus,
.testimonial-field textarea:focus {
    border-color: #1f3c88;
    box-shadow: 0 0 0 3px rgba(31, 60, 136, 0.1);
}

.testimonial-character-row {
    margin-top: 7px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #919aaa;
}

.testimonial-character-row small {
    font-size: 10px;
}

.testimonial-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.testimonial-rating-input input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.testimonial-rating-input label {
    margin: 0;
    color: #d5dce6;
    cursor: pointer;
    font-size: 27px;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.testimonial-rating-input label:hover,
.testimonial-rating-input label:hover ~ label,
.testimonial-rating-input input:checked ~ label {
    color: #f58220;
}

.testimonial-rating-input label:hover {
    transform: scale(1.08);
}

.testimonial-submit-button {
    width: 100%;
    min-height: 52px;
    margin-top: 26px;
    padding: 12px 22px;
    border: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    background: #16336b;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.testimonial-submit-button:hover {
    background: #1f3c88;
    transform: translateY(-1px);
}

.testimonial-submit-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

@media (max-width: 1020px) {
    .testimonial-page-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .testimonial-form-layout {
        gap: 40px;
    }
}

@media (max-width: 820px) {
    .testimonial-summary-grid {
        padding: 24px;
        gap: 20px;
    }

    .testimonial-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .testimonial-page-hero {
        min-height: 390px;
    }

    .testimonial-page-hero-content {
        padding: 105px 0 65px;
    }

    .testimonial-summary-section {
        margin-top: -25px;
    }

    .testimonial-summary-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-summary-divider {
        width: 100%;
        height: 1px;
    }

    .testimonial-list-section {
        padding: 75px 0;
    }

    .testimonial-page-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-page-card {
        padding: 24px;
    }

    .testimonial-form-card {
        padding: 23px;
    }

    .testimonial-form-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-field-full {
        grid-column: auto;
    }
}

body.testimonial-modal-open {
    overflow: hidden;
}

.testimonial-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.testimonial-modal.show {
    display: flex;
}

.testimonial-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 16, 38, 0.82);
    backdrop-filter: blur(7px);
}

.testimonial-modal-dialog {
    width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow:
        0 28px 80px rgba(4, 16, 39, 0.28);
}

.testimonial-modal-header {
    padding: 26px 30px 23px;
    border-bottom: 1px solid #e4e9f0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
}

.testimonial-modal-header h2 {
    margin: 11px 0 6px;
    color: #16336b;
    font-family: "Manrope", sans-serif;
    font-size: 28px;
}

.testimonial-modal-header p {
    max-width: 580px;
    margin: 0;
    color: #748094;
    font-size: 13px;
    line-height: 1.65;
}

.testimonial-modal-close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 1px solid #dfe5ed;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #263b61;
    background: #ffffff;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.testimonial-modal-close:hover {
    border-color: #16336b;
    color: #ffffff;
    background: #16336b;
}

.testimonial-modal-body {
    max-height: calc(100vh - 190px);
    overflow-y: auto;
    padding: 28px 30px 32px;
}

.testimonial-modal-notes {
    margin-bottom: 24px;
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.testimonial-modal-notes
.testimonial-form-note {
    margin-top: 0;
}

.testimonial-modal
.testimonial-form-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.testimonial-page-grid {
    align-items: start;
}

.testimonial-page-card {
    height: 100%;
}

.testimonial-page-message {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
}

@media (max-width: 720px) {

    .testimonial-modal {
        padding: 12px;
    }

    .testimonial-modal-dialog {
        max-height: calc(100vh - 24px);
        border-radius: 16px;
    }

    .testimonial-modal-header {
        padding: 21px 20px 18px;
    }

    .testimonial-modal-header h2 {
        font-size: 23px;
    }

    .testimonial-modal-body {
        max-height: calc(100vh - 160px);
        padding: 22px 20px 25px;
    }

    .testimonial-modal-notes {
        grid-template-columns: 1fr;
    }

    .testimonial-modal-close {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

}

@media (max-width: 520px) {

    .testimonial-modal {
        padding: 0;
    }

    .testimonial-modal-dialog {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }

    .testimonial-modal-body {
        max-height:
            calc(100vh - 135px);
    }

    .testimonial-form-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-field-full {
        grid-column: auto;
    }

}