/**
 * Form Styles for Atmos Tropical Woods
 * Simple, clean styling for form messages
 */

/* Success and Error Messages - Hidden by default */
.success_msg,
.error_msg {
    display: none;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
}

/* Success Message Styling */
.success_msg {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.success_msg h4 {
    color: #155724;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Error Message Styling */
.error_msg {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.error_msg h4 {
    color: #721c24;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Loading Overlay */
.overlay_with_high_zindex {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.overlay_with_high_zindex > div {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Form Input Error State */
input.error,
input[style*="border: 1px solid red"] {
    border-color: #dc3545 !important;
}

/* Ensure intlTelInput works properly */
.intl-tel-input {
    width: 100%;
}

.intl-tel-input input[type="tel"] {
    width: 100%;
}

/* Submit Button States */
.submit_button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.success_msg[style*="display: block"],
.error_msg[style*="display: block"] {
    animation: fadeIn 0.3s ease;
}