/* Contact Form Styles */
.form-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: 5px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #27aae1;
    animation: spin 0.8s ease-in-out infinite;
}

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

/* Message Dialog Styles */
.message-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.message-dialog {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 25px;
    width: 90%;
    max-width: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: slideUp 0.3s ease-out;
}

.message-dialog.success {
    border-top: 5px solid #4CAF50;
}

.message-dialog.error {
    border-top: 5px solid #F44336;
}

.message-icon {
    margin-bottom: 15px;
}

.message-dialog.success .message-icon {
    color: #4CAF50;
}

.message-dialog.error .message-icon {
    color: #F44336;
}

.message-text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #333;
}

.message-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.message-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Form input validation styles */
.contact-form .inp.error,
.contact-form .inp-text.error {
    border-color: #F44336;
    background-color: rgba(244, 67, 54, 0.05);
}

.contact-form .validation-message {
    color: #F44336;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.contact-form .inp.error + .validation-message,
.contact-form .inp-text.error + .validation-message {
    display: block;
}

/* Ensure form container has position relative for the overlay */
.contact-form {
    position: relative;
}

/* Disable preloader for contact form submissions */
body.form-submitting .preloader,
body.form-submitting .tavonline-overlay {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .message-dialog {
        width: 95%;
        padding: 20px 15px;
    }
    
    .message-text {
        font-size: 14px;
    }
} 