/**
 * Plan Your Trip Forms - Custom Styles
 * Styling for form messages and states
 */

/* Form Message Container */
.form-message-container {
    margin-bottom: 15px;
}

/* Form Messages */
.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideDown 0.3s ease;
}

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

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

.form-message ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.form-message ul li {
    margin-bottom: 4px;
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Loading State */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

button[type="submit"] .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Form Field Error States */
.plan-trip-form input.error,
.plan-trip-form textarea.error,
.plan-trip-form select.error {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

/* Success State for Forms */
.plan-trip-form.form-success {
    opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-message {
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* Header Lead Form Specific Styles */
.mfh-header-lead {
    position: relative;
}

.mfh-header-lead .form-message {
    position: absolute;
    top: 50px;
    right: 0;
    min-width: 300px;
    max-width: 350px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    animation: slideDown 0.3s ease;
}

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

.mfh-header-lead .form-message.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.mfh-desktop-btn {
    position: relative;
}

/* Mobile - hide header form */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}
