/* Plantagusto Forms Styling */

/* Message styling for all forms */
.message, .success-message, .error-message, 
.contact-success-message, .contact-error-message {
    display: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 500;
    border: 2px solid;
    animation: slideIn 0.3s ease-out;
}

.success-message, .contact-success-message {
    background-color: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.error-message, .contact-error-message {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for forms */
.form-loading {
    opacity: 0.6;
    pointer-events: none;
}

.btn-loading {
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom background colors */
.bg-dark-green {
    background-color: var(--dark-green);
}

/* Form input focus states */
.focus\:ring-gold:focus {
    --tw-ring-color: var(--gold);
}

.focus\:border-sage:focus {
    border-color: var(--sage);
}

/* Hover effects for links */
.hover\:text-gold:hover {
    color: var(--gold);
}