[x-cloak] { display: none !important; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.message {
    padding: 1rem 1.5rem;
    position: relative;
    border-radius: 8px;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    animation: slideIn 0.3s ease-out;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    border-left: 4px solid #e5e7eb;
}

.message.success {
    border-left-color: #10b981;
    color: #065f46;
}

.message.error {
    border-left-color: #ef4444;
    color: #991b1b;
}

.message.warning {
    border-left-color: #f59e0b;
    color: #92400e;
}

.message.hiding {
    transform: translateX(110%);
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
}

.message .progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: currentColor;
    opacity: 0.2;
    animation: shrink 5s linear forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes shrink {
    from { width: 100%; }
    to { width: 0%; }
}

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

/* Form Submission Loading Overlay */
.form-submit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(3px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.form-submit-overlay .submit-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e5e7eb;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

.form-submit-overlay p {
    color: #4f46e5;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}
