/*
|--------------------------------------------------------------------------
| RAHIB THE EXPLORE - PUBLIC TESTIMONIALS
|--------------------------------------------------------------------------
| Public Features:
| 1. Testimonials Hero
| 2. Search and Filter
| 3. Testimonial Cards
| 4. Featured and Verified Indicators
| 5. Guest Information
| 6. Empty State
| 7. Pagination
| 8. Submission CTA
| 9. Bottom CTA
|
| Submission Features:
| 10. Submission Hero
| 11. Personal Information
| 12. Profile Photo Upload
| 13. Star Rating
| 14. Testimonial Message
| 15. Consent and Privacy
| 16. Submission Review Notice
| 17. About Website Information
| 18. Responsive Design
|--------------------------------------------------------------------------
*/

.testimonials-page,
.testimonial-submit-page {
    --testimonial-green: #19382d;
    --testimonial-green-dark: #10291f;
    --testimonial-navy: #17252b;
    --testimonial-gold: #c8a76a;
    --testimonial-gold-dark: #a7864d;
    --testimonial-text: #26352e;
    --testimonial-muted: #78827b;
    --testimonial-border: #e5ebe6;
    --testimonial-light: #f7f9f7;
    --testimonial-white: #ffffff;

    width: 100%;
    min-width: 0;
    color: var(--testimonial-text);
    background: var(--testimonial-white);
}

.testimonials-page *,
.testimonials-page *::before,
.testimonials-page *::after,
.testimonial-submit-page *,
.testimonial-submit-page *::before,
.testimonial-submit-page *::after {
    box-sizing: border-box;
}

.testimonials-page img,
.testimonial-submit-page img {
    max-width: 100%;
}

/*
|--------------------------------------------------------------------------
| PUBLIC TESTIMONIALS HERO
|--------------------------------------------------------------------------
*/

.testimonial-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 390px;
    padding: 85px 20px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(200, 167, 106, .17),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            var(--testimonial-green-dark),
            var(--testimonial-green)
        );
    color: var(--testimonial-white);
    text-align: center;
}

.testimonial-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--testimonial-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.testimonial-title {
    margin: 0 0 20px;
    color: var(--testimonial-white);
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.2;
}

.testimonial-intro {
    max-width: 680px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    line-height: 1.9;
}

/*
|--------------------------------------------------------------------------
| HERO SUBMISSION BUTTON
|--------------------------------------------------------------------------
*/

.testimonial-hero-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.testimonial-hero .testimonial-submit-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border: 1px solid var(--testimonial-gold);
    border-radius: 8px;
    background: transparent;
    color: var(--testimonial-white);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
}

.testimonial-hero .testimonial-submit-button:hover {
    transform: translateY(-2px);
    background: var(--testimonial-gold);
    color: var(--testimonial-green);
}

.testimonial-hero-note {
    margin: 15px 0 0;
    color: rgba(255, 255, 255, .8);
    font-size: 12px;
}

.testimonial-hero-note i {
    margin-right: 5px;
    color: var(--testimonial-gold);
}

/*
|--------------------------------------------------------------------------
| SEARCH FILTER
|--------------------------------------------------------------------------
*/

.testimonial-filter-section {
    position: relative;
    z-index: 2;
    padding: 30px 0;
    border-bottom: 1px solid #edf0ed;
    background: #f8faf8;
}

.testimonial-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-filter label {
    display: block;
    margin-bottom: 8px;
    color: var(--testimonial-green);
    font-size: 13px;
    font-weight: 600;
}

.testimonial-filter .form-control {
    min-height: 46px;
    border: 1px solid #dfe6df;
    border-radius: 7px;
    background: #ffffff;
    box-shadow: none;
    font-size: 14px;
}

.testimonial-filter .form-control:focus {
    border-color: var(--testimonial-gold);
    box-shadow: 0 0 0 3px rgba(200, 167, 106, .12);
}

.testimonial-filter .btn {
    min-height: 46px;
    padding: 10px 25px;
    border: 1px solid var(--testimonial-green);
    border-radius: 7px;
    background: var(--testimonial-green);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    transition: .2s ease;
}

.testimonial-filter .btn:hover {
    border-color: var(--testimonial-gold);
    background: var(--testimonial-gold);
    color: var(--testimonial-green);
}

.testimonial-search-field {
    flex: 1;
    min-width: 0;
}

.testimonial-search-input {
    position: relative;
}

.testimonial-search-input > i {
    position: absolute;
    top: 50%;
    left: 14px;
    color: var(--testimonial-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.testimonial-search-input input {
    padding-left: 42px;
}

.testimonial-search-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-clear-search {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 10px 13px;
    color: var(--testimonial-green);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.testimonial-clear-search:hover {
    color: var(--testimonial-gold-dark);
}

/*
|--------------------------------------------------------------------------
| RESULTS SECTION
|--------------------------------------------------------------------------
*/

.testimonial-results {
    padding: 80px 0 95px;
}

.testimonial-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 35px;
}

.testimonial-results-heading h2 {
    margin: 0;
    color: var(--testimonial-green);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 700;
}

.testimonial-results-heading > div p {
    margin: 8px 0 0;
    color: var(--testimonial-muted);
    font-size: 13px;
    line-height: 1.7;
}

.testimonial-section-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #b18c4d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.testimonial-count {
    color: #7a857d;
    font-size: 13px;
    font-weight: 500;
}

/*
|--------------------------------------------------------------------------
| TESTIMONIAL CARD
|--------------------------------------------------------------------------
*/

.testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    padding: 30px;
    border: 1px solid #e9eee9;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(25, 56, 45, .055);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(200, 167, 106, .55);
    box-shadow: 0 15px 35px rgba(25, 56, 45, .10);
}

.testimonial-featured {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 30px;
    background: #fbf5e9;
    color: #a7864d;
    font-size: 11px;
    font-weight: 700;
}

.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 20px;
    margin-bottom: 20px;
    color: var(--testimonial-gold);
    font-size: 14px;
}

.testimonial-no-rating {
    color: #929a94;
    font-size: 12px;
}

.testimonial-quote-icon {
    margin-bottom: 10px;
    color: rgba(200, 167, 106, .65);
    font-size: 28px;
}

.testimonial-message {
    flex: 1;
    margin: 0 0 28px;
    color: #58635c;
    font-size: 14px;
    line-height: 1.9;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/*
|--------------------------------------------------------------------------
| GUEST INFORMATION
|--------------------------------------------------------------------------
*/

.testimonial-guest {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-top: 20px;
    border-top: 1px solid #edf0ed;
}

.testimonial-avatar {
    display: flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border: 2px solid #f0e7d7;
    border-radius: 50%;
    background: var(--testimonial-green);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.testimonial-guest-info {
    flex: 1;
    min-width: 0;
}

.testimonial-guest-info h3 {
    margin: 0 0 5px;
    color: var(--testimonial-green);
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.testimonial-guest-info p {
    margin: 0;
    color: #78827b;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.testimonial-verified {
    flex: 0 0 auto;
    color: #39845c;
    font-size: 18px;
}

/*
|--------------------------------------------------------------------------
| EMPTY STATE
|--------------------------------------------------------------------------
*/

.testimonial-empty {
    max-width: 600px;
    margin: 0 auto;
    padding: 65px 25px;
    border: 1px dashed #dce5dd;
    border-radius: 14px;
    background: #fafcf9;
    text-align: center;
}

.testimonial-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #edf3ee;
    color: var(--testimonial-green);
    font-size: 30px;
}

.testimonial-empty h3 {
    margin-bottom: 10px;
    color: var(--testimonial-green);
    font-size: 22px;
    font-weight: 700;
}

.testimonial-empty p {
    margin: 0 0 20px;
    color: var(--testimonial-muted);
    font-size: 14px;
    line-height: 1.8;
}

.testimonial-empty-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.testimonial-empty-button {
    display: inline-flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 19px;
    border: 1px solid var(--testimonial-green);
    border-radius: 8px;
    background: var(--testimonial-green);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.testimonial-empty-button:hover {
    border-color: var(--testimonial-gold);
    background: var(--testimonial-gold);
    color: var(--testimonial-green);
}

.testimonial-empty-secondary {
    border-color: #dce4de;
    background: #ffffff;
    color: var(--testimonial-green);
}

.testimonial-empty-secondary:hover {
    border-color: var(--testimonial-green);
    background: #f2f6f3;
    color: var(--testimonial-green);
}

/*
|--------------------------------------------------------------------------
| PAGINATION
|--------------------------------------------------------------------------
*/

.testimonial-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.testimonial-pagination .pagination {
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
}

.testimonial-pagination .page-link {
    min-width: 38px;
    border: 1px solid #e5ebe6;
    border-radius: 7px !important;
    color: var(--testimonial-green);
    text-align: center;
}

.testimonial-pagination .page-item.active .page-link {
    border-color: var(--testimonial-green);
    background: var(--testimonial-green);
    color: #ffffff;
}

.testimonial-pagination .page-link:hover {
    border-color: var(--testimonial-gold);
    background: #fbf8f1;
    color: var(--testimonial-green);
}

/*
|--------------------------------------------------------------------------
| BOTTOM SUBMISSION CTA
|--------------------------------------------------------------------------
*/

.testimonial-bottom-cta {
    padding: 55px 0;
    background: var(--testimonial-green);
}

.testimonial-bottom-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.testimonial-bottom-cta .testimonial-section-eyebrow {
    color: var(--testimonial-gold);
}

.testimonial-bottom-cta h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
}

.testimonial-bottom-cta p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
    line-height: 1.8;
}

.testimonial-bottom-cta-button {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border: 1px solid var(--testimonial-gold);
    border-radius: 8px;
    background: var(--testimonial-gold);
    color: var(--testimonial-green);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s ease;
}

.testimonial-bottom-cta-button:hover {
    background: transparent;
    color: #ffffff;
}

/*
|--------------------------------------------------------------------------
| SUBMISSION PAGE
|--------------------------------------------------------------------------
*/

.testimonial-submit-page {
    background: #f3f5f7;
}

/*
|--------------------------------------------------------------------------
| SUBMISSION HERO
|--------------------------------------------------------------------------
*/

.testimonial-submit-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    padding: 70px 20px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(217, 173, 112, .17),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #17252b,
            #19382d
        );
    color: #ffffff;
    text-align: center;
}

.testimonial-submit-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding-right: 24px;
    padding-left: 24px;
}

.testimonial-submit-hero .testimonial-submit-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.testimonial-submit-eyebrow {
    display: inline-block;
    margin: 0 auto 16px;
    color: #d9ad70;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.testimonial-submit-hero h1 {
    width: 100%;
    margin: 0 0 15px;
    color: #ffffff;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.2;
}

.testimonial-submit-hero p {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .80);
    font-size: 15px;
    line-height: 1.9;
}

.testimonial-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 25px auto 0;
    color: #d9ad70;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.testimonial-back-link:hover {
    color: #ffffff;
}

/*
|--------------------------------------------------------------------------
| SUBMISSION FORM SECTION
|--------------------------------------------------------------------------
*/

.testimonial-submit-section {
    padding: 65px 0 85px;
}

.testimonial-submit-card {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(22px, 5vw, 48px);
    overflow: hidden;
    border: 1px solid #e5e9eb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 45px rgba(23, 37, 43, .07);
}

/*
|--------------------------------------------------------------------------
| FORM HEADING
|--------------------------------------------------------------------------
*/

.testimonial-form-heading {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--testimonial-border);
}

.testimonial-form-icon {
    display: grid;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 13px;
    background: rgba(217, 173, 112, .16);
    color: #b17b3e;
    font-size: 24px;
}

.testimonial-form-heading h2 {
    margin: 0 0 7px;
    color: var(--testimonial-navy);
    font-size: 23px;
    font-weight: 700;
}

.testimonial-form-heading p {
    margin: 0;
    color: var(--testimonial-muted);
    font-size: 13px;
    line-height: 1.7;
}

/*
|--------------------------------------------------------------------------
| FORM SECTIONS
|--------------------------------------------------------------------------
*/

.testimonial-form-section {
    margin-bottom: 34px;
}

.testimonial-form-section h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
    color: var(--testimonial-navy);
    font-size: 16px;
    font-weight: 700;
}

.testimonial-form-section h3 > i {
    color: #b17b3e;
    font-size: 18px;
}

.testimonial-optional-label {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 20px;
    background: #f3f5f4;
    color: #7d8981;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.testimonial-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.testimonial-form-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 8px;
}

.testimonial-form-group label,
.testimonial-photo-content label {
    color: var(--testimonial-text);
    font-size: 13px;
    font-weight: 600;
}

.testimonial-form-group label span,
.testimonial-consent strong {
    color: #c0392b;
}

.testimonial-form-group input,
.testimonial-form-group textarea {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid #dce4de;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: var(--testimonial-text);
    font-family: inherit;
    font-size: 14px;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.testimonial-form-group input {
    min-height: 48px;
}

.testimonial-form-group textarea {
    min-height: 170px;
    resize: vertical;
    line-height: 1.8;
}

.testimonial-form-group input:focus,
.testimonial-form-group textarea:focus {
    border-color: #b18c4d;
    box-shadow: 0 0 0 3px rgba(217, 173, 112, .14);
}

.testimonial-form-group input::placeholder,
.testimonial-form-group textarea::placeholder {
    color: #a1aaa4;
}

.testimonial-form-group small,
.testimonial-photo-content small {
    color: var(--testimonial-muted);
    font-size: 12px;
    line-height: 1.6;
}

/*
|--------------------------------------------------------------------------
| PHOTO UPLOAD
|--------------------------------------------------------------------------
*/

.testimonial-photo-upload {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px;
    border: 1px dashed #cbd7ce;
    border-radius: 11px;
    background: #fafcfb;
}

.testimonial-photo-preview {
    display: grid;
    flex: 0 0 90px;
    width: 90px;
    height: 90px;
    overflow: hidden;
    place-items: center;
    border: 3px solid #f0e7d7;
    border-radius: 50%;
    background: #edf2ee;
    color: #9ba99f;
    font-size: 45px;
}

.testimonial-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-photo-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    gap: 9px;
}

.testimonial-photo-content input {
    max-width: 100%;
    color: var(--testimonial-text);
    font-family: inherit;
    font-size: 13px;
}

.testimonial-photo-content input::file-selector-button {
    margin-right: 10px;
    padding: 8px 12px;
    border: 1px solid #dce4de;
    border-radius: 6px;
    background: #ffffff;
    color: var(--testimonial-green);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.testimonial-photo-content input::file-selector-button:hover {
    border-color: var(--testimonial-gold);
    background: #fbf8f1;
}

.testimonial-remove-photo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #b44343;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.testimonial-remove-photo:hover {
    color: #8d2525;
    text-decoration: underline;
}

/*
|--------------------------------------------------------------------------
| STAR RATING
|--------------------------------------------------------------------------
*/

.testimonial-rating-description {
    margin: -8px 0 14px;
    color: var(--testimonial-muted);
    font-size: 13px;
    line-height: 1.7;
}

.testimonial-rating-input {
    display: flex;
    align-items: center;
    gap: 7px;
}

.testimonial-star-button {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: #cbd2cc;
    font-size: 27px;
    cursor: pointer;
    transition:
        color .15s ease,
        transform .15s ease;
}

.testimonial-star-button:hover {
    transform: scale(1.12);
    color: var(--testimonial-gold);
}

.testimonial-star-button.active {
    color: var(--testimonial-gold);
}

.testimonial-star-button:focus-visible {
    outline: 2px solid var(--testimonial-green);
    outline-offset: 3px;
    border-radius: 5px;
}

.testimonial-rating-hint {
    display: block;
    margin-top: 8px;
    color: var(--testimonial-muted);
    font-size: 12px;
}

/*
|--------------------------------------------------------------------------
| MESSAGE CHARACTER COUNTER
|--------------------------------------------------------------------------
*/

.testimonial-message-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.testimonial-message-footer small {
    color: var(--testimonial-muted);
    font-size: 12px;
}

/*
|--------------------------------------------------------------------------
| CONSENT AND PRIVACY
|--------------------------------------------------------------------------
*/

.testimonial-consent {
    margin-top: 10px;
    padding: 19px;
    border: 1px solid #e6e9e8;
    border-radius: 10px;
    background: #f7f8f8;
}

.testimonial-consent label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    cursor: pointer;
}

.testimonial-consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--testimonial-green);
    cursor: pointer;
}

.testimonial-consent span {
    color: #59686e;
    font-size: 13px;
    line-height: 1.8;
}

/*
|--------------------------------------------------------------------------
| REVIEW NOTICE
|--------------------------------------------------------------------------
*/

.testimonial-review-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin: 18px 0 0;
    padding: 17px 19px;
    border: 1px solid #dce9e0;
    border-radius: 9px;
    background: #f1f7f3;
    color: #53685b;
    font-size: 12px;
    line-height: 1.8;
}

.testimonial-review-note > i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #39845c;
    font-size: 20px;
}

.testimonial-review-note strong {
    color: var(--testimonial-green);
    font-size: 13px;
}

/*
|--------------------------------------------------------------------------
| FORM ACTIONS
|--------------------------------------------------------------------------
*/

.testimonial-submit-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.testimonial-cancel-button,
.testimonial-submit-page .testimonial-submit-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.testimonial-cancel-button {
    border: 1px solid #dce4de;
    background: #ffffff;
    color: var(--testimonial-green);
}

.testimonial-cancel-button:hover {
    border-color: var(--testimonial-green);
    background: #f2f6f3;
    color: var(--testimonial-green);
}

.testimonial-submit-page .testimonial-submit-button {
    border: 1px solid var(--testimonial-navy);
    background: var(--testimonial-navy);
    color: #ffffff;
    cursor: pointer;
}

.testimonial-submit-page .testimonial-submit-button:hover {
    transform: translateY(-1px);
    border-color: var(--testimonial-gold);
    background: var(--testimonial-gold);
    color: var(--testimonial-navy);
}

.testimonial-submit-page .testimonial-submit-button:focus-visible,
.testimonial-cancel-button:focus-visible,
.testimonial-back-link:focus-visible {
    outline: 3px solid rgba(200, 167, 106, .45);
    outline-offset: 3px;
}

.testimonial-submit-page .testimonial-submit-button:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

.testimonial-form-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 23px 0 0;
    color: #829096;
    font-size: 12px;
    text-align: center;
}

.testimonial-form-footer-note i {
    color: #b17b3e;
}

/*
|--------------------------------------------------------------------------
| ABOUT WEBSITE INFORMATION
|--------------------------------------------------------------------------
*/

.testimonial-about-note {
    max-width: 900px;
    margin: 25px auto 0;
    padding: 25px 28px;
    border: 1px solid #e4e9e7;
    border-radius: 11px;
    background: #ffffff;
}

.testimonial-about-note h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 13px;
    color: var(--testimonial-navy);
    font-size: 15px;
    font-weight: 700;
}

.testimonial-about-note h3 i {
    color: #b17b3e;
    font-size: 18px;
}

.testimonial-about-note p {
    margin: 0 0 12px;
    color: #647078;
    font-size: 13px;
    line-height: 1.9;
}

.testimonial-about-note p:last-child {
    margin-bottom: 0;
}

/*
|--------------------------------------------------------------------------
| ALERT MESSAGES
|--------------------------------------------------------------------------
*/

.testimonial-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    padding: 15px 17px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.7;
}

.testimonial-alert > i {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 18px;
}

.testimonial-alert-success {
    border-color: #cce8d3;
    background: #edf8f0;
    color: #23643b;
}

.testimonial-alert-error {
    border-color: #f0d0cc;
    background: #fff2f0;
    color: #923b35;
}

.testimonial-alert strong {
    font-weight: 700;
}

.testimonial-alert ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

/*
|--------------------------------------------------------------------------
| HONEYPOT
|--------------------------------------------------------------------------
*/

.testimonial-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/*
|--------------------------------------------------------------------------
| RESPONSIVE DESIGN - TABLET AND MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 767.98px) {

    .testimonial-hero {
        min-height: 320px;
        padding: 65px 18px;
    }

    .testimonial-intro {
        font-size: 14px;
    }

    .testimonial-hero .testimonial-submit-button {
        width: 100%;
        max-width: 320px;
    }

    .testimonial-filter {
        grid-template-columns: 1fr;
    }

    .testimonial-filter .btn {
        width: 100%;
    }

    .testimonial-search-actions {
        width: 100%;
    }

    .testimonial-search-actions .btn {
        flex: 1;
    }

    .testimonial-results {
        padding: 60px 0 70px;
    }

    .testimonial-results-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .testimonial-card {
        padding: 24px;
    }

    .testimonial-bottom-cta-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .testimonial-bottom-cta-button {
        width: 100%;
    }

    .testimonial-submit-hero {
        min-height: 300px;
        padding: 55px 0;
    }

    .testimonial-submit-container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .testimonial-submit-section {
        padding: 35px 0 55px;
    }

    .testimonial-form-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .testimonial-form-heading {
        gap: 12px;
    }

    .testimonial-form-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        font-size: 21px;
    }

    .testimonial-form-heading h2 {
        font-size: 19px;
    }

    .testimonial-photo-upload {
        align-items: flex-start;
        flex-direction: column;
    }

    .testimonial-submit-actions {
        flex-direction: column-reverse;
    }

    .testimonial-cancel-button,
    .testimonial-submit-page .testimonial-submit-button {
        width: 100%;
    }

    .testimonial-review-note {
        align-items: flex-start;
        text-align: left;
    }

    .testimonial-about-note {
        padding: 22px 20px;
    }
}

/*
|--------------------------------------------------------------------------
| SMALL MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 480px) {

    .testimonial-card {
        padding: 21px;
    }

    .testimonial-featured {
        top: 13px;
        right: 13px;
    }

    .testimonial-empty-actions {
        flex-direction: column;
    }

    .testimonial-empty-button {
        width: 100%;
    }

    .testimonial-rating-input {
        gap: 2px;
    }

    .testimonial-star-button {
        width: 37px;
        height: 40px;
        font-size: 25px;
    }

    .testimonial-submit-card {
        padding: 20px 15px;
        border-radius: 13px;
    }

    .testimonial-form-heading {
        align-items: center;
    }

    .testimonial-form-heading h2 {
        font-size: 18px;
    }

    .testimonial-photo-upload {
        padding: 17px;
    }

    .testimonial-message-footer {
        flex-wrap: wrap;
    }

    .testimonial-about-note {
        padding: 19px 16px;
    }

    .testimonial-submit-hero h1 {
        font-size: clamp(30px, 8vw, 38px);
    }
}

/*
|--------------------------------------------------------------------------
| REDUCED MOTION ACCESSIBILITY
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    .testimonials-page *,
    .testimonials-page *::before,
    .testimonials-page *::after,
    .testimonial-submit-page *,
    .testimonial-submit-page *::before,
    .testimonial-submit-page *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
