/* Center the Webform */
#webform-submission-feedback-add-form {
    width: 100%;
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    box-sizing: border-box;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Form fields */
#webform-submission-feedback-add-form .form-item {
    margin-bottom: 20px;
}

/* Labels */
#webform-submission-feedback-add-form label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

/* Text fields */
#webform-submission-feedback-add-form input[type="text"],
#webform-submission-feedback-add-form input[type="email"],
#webform-submission-feedback-add-form input[type="tel"],
#webform-submission-feedback-add-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* Textarea */
#webform-submission-feedback-add-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* CAPTCHA */
#webform-submission-feedback-add-form .captcha {
    margin: 20px 0;
    padding: 15px;
}

/* Submit button */
#webform-submission-feedback-add-form .form-actions {
    text-align: center;
}

#webform-submission-feedback-add-form .webform-button--submit {
    padding: 10px 30px;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

/* For required field  */
#webform-submission-feedback-add-form label.form-required::after {
    content: " *";
    color: #d00;
    font-weight: bold;
}
/* two column field  */
#edit-file-and-captcha {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* File upload column */
#edit-file-and-captcha > #ajax-wrapper {
    min-width: 0;
}

/* CAPTCHA column */
#edit-file-and-captcha > .captcha {
    min-width: 0;
    margin: 0;
}

/* Keep CAPTCHA content inside its column */
#edit-file-and-captcha .captcha__element {
    width: 100%;
}
#edit-file-and-captcha .captcha__title {
    display: none;
}
#edit-file-and-captcha .captcha__image-wrapper {
    display: flex;
    align-items: center;
}

#edit-file-and-captcha .captcha__image-wrapper .reload-captcha-wrapper {
    margin-left: 20px
}


/* To remove the no file chosen*/
#edit-upload-file-upload {
    font-size: 0;
}

#edit-upload-file-upload::file-selector-button {
    font-size: 16px;
    padding: 8px 16px;
    margin-right: 10px;
    cursor: pointer;
}


/* Mobile */
@media (max-width: 767px) {
    #edit-file-and-captcha {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}



/* For mobile version */
@media (max-width: 767px) {
    #webform-submission-feedback-add-form {
        width: calc(100% - 30px);
        margin: 20px auto;
        padding: 20px;
    }
}

@media (max-width: 767px) {
    #webform-submission-feedback-add-form #edit-file-and-captcha {
        grid-template-columns: 1fr !important;
    }
}
