.cf-container-e65ed83d {
    width: 100%;
}

/* Submit Button Wrapper */
.cf-container-e65ed83d .submit-wrapper {
    display: flex;
}

.cf-container-e65ed83d input:not([type="submit"]):not([type="button"]):not([type="radio"]):not([type="checkbox"]),
.cf-container-e65ed83d textarea,
.cf-container-e65ed83d select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Custom Submit Button Styles */
.cf-container-e65ed83d .cf-submit-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #007cba;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Button icon styling */
.cf-container-e65ed83d .cf-submit-btn .cf-btn-icon-left,
.cf-container-e65ed83d .cf-submit-btn .cf-btn-icon-right {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cf-container-e65ed83d .cf-submit-btn .cf-btn-icon-left i,
.cf-container-e65ed83d .cf-submit-btn .cf-btn-icon-right i {
    font-size: 1em;
    line-height: 1;
}

.cf-placeholder-e65ed83d {
    padding: 30px;
    background-color: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: 4px;
    text-align: center;
    color: #6c757d;
}

.cf-placeholder-e65ed83d p {
    margin: 0 0 10px;
}

.cf-placeholder-e65ed83d p:last-child {
    margin-bottom: 0;
}

.cf-preview-icon {
    font-size: 32px;
    margin-bottom: 15px;
    color: #a4afb7;
}

/* Base resets for common form plugins inside our wrapper */
.cf-container-e65ed83d .wpcf7-form-control-wrap,
.cf-container-e65ed83d .wpforms-field-container {
    display: block;
}

.cf-container-e65ed83d .wpcf7-form p,
.cf-container-e65ed83d .wpforms-field {
    margin-bottom: 0;
}

/* WPForms specific submit button container */
.cf-container-e65ed83d .wpforms-submit-container {
    text-align: inherit;
}

.cf-container-e65ed83d .wpforms-submit-container .cf-submit-btn {
    display: inline-flex;
}

/* Contact Form 7 specific */
.cf-container-e65ed83d .wpcf7-form .cf-submit-btn {
    display: inline-flex;
}

/* Ensure the wrapper for button alignment works properly */
.cf-container-e65ed83d form p:last-child {
    margin-bottom: 0;
}

/* Container Hover Animations */
.cf-container-e65ed83d.cf-container-float:hover {
    transform: translateY(-10px);
}

.cf-container-e65ed83d.cf-container-pulse:hover {
    animation: cf-pulse 0.5s ease-in-out;
}

.cf-container-e65ed83d.cf-container-shadow:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.cf-container-e65ed83d.cf-container-border-glow:hover {
    border-color: #007cba;
    box-shadow: 0 0 20px rgba(0,124,186,0.3);
}

.cf-container-e65ed83d.cf-container-scale:hover {
    transform: scale(1.02);
}

@keyframes cf-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Responsive Breakpoints */
/* Tablet (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
    .cf-container-e65ed83d .cf-submit-btn {
        font-size: 15px;
        padding: 10px 20px;
    }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
    .cf-container-e65ed83d {
        padding: 15px !important;
    }
    
    .cf-container-e65ed83d .cf-submit-btn {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .cf-container-e65ed83d input:not([type="submit"]):not([type="button"]):not([type="radio"]):not([type="checkbox"]),
    .cf-container-e65ed83d textarea,
    .cf-container-e65ed83d select {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .cf-container-e65ed83d label {
        font-size: 14px;
    }
    
    /* Make form full width on mobile */
    .cf-container-e65ed83d .wpcf7-form .wpcf7-form-control-wrap,
    .cf-container-e65ed83d .wpforms-field {
        display: block !important;
        width: 100% !important;
    }
    
    /* Improve touch targets on mobile */
    .cf-container-e65ed83d .cf-submit-btn {
        min-height: 44px;
    }
    
    .cf-container-e65ed83d input:not([type="submit"]):not([type="button"]),
    .cf-container-e65ed83d select,
    .cf-container-e65ed83d textarea {
        min-height: 40px;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .cf-container-e65ed83d {
        padding: 10px !important;
    }
    
    .cf-container-e65ed83d .cf-submit-btn {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .cf-container-e65ed83d .cf-btn-icon-left i,
    .cf-container-e65ed83d .cf-btn-icon-right i {
        font-size: 14px;
    }
}

/* Landscape orientation optimization */
@media (max-width: 767px) and (orientation: landscape) {
    .cf-container-e65ed83d {
        padding: 12px !important;
    }
}