/* Share Experience CF7 Form - Testimonial Archive */

body {
    overflow-x:hidden ;
}

.botshield-captcha-question {
    direction:ltr;
}
.share-experience-section {
    padding: 2rem 0 3rem;
}

.share-experience-form {
    color: #F4FAFF;
}

.share-experience-form .wpcf7-form {
    direction: rtl;
    text-align: right;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.share-experience-form .wpcf7-form > label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    color: #525252;
    line-height: 1.5;
}

.share-experience-form .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.share-experience-form .wpcf7-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: calc(var(--border-radius, 16px) / 2);
    background-color: #fff;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-body, #161616);
    direction: rtl;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.share-experience-form .wpcf7-form-control:focus {
    outline: none;
    border-color: var(--primary-color, #223C78);
    box-shadow: 0 0 0 2px rgba(34, 60, 120, 0.12);
}

.share-experience-form textarea.wpcf7-form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.8;
}

.share-experience-form .wpcf7-submit {
    width: 100%;
    padding: 12px 24px;
    margin: 0;
    background-color: var(--primary-color, #223C78);
    color: #fff;
    border: none;
    border-radius: calc(var(--border-radius, 16px) / 2);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.share-experience-form .wpcf7-submit:hover:not(:disabled) {
    background-color: #0d2c6d;
}

.share-experience-form .wpcf7-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.share-experience-form .wpcf7-spinner {
    margin: 0;
    justify-self: start;
}

.share-experience-form .wpcf7-not-valid-tip {
    font-size: 12px;
    color: var(--danger-color, #dc2626);
    margin-top: 6px;
}

.share-experience-form .wpcf7-response-output {
    margin: 0;
    padding: 12px 16px;
    border-radius: calc(var(--border-radius, 16px) / 2);
    font-size: 14px;
    text-align: center;
    border: none;
    grid-column: 1 / -1;
}

.share-experience-form .wpcf7 form.invalid .wpcf7-response-output,
.share-experience-form .wpcf7 form.unaccepted .wpcf7-response-output,
.share-experience-form .wpcf7 form.payment-required .wpcf7-response-output {
    background-color: #fef2f2;
    color: var(--danger-color, #dc2626);
}

.share-experience-form .wpcf7 form.sent .wpcf7-response-output {
    background-color: #ecfdf5;
    color: #059669;
}

.share-experience-form .wpcf7 form .wpcf7-form-control.wpcf7-not-valid {
    border-color: var(--danger-color, #dc2626);
}

/* Desktop: row 1 = 3 fields + submit, row 2 = message */
@media (min-width: 992px) {
    .share-experience-section {
        padding: 2.5rem 0 3.5rem;
    }

    .share-experience-form .wpcf7-form {
        grid-template-columns: repeat(3, 1fr);
        align-items: end;
        gap: 12px 16px;
    }

    .share-experience-form .wpcf7-form > label:nth-of-type(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .share-experience-form .wpcf7-form > label:nth-of-type(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .share-experience-form .wpcf7-form > label:nth-of-type(3) {
        grid-column: 3;
        grid-row: 1;
    }

    .share-experience-form .wpcf7-form > label:nth-of-type(4) {
        grid-column: 1/-1;
        grid-row: 2;
    }
       .share-experience-form .wpcf7-form > label:nth-of-type(5) {
        grid-column: 1/-1;
        grid-row:3;
    }
           .share-experience-form .wpcf7-form > label:nth-of-type(6) {
        grid-column: 1/-1;
        grid-row:4;
    }


    .share-experience-form .wpcf7-form > .wpcf7-submit {
        grid-column: 1/-1;
        grid-row: 5;
        align-self: end;
    }

    .share-experience-form .wpcf7-form > .wpcf7-spinner {
        grid-column: 4;
        grid-row: 1;
        align-self: center;
        justify-self: end;
        margin-inline-end: 8px;
    }

    .share-experience-form textarea.wpcf7-form-control {
        min-height: 100px;
    }
}
