/* FQS Contact Form - Front-end Styles */

.fqs-contact-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.fqs-contact-form {
    width: 100%;
}

.fqs-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

.fqs-form-col-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fqs-form-col-right {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fqs-form-field {
    margin-bottom: 16px;
}

.fqs-form-field input {
    height: 64px;
}

.fqs-form-field input,
.fqs-form-field textarea {
    width: 100%;
    padding: 16px 18px;
    font-size: 15px;
    font-family: inherit;
    color: #000000;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid #BABABA;
    border-radius: 0px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.fqs-form-field input::placeholder,
.fqs-form-field textarea::placeholder {
    color: #888;
    font-weight: 400;
}

.fqs-form-field input:focus,
.fqs-form-field textarea:focus {
    border-color: #6b7f2a;
    box-shadow: 0 0 0 2px rgba(107, 127, 42, 0.15);
}

.fqs-form-field input.fqs-error,
.fqs-form-field textarea.fqs-error {
    border-color: #c0392b;
    box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.12);
}

.fqs-field-message textarea {
    min-height: 140px;
    resize: vertical;
}

/* Make left column message area stretch to fill remaining space */
.fqs-form-col-left .fqs-field-message {
    flex: 1;
    margin-bottom: 0;
}

.fqs-form-col-left .fqs-field-message textarea {
    height: 100%;
    min-height: 143px;
    height: 143px;
}

.fqs-form-field.fqs-field-submit {
    margin-bottom: 0;
}

/* Submit button */
.fqs-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 500;
    font-family: "Kumbh Sans";
    color: #fff;
    background: linear-gradient(90deg, #456C26 0%, #5AA022 100%);
    border: none;
    border-radius: 0px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    height: 64px;
    transition: .2s;
}

.fqs-submit-btn:hover {
    background: linear-gradient(90deg, #9F5D4C 0%, #6D3425 100%);
}

.fqs-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.fqs-btn-loader svg {
    display: block;
}

/* Success / Error message */
.fqs-form-message {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.fqs-form-message.fqs-msg-success {
    background: #edf7ed;
    color: #2e6b2e;
    border: 1px solid #c3e6c3;
}

.fqs-form-message.fqs-msg-error {
    background: #fdecea;
    color: #8b1a1a;
    border: 1px solid #f5c6cb;
}

/* Captcha */
.fqs-captcha-field {
    display: flex;
    justify-content: flex-start;
}

/* Responsive */
@media (max-width: 768px) {
    .fqs-form-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* Aplatir les colonnes pour que order fonctionne sur les champs */
    .fqs-form-col-left,
    .fqs-form-col-right {
        display: contents;
    }

    /* Tous les champs en ordre normal */
    .fqs-form-field {
        order: 1;
    }

    /* Message en avant-dernier */
    .fqs-field-message {
        order: 2;
    }

    /* Captcha et submit en dernier */
    .fqs-captcha-field {
        order: 3;
    }

    .fqs-field-submit {
        order: 4;
    }

    .fqs-form-col-left .fqs-field-message {
        margin-bottom: 10px;
    }

    .fqs-field-message textarea {
        height: auto;
        min-height: 120px;
    }
}
