/* Form Message Styles */
.form-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

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

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

/* Form Loading State */
.quick-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #6c757d;
}

.quick-form button[type="submit"]:disabled:hover {
    background-color: #6c757d;
    transform: none;
}

/* Enhanced Form Styling */
.quick-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.quick-form input {
    padding: 14px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.quick-form input:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.quick-form input:invalid {
    border-color: #dc3545;
}

.quick-form input:valid {
    border-color: #28a745;
}

/* Button Enhancement */
.cta-button.primary {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button.primary:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.cta-button.primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .quick-form {
        max-width: 100%;
    }
    
    .quick-form input,
    .cta-button.primary {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Animation for form success */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.form-message.success {
    animation: successPulse 0.6s ease-in-out;
}

/* Loading spinner for button */
.cta-button.primary.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
}

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

