/* Wrapper layout */
.form-contact-us form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Style input, select, textarea */
.form-contact-us input,
.form-contact-us select,
.form-contact-us textarea {
    background-color: #F5F5F5;
    padding: 9px 22px;
    color: #5E5E5E;
    border: none;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 300;
}
.form-contact-us input:focus,
.form-contact-us select:focus,
.form-contact-us textarea:focus,
.form-contact-us input:active,
.form-contact-us select:active,
.form-contact-us textarea:active{
    outline: 2px solid #59BF62 !important;

}
.form-contact-us select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px; /* Increased to accommodate arrow */
    background-image: url('data:image/svg+xml;utf8,<svg width="12" height="7" viewBox="0 0 12 7" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="%235E5E5E" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 7px;
    transition: background-position 0.3s ease;
}

.form-contact-us p {
    font-weight: 300;
}
/* Two-column layout for first 6 fields */


/* Submit button styling */
.form-contact-us input.wpcf7-submit {
    background-color: #59BF62;
    color: white;
    font-weight: 400;
    padding: 16px 24px;
    border: 1px solid white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.4s ease;
}

/* Button hover effect */
.form-contact-us input.wpcf7-submit:hover,
.form-contact-us input.wpcf7-submit:active {
    background-color: #4DAE56;
}

/* Remove spacing artifacts from CF7 inline elements */
.form-contact-us br,
.form-contact-us span.wpcf7-form-control-wrap {
    display: contents;
}

.form-contact-us .wpcf7-form > p,
.form-contact-us .wpcf7-form > span {
    flex: 1 1 100%;
}
.line-height-66,
.line-height-66 > *{
    line-height: 66px;
}
@media (min-width: 992px) {
    .form-contact-us .wpcf7-form > p:nth-child(-n+7),
    .form-contact-us .wpcf7-form > span:nth-child(-n+7) {
        flex: 1 1 calc(50% - 12px);
    }

    /* Ensure textarea and later selects take full width */
    .form-contact-us textarea,
    .form-contact-us .wpcf7-form > p:nth-child(n+8),
    .form-contact-us .wpcf7-form > span:nth-child(n+8) {
        flex: 1 1 100%;
    }

}
@media (max-width: 992px) {
    .form-contact-us input.wpcf7-submit {
        padding: 20px;
    }

    .form-contact-us p {
        font-size: 14px;
    }
    .line-height-66,
    .line-height-66 > *{
        line-height: 44px;
    }

    .form-contact-us input,
    .form-contact-us select,
    .form-contact-us textarea {
        padding: 14px 22px;
    }
}
