/* =========================================================
   TESTIMONIAL PUBLIC PAGE
========================================================= */

.testimonial-page {
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f7fbf8 100%
        );
}

.testimonial-form-section {
    min-height: 100vh;

    padding: 90px 0 110px;
}


/* =========================================================
   LAYOUT
========================================================= */

.testimonial-form-layout {
    display: grid;

    grid-template-columns:
        minmax(0, .85fr)
        minmax(500px, 1.15fr);

    align-items: start;

    gap: 80px;
}


/* =========================================================
   INTRO
========================================================= */

.testimonial-form-intro {
    position: sticky;

    top: 130px;

    padding-top: 40px;
}

.testimonial-page-eyebrow {
    display: block;

    margin-bottom: 20px;

    color: var(--primary);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 4px;
}

.testimonial-form-intro h1 {
    margin: 0;

    color: var(--navy);

    font-size: clamp(42px, 5vw, 65px);
    line-height: 1.08;

    letter-spacing: -3px;
}

.testimonial-form-intro h1 span {
    display: block;

    color: var(--primary);
}

.testimonial-page-description {
    max-width: 520px;

    margin: 25px 0 0;

    color: var(--text-muted);

    font-size: 14px;
    line-height: 1.85;
}


/* =========================================================
   INFORMATION
========================================================= */

.testimonial-info-card {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    margin-top: 34px;

    padding: 19px;

    border: 1px solid #dfeae3;
    border-radius: 16px;

    background: #ffffff;
}

.testimonial-info-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--primary);

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
}

.testimonial-info-card strong {
    display: block;

    margin-bottom: 5px;

    color: var(--navy);

    font-size: 12px;
}

.testimonial-info-card p {
    margin: 0;

    color: #74868f;

    font-size: 10px;
    line-height: 1.7;
}

.testimonial-privacy-note {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-top: 18px;

    padding: 0 5px;

    color: #82918a;
}

.testimonial-privacy-note span {
    color: var(--primary);

    font-size: 17px;
}

.testimonial-privacy-note p {
    margin: 0;

    font-size: 10px;
    line-height: 1.7;
}


/* =========================================================
   FORM CARD
========================================================= */

.testimonial-public-form-card {
    overflow: hidden;

    border: 1px solid #deebe3;
    border-radius: 26px;

    background: #ffffff;

    box-shadow:
        0 22px 65px
        rgba(17, 74, 45, .08);
}

.testimonial-public-form-header {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    padding: 30px 34px;

    border-bottom: 1px solid #e9f0ec;
}

.testimonial-form-number {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #eaf8ef;

    color: var(--primary);

    font-size: 9px;
    font-weight: 700;
}

.testimonial-public-form-header h2 {
    margin: 0 0 5px;

    color: var(--navy);

    font-size: 17px;
}

.testimonial-public-form-header p {
    margin: 0;

    color: #7e8e86;

    font-size: 10px;
}


/* =========================================================
   FORM
========================================================= */

#testimonialForm {
    padding: 32px 34px 36px;
}

.testimonial-field {
    margin-bottom: 22px;
}

.testimonial-field-row {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.testimonial-field label {
    display: block;

    margin-bottom: 8px;

    color: var(--navy);

    font-size: 10px;
    font-weight: 600;
}

.testimonial-field label span {
    color: #e74a4a;
}

.testimonial-field input[type="text"],
.testimonial-field select,
.testimonial-field textarea {
    width: 100%;

    box-sizing: border-box;

    border: 1px solid #dce7e0;
    border-radius: 12px;

    outline: none;

    background: #ffffff;

    color: var(--text);

    font-family: inherit;
    font-size: 11px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.testimonial-field input[type="text"],
.testimonial-field select {
    height: 49px;

    padding: 0 14px;
}

.testimonial-field textarea {
    min-height: 150px;

    padding: 14px;

    resize: vertical;

    line-height: 1.7;
}

.testimonial-field input:focus,
.testimonial-field select:focus,
.testimonial-field textarea:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px
        rgba(17, 148, 71, .07);
}

.testimonial-field > small {
    display: block;

    margin-top: 6px;

    color: #99a49f;

    font-size: 9px;
}


/* =========================================================
   RATING
========================================================= */

.testimonial-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;

    width: fit-content;

    gap: 5px;
}

.testimonial-rating-input input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.testimonial-rating-input label {
    margin: 0;

    color: #dfe4e1;

    font-size: 34px;
    line-height: 1;

    cursor: pointer;

    transition:
        color .15s ease,
        transform .15s ease;
}

.testimonial-rating-input label:hover,
.testimonial-rating-input label:hover ~ label,
.testimonial-rating-input input:checked ~ label {
    color: #f1ad32;
}

.testimonial-rating-input label:hover {
    transform: translateY(-2px);
}

.rating-helper {
    margin-top: 8px !important;
}


/* =========================================================
   CHARACTER
========================================================= */

.testimonial-character-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: 7px;
}

.testimonial-character-row small {
    color: #98a49e;

    font-size: 8px;
}


/* =========================================================
   PHOTO
========================================================= */

.testimonial-photo-input {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    opacity: 0;

    pointer-events: none;
}

.testimonial-photo-upload {
    display: block !important;

    margin: 0 !important;

    cursor: pointer;
}

.testimonial-photo-content {
    min-height: 115px;

    position: relative;

    overflow: hidden;

    display: flex;
    align-items: center;

    gap: 14px;

    box-sizing: border-box;

    padding: 20px;

    border: 1.5px dashed #cadbd0;
    border-radius: 14px;

    background: #fbfdfc;

    transition:
        border-color .2s ease,
        background .2s ease;
}

.testimonial-photo-upload:hover
.testimonial-photo-content {
    border-color: var(--primary);

    background: #f7fcf9;
}

.testimonial-photo-icon {
    width: 43px;
    height: 43px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #eaf8ef;

    color: var(--primary);

    font-size: 18px;
    font-weight: 700;
}

.testimonial-photo-content strong {
    display: block;

    margin-bottom: 4px;

    color: var(--navy);

    font-size: 10px;
}

.testimonial-photo-content span {
    display: block;

    color: #87958e;

    font-size: 9px;
}

.testimonial-photo-preview-image {
    width: 78px;
    height: 78px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 12px;
}

.testimonial-photo-preview-info strong {
    display: block;

    margin-bottom: 4px;

    color: var(--navy);

    font-size: 10px;
}

.testimonial-photo-preview-info span {
    color: #87958e;

    font-size: 9px;
}


/* =========================================================
   AGREEMENT
========================================================= */

.testimonial-agreement {
    display: flex;
    align-items: flex-start;

    gap: 11px;

    margin: 8px 0 24px;

    padding: 15px;

    border-radius: 12px;

    background: #f7fbf8;

    cursor: pointer;
}

.testimonial-agreement input {
    width: 16px;
    height: 16px;

    flex-shrink: 0;

    margin-top: 2px;

    accent-color: var(--primary);
}

.testimonial-agreement span {
    color: #657970;

    font-size: 9px;
    line-height: 1.7;
}


/* =========================================================
   SUBMIT
========================================================= */

.testimonial-submit-button {
    width: 100%;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box;

    padding: 0 19px;

    border: 0;
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: #ffffff;

    font-family: inherit;
    font-size: 11px;
    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 13px 30px
        rgba(17, 148, 71, .18);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.testimonial-submit-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 17px 35px
        rgba(17, 148, 71, .24);
}

.testimonial-submit-arrow {
    font-size: 18px;
}

.testimonial-submit-note {
    margin: 12px 0 0;

    color: #98a49e;

    font-size: 8px;

    text-align: center;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .testimonial-form-layout {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .testimonial-form-intro {
        position: static;

        max-width: 700px;

        padding-top: 0;
    }

}


@media (max-width: 650px) {

    .testimonial-form-section {
        padding: 65px 0 80px;
    }

    .testimonial-form-intro h1 {
        font-size: 42px;

        letter-spacing: -2px;
    }

    .testimonial-field-row {
        grid-template-columns: 1fr;
    }

    .testimonial-public-form-header {
        padding: 25px 22px;
    }

    #testimonialForm {
        padding: 25px 22px 28px;
    }

}