/* Contact Form 7 Bootstrap Styling */
/* Remove p tag styling that CF7 adds by default */

/* Target Contact Form 7 anywhere in the contact section */
#contact .wpcf7-form,
.col-lg-6 .wpcf7-form,
.wow .wpcf7-form {
    margin: 0;
}

/* Row and column structure */
#contact .wpcf7-form .row,
.col-lg-6 .wpcf7-form .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: calc(var(--bs-gutter-x, 0.75rem) * -0.5);
    margin-left: calc(var(--bs-gutter-x, 0.75rem) * -0.5);
}

#contact .wpcf7-form .col-md-6,
#contact .wpcf7-form .col-12,
.col-lg-6 .wpcf7-form .col-md-6,
.col-lg-6 .wpcf7-form .col-12 {
    position: relative;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x, 0.75rem) * 0.5);
    padding-left: calc(var(--bs-gutter-x, 0.75rem) * 0.5);
    margin-bottom: 1rem;
}

#contact .wpcf7-form .col-md-6,
.col-lg-6 .wpcf7-form .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
}

@media (max-width: 767.98px) {
    #contact .wpcf7-form .col-md-6,
    .col-lg-6 .wpcf7-form .col-md-6 {
        width: 100%;
    }
}

/* Form floating container */
#contact .wpcf7-form .form-floating,
.col-lg-6 .wpcf7-form .form-floating {
    position: relative;
}

/* CF7 wraps inputs in span.wpcf7-form-control-wrap */
#contact .wpcf7-form span.wpcf7-form-control-wrap,
.col-lg-6 .wpcf7-form span.wpcf7-form-control-wrap {
    position: relative;
    display: block;
    width: 100%;
}

/* Inputs inside the wrap */
#contact .wpcf7-form span.wpcf7-form-control-wrap input,
#contact .wpcf7-form span.wpcf7-form-control-wrap textarea,
.col-lg-6 .wpcf7-form span.wpcf7-form-control-wrap input,
.col-lg-6 .wpcf7-form span.wpcf7-form-control-wrap textarea {
    width: 100%;
    margin: 0;
}

/* Input and textarea styling */
#contact .wpcf7-form input[type="text"],
#contact .wpcf7-form input[type="email"],
#contact .wpcf7-form textarea,
.col-lg-6 .wpcf7-form input[type="text"],
.col-lg-6 .wpcf7-form input[type="email"],
.col-lg-6 .wpcf7-form textarea {
    width: 100%;
    padding: 1rem 0.75rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

#contact .wpcf7-form textarea,
.col-lg-6 .wpcf7-form textarea {
    min-height: 150px;
    height: 150px;
    padding-top: 1rem;
}

/* Floating label styling */
#contact .wpcf7-form .form-floating > label,
.col-lg-6 .wpcf7-form .form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    color: #6c757d;
    z-index: 2;
}

/* Label inside wpcf7-form-control-wrap */
#contact .wpcf7-form span.wpcf7-form-control-wrap .form-floating > label,
.col-lg-6 .wpcf7-form span.wpcf7-form-control-wrap .form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
}

/* Floating label active state - handled by JavaScript */
#contact .wpcf7-form .form-floating label.floating,
.col-lg-6 .wpcf7-form .form-floating label.floating {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Input focus states */
#contact .wpcf7-form input:focus,
#contact .wpcf7-form textarea:focus,
.col-lg-6 .wpcf7-form input:focus,
.col-lg-6 .wpcf7-form textarea:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Validation error styling */
#contact .wpcf7-form input.wpcf7-not-valid,
#contact .wpcf7-form textarea.wpcf7-not-valid,
.col-lg-6 .wpcf7-form input.wpcf7-not-valid,
.col-lg-6 .wpcf7-form textarea.wpcf7-not-valid {
    border-color: #dc3545;
}

/* Submit button */
#contact .wpcf7-form .wpcf7-submit,
.col-lg-6 .wpcf7-form .wpcf7-submit {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#contact .wpcf7-form .wpcf7-submit:hover,
.col-lg-6 .wpcf7-form .wpcf7-submit:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Response messages */
#contact .wpcf7-form .wpcf7-response-output,
.col-lg-6 .wpcf7-form .wpcf7-response-output {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
}

#contact .wpcf7-form .wpcf7-mail-sent-ok,
.col-lg-6 .wpcf7-form .wpcf7-mail-sent-ok {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
}

#contact .wpcf7-form .wpcf7-mail-sent-ng,
#contact .wpcf7-form .wpcf7-aborted,
.col-lg-6 .wpcf7-form .wpcf7-mail-sent-ng,
.col-lg-6 .wpcf7-form .wpcf7-aborted {
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}

#contact .wpcf7-form .wpcf7-spam,
.col-lg-6 .wpcf7-form .wpcf7-spam {
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    color: #664d03;
}

#contact .wpcf7-form .wpcf7-validation-errors,
.col-lg-6 .wpcf7-form .wpcf7-validation-errors {
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}

#contact .wpcf7-form .wpcf7-not-valid-tip,
.col-lg-6 .wpcf7-form .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Ensure form-control class works */
#contact .wpcf7-form .form-control,
.col-lg-6 .wpcf7-form .form-control {
    display: block;
    width: 100%;
    padding: 1rem 0.75rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.screen-reader-response ul{
    display: none !important;
}

