.testimonials-head-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.btn-tambah-review {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    background-color: #3F87B9;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    outline: none;
}

.btn-tambah-review:hover,
.btn-tambah-review:focus {
    background-color: #33729E;
    color: #FFFFFF;
    outline: none;
}

.btn-tambah-review:active {
    transform: scale(0.98);
}

/* Masonry Layout for Testimonials List */
.testimonials .content.testimonials-masonry {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 24px;
    padding: 60px 0 20px;
    width: 100%;
}

.testimonials-masonry-col {
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    min-width: 0;
    gap: 48px;
}

.testimonials .content.testimonials-masonry .testimonials-card-all {
    position: relative;
    width: 100%;
    margin: 0;
}

.testimonials .content.testimonials-masonry .testimonials-card-all .img {
    position: absolute;
    top: -42px;
    left: 16px;
    z-index: 10;
}

.testimonials .content.testimonials-masonry .testimonials-card-all .img img {
    width: 56px;
    height: 62px;
}

.testimonials .content.testimonials-masonry .testimonials-card-all .testimonials-card {
    width: 100%;
    min-height: 0;
    margin-bottom: 0;
    padding: 28px 20px 18px 20px;
    border-radius: 12px;
    border: 1px solid #ECF3F8;
    background: #ECF3F8;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
}

.testimonials .content.testimonials-masonry .testimonials-card-all .testimonials-card .info {
    margin-bottom: 0;
    width: 100%;
}

.testimonials .content.testimonials-masonry .testimonials-card-all .testimonials-card .info p {
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 0;
    word-break: break-word;
}

.testimonials .content.testimonials-masonry .testimonials-card-all .testimonials-card .footer-card {
    margin-top: 0;
    width: 100%;
}

@media (max-width: 991px) {
    .testimonials .content.testimonials-masonry {
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .testimonials .content.testimonials-masonry {
        flex-direction: column;
        gap: 44px;
    }

    .testimonials-masonry-col {
        width: 100%;
        flex: 1 1 auto;
        gap: 44px;
    }
}

@media (max-width: 576px) {
    .testimonials .content.testimonials-masonry {
        flex-direction: column;
        gap: 44px;
    }

    .testimonials-masonry-col {
        width: 100%;
        gap: 44px;
    }
}

.testimonials-load-more-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
    margin-bottom: 40px;
}

.btn-load-more-testi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    background-color: #F1F5F9;
    color: #0F172B;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    outline: none;
}

.btn-load-more-testi:hover,
.btn-load-more-testi:focus {
    background-color: #E2E8F0;
    color: #0F172B;
    outline: none;
}

.btn-load-more-testi:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.testi-comment-text {
    font-weight: 400;
}

/* Modal Overlay & Card (Figma Pixel-Perfect) */
.testi-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
}

.testi-modal-overlay.is-open {
    display: flex;
}

.testi-modal-card {
    background: #FFFFFF;
    border: 1px solid #E6E7EA;
    border-radius: 8px;
    width: 100%;
    max-width: 720px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    margin: auto;
    animation: testiModalIn 0.2s ease-out;
}

@keyframes testiModalIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }

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

.testi-modal-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.testi-modal-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.testi-modal-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    color: #020618;
    margin: 0;
}

.testi-modal-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #62748E;
    margin: 0;
}

.testi-modal-close-btn {
    background: transparent;
    border: none;
    padding: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    outline: none;
    transition: opacity 0.15s ease;
}

.testi-modal-close-btn:hover {
    opacity: 0.7;
}

.testi-modal-close-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.testi-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin: 0;
}

.testi-form-row {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
}

@media (max-width: 640px) {
    .testi-form-row {
        flex-direction: column;
    }
}

.testi-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.testi-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #020618;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.testi-required {
    color: #E7000B;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.testi-input {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #020618;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.testi-input::placeholder {
    color: #62748E;
    opacity: 1;
}

.testi-input:focus {
    border-color: #3F87B9;
    box-shadow: 0 0 0 2px rgba(63, 135, 185, 0.15);
}

/* Field Validation Error Styling (Seperti Halaman Daftar) */
.testi-input.error,
.testi-textarea.error {
    border-color: #E7000B !important;
}

.testi-input.error:focus,
.testi-textarea.error:focus {
    border-color: #E7000B !important;
    box-shadow: 0 0 0 2px rgba(231, 0, 11, 0.15) !important;
}

.testi-modal-form label.error {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #E7000B;
    margin: 2px 0 0 0;
    display: none;
}

.testi-rating-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.testi-stars-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 8px 16px;
}

@media (max-width: 480px) {
    .testi-stars-box {
        gap: 16px;
        padding: 8px 8px;
    }
}

.testi-star-item {
    background: transparent;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transition: transform 0.12s ease;
    font-size: 28px;
}

.testi-star-item:hover {
    transform: scale(1.12);
}

.testi-star-item .star-filled {
    display: none;
    color: #fdb900;
}

.testi-star-item .star-outline {
    display: block;
    color: #62748E;
}

.testi-star-item.is-active .star-filled {
    display: block;
}

.testi-star-item.is-active .star-outline {
    display: none;
}

.testi-textarea {
    width: 100%;
    height: 80px;
    min-height: 80px;
    padding: 8px 12px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #020618;
    box-sizing: border-box;
    resize: vertical;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.testi-textarea::placeholder {
    color: #62748E;
    opacity: 1;
}

.testi-textarea:focus {
    border-color: #3F87B9;
    box-shadow: 0 0 0 2px rgba(63, 135, 185, 0.15);
}

.testi-checkbox-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    padding-left: 4px;
    width: 100%;
}

.testi-checkbox-wrap {
    display: flex;
    align-items: center;
    height: 24px;
    flex-shrink: 0;
}

.testi-checkbox-input {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    background-color: #FFFFFF;
    cursor: pointer;
    position: relative;
    margin: 0;
    outline: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.testi-checkbox-input:checked {
    background-color: #3F87B9;
    border-color: #3F87B9;
}

.testi-checkbox-input:checked::after {
    content: '';
    position: absolute;
    left: 4.5px;
    top: 1.5px;
    width: 5px;
    height: 9px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.testi-checkbox-label {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #020618;
    cursor: pointer;
    margin: 2px 0 0 0;
    user-select: none;
    flex: 1;
}

.testi-modal-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.testi-btn-batal {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #020618;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.testi-btn-batal:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

.testi-btn-submit {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    background: #3F87B9;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.15s ease;
}

.testi-btn-submit:hover {
    background: #33729E;
}

.testi-btn-batal:disabled,
.testi-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}