/* Form field width fixes - prevents textarea/inputs from overflowing narrow columns */
.ginput_container input,
.ginput_container textarea,
.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
}

/* Submit button styling - targets the Web3Forms button outside .gform_wrapper */
.contact-form-wrapper .gform_footer input.button,
.contact-form-wrapper .gform_footer input[type="submit"],
#contact-form input[type="submit"] {
    background: #E93B37;
    border-color: #E93B37;
    border-radius: 0;
    color: #fff;
    cursor: pointer;
    padding: 10px 24px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

.contact-form-wrapper .gform_footer input.button:hover,
.contact-form-wrapper .gform_footer input[type="submit"]:hover,
#contact-form input[type="submit"]:hover {
    background: #af1511;
    border-color: #af1511;
}

/* Input and textarea base styling for Web3Forms replacement */
.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper textarea {
    border: 1px solid #c7c7c7;
    color: #333;
    padding: 8px 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    background: #fff;
}

/* Form field labels */
.contact-form-wrapper .gfield_label {
    font-family: 'Roboto', sans-serif;
    color: #fff;
    font-size: 13px;
    margin-bottom: 4px;
    display: block;
}

.contact-form-wrapper .gfield_required {
    color: #E93B37;
    margin-left: 2px;
}

/* Form list layout */
.contact-form-wrapper .gform_fields {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-form-wrapper .gfield {
    margin-bottom: 8px;
}
