/* Contact Form 7 Custom Styling for EMC Theme */

/* Form Container */
.wpcf7-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Form Fields */
.wpcf7-form label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    padding: 1rem;
    background: #C2EBFF0D;
    border-radius: 6px;
    border: 1px solid #0E40A133;
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

.wpcf7-form textarea {
    height: 200px;
    resize: vertical;
}

/* Focus States */
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #003292;
    box-shadow: 0 0 0 2px rgba(0, 50, 146, 0.25);
}

/* Submit Button */
.wpcf7-form input[type="submit"] {
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    background: #C2EBFF;
    color: #003292;
    margin-top: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.wpcf7-form input[type="submit"]:hover {
    background: #003292;
    color: white;
    transform: translateY(-2px);
}

/* Two Column Layout for Name Fields */
.wpcf7-form .name-fields {
    display: flex;
    gap: 1rem;
}

.wpcf7-form .name-fields .wpcf7-form-control-wrap {
    flex: 1;
}

/* Error Messages */
.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 14px;
    margin-top: 0.5rem;
}

.wpcf7-form .wpcf7-not-valid {
    border-color: #dc3545 !important;
}

/* Success/Error Messages */
.wpcf7-response-output {
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    font-weight: 500;
    width: 100%;
}

.wpcf7-mail-sent-ok {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wpcf7-validation-errors {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wpcf7-spam-blocked {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Loading State */
.wpcf7-form .wpcf7-spinner {
    margin-left: 1rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .wpcf7-form .name-fields {
        flex-direction: column;
        gap: 0;
    }
    
    .wpcf7-form input[type="submit"] {
        width: 100%;
    }
}

/* Hide default Contact Form 7 styling */
.wpcf7-form .wpcf7-form-control-wrap {
    display: block;
}

/* Custom field spacing */
.wpcf7-form .wpcf7-form-control-wrap {
    margin-bottom: 1rem;
}

/* Placeholder styling */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #666;
    opacity: 1;
}

