/* Contact Form Container */
.angie-contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-family: inherit; /* Inherit font from theme */
}

.angie-contact-form-title {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Form Groups */
.angie-form-group {
    margin-bottom: 15px;
    position: relative;
}

.angie-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #444;
}

.angie-form-group label .required {
    color: #e74c3c;
    margin-left: 2px;
}

/* Inputs & Textarea */
.angie-form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    color: #333;
    background-color: #fafafa;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

.angie-form-control:focus {
    border-color: #004080; /* Primary color from context */
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 64, 128, 0.1);
    background-color: #fff;
}

.angie-form-control.error {
    border-color: #e74c3c;
    background-color: #fff6f6;
}

/* Error Messages */
.angie-error-msg {
    display: none;
    font-size: 13px;
    color: #e74c3c;
    margin-top: 5px;
}

/* Submit Button */
.angie-form-submit {
    margin-top: 20px;
    text-align: center;
}

.angie-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: #004080; /* Primary color */
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    min-width: 150px;
}

.angie-submit-btn:hover {
    background-color: #003366; /* Darker shade */
}

.angie-submit-btn:active {
    transform: translateY(1px);
}

.angie-submit-btn:disabled {
    background-color: #99aabb;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Response Message */
.angie-form-response {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.angie-form-response.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.angie-form-response.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loader Animation */
.angie-btn-loader {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-left: 10px;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 480px) {
    .angie-contact-form-wrapper {
        padding: 15px;
    }
    
    .angie-submit-btn {
        width: 100%;
    }
}
