/* Contact Form Messages and Validation Styles */

/* Form Messages */
.form-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    position: relative;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message-success {
    background: linear-gradient(135deg, 
        rgba(1, 164, 147, 0.1) 0%, 
        rgba(1, 164, 147, 0.15) 100%);
    border: 1px solid #01a493;
    color: #01a493;
}

.form-message-error {
    background: linear-gradient(135deg, 
        rgba(250, 143, 0, 0.1) 0%, 
        rgba(250, 143, 0, 0.15) 100%);
    border: 1px solid #fa8f00;
    color: #d87000;
}

.form-message ul {
    margin: 10px 0 0 20px;
    padding: 0;
    list-style-type: disc;
}

.form-message li {
    margin: 5px 0;
}

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

.message-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
}

/* Field Validation Styles */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #fa8f00 !important;
    background: rgba(250, 143, 0, 0.05);
}

.field-error {
    color: #d87000;
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
}

/* Character Counter */
.character-counter {
    font-size: 0.85em;
    color: #666;
    text-align: right;
    margin-top: 5px;
}

.character-counter.over-limit {
    color: #fa8f00;
    font-weight: bold;
}

/* Loading State for Button */
.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-submit:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Success Animation for Form */
@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(1, 164, 147, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(1, 164, 147, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(1, 164, 147, 0);
    }
}

.form-success {
    animation: successPulse 1s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .form-message {
        font-size: 0.95em;
        padding: 12px 15px;
    }
    
    .message-close {
        top: 8px;
        right: 8px;
        font-size: 20px;
        width: 25px;
        height: 25px;
    }
}