/* Contact Footer Block Styles */

/* Spacing Classes */
.pt-small {
    padding-top: var(--spacing-small);
}

.pt-medium {
    padding-top: var(--spacing-medium);
}

.pt-large {
    padding-top: var(--spacing-large);
}

.pb-small {
    padding-bottom: var(--spacing-small);
}

.pb-medium {
    padding-bottom: var(--spacing-medium);
}

.pb-large {
    padding-bottom: var(--spacing-large);
}

/* Main Block Styles */
.contactfooter-container {
    background-color: var(--secondary);
    padding: 60px 0;
}

.contactfooter-block {
    position: relative;
}

/* Title Styles */
.contactfooter-title {
    font-size: 3rem;
    color: white;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    max-width: 1000px;
    margin: 0 auto 40px;
}

/* Form Container Styles */
.contactfooter-form-container {
    display: flex;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contactfooter-form-content {
    flex: 1;
    background-color: var(--primary);
    padding: 40px;
    color: white;
}

.contactfooter-form-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
}

.contactfooter-form-description {
    margin-bottom: 30px;
    line-height: 1.6;
}

.contactfooter-image-container {
    flex: 1;
    position: relative;
}

.contactfooter-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Gravity Form Styles */
.contactfooter-gravity-form .gform_wrapper {
    margin: 0;
}

.contactfooter-gravity-form .gform-theme--foundation .gform_fields {
    gap: 15px !important;
}

.contactfooter-gravity-form .gform_wrapper input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]), .contactfooter-gravity-form .gform_wrapper textarea, .contactfooter-gravity-form .gform_wrapper select {
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: white;
    color: black !important;
    height: 50px;
    display: flex;
    align-items: center;
}

.contactfooter-gravity-form .gform_wrapper input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]):focus,
.contactfooter-gravity-form .gform_wrapper textarea:focus {
    outline: none;
    border-color: white;
    background-color: rgba(255, 255, 255, 0.15);
}

.contactfooter-gravity-form .gform_wrapper .gform_footer input.button,
.contactfooter-gravity-form .gform_wrapper .gform_footer input[type="submit"],
.contactfooter-gravity-form .gform_wrapper .gform_page_footer input.button,
.contactfooter-gravity-form .gform_wrapper .gform_page_footer input[type="submit"] {
    background-color: var(--secondary) !important;
    color: white !important;
    padding: 12px 30px !important;
    border: none !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.contactfooter-gravity-form .gform_wrapper .gform_footer input.button:hover,
.contactfooter-gravity-form .gform_wrapper .gform_footer input[type="submit"]:hover,
.contactfooter-gravity-form .gform_wrapper .gform_page_footer input.button:hover,
.contactfooter-gravity-form .gform_wrapper .gform_page_footer input[type="submit"]:hover {
    background-color: white !important;
    color: var(--secondary) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.contactfooter-gravity-form .gform_wrapper .gfield_label {
    color: white;
    font-weight: 500;
}

.contactfooter-gravity-form .gform_wrapper .gfield_required {
    color: rgba(255, 255, 255, 0.7);
}

.contactfooter-gravity-form .gform_wrapper .validation_message {
    color: #ffcc00;
}

p.gform_required_legend {
    display: none;
}

.contactfooter-form-container label {
    display: none !important;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .contactfooter-form-container {
        flex-direction: column;
    }

    .contactfooter-image-container {
        height: 300px;
        position: relative;
    }

    .contactfooter-image {
        position: relative;
        height: 100%;
    }
}

@media (max-width: 767px) {
    .contactfooter-title {
        font-size: 2.5rem;
    }

    .contactfooter-form-title {
        font-size: 1.75rem;
    }

    .contactfooter-form-content {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .contactfooter-title {
        font-size: 2rem;
        padding: 30px;
    }

    .contactfooter-form-title {
        font-size: 1.5rem;
    }

    .contactfooter-form-content {
        padding: 20px;
    }

    .contactfooter-image-container {
        height: 200px;
    }
}