/* ===== CONTACT FORM VALIDATION STYLES ===== */

/* Error state for fields */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444 !important;
    background: #fef2f2;
}

.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Error message */
.error-message {
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: slideDown 0.3s ease;
}

.error-message:before {
    content: '⚠';
    font-size: 14px;
}

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

/* Success state for fields */
.form-group input:valid:not(:placeholder-shown),
.form-group select:valid,
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

/* Character counter */
.character-counter {
    text-align: right;
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
    transition: color 0.3s;
}

/* Form message styles */
.form-message {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: none;
    font-weight: 500;
    animation: slideDown 0.4s ease;
    position: relative;
}

.form-message:before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 12px;
    font-size: 18px;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.form-message.success:before {
    content: '\f058'; /* fa-check-circle */
    color: #10b981;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.form-message.error:before {
    content: '\f06a'; /* fa-exclamation-circle */
    color: #ef4444;
}

/* Loading spinner on submit button */
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

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

/* Honeypot field (hidden from users, visible to bots) */
.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* ===== VERIFICATION MODAL ===== */
.verification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

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

.verification-modal-content {
    background: white;
    max-width: 500px;
    width: 100%;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    animation: scaleIn 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.verification-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.verification-icon i {
    font-size: 48px;
    color: white;
}

.verification-modal-content h3 {
    color: #0f172a;
    font-size: 28px;
    margin-bottom: 15px;
}

.verification-modal-content > p {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.verification-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 120px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.step span:last-child {
    color: #475569;
    font-size: 14px;
    text-align: center;
}

.small-text {
    font-size: 14px;
    color: #64748b;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.small-text i {
    color: #6366f1;
}

.close-modal-btn {
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    color: white;
    border: none;
    padding: 15px 50px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.close-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .verification-modal-content {
        padding: 40px 25px;
    }
    
    .verification-icon {
        width: 80px;
        height: 80px;
    }
    
    .verification-icon i {
        font-size: 36px;
    }
    
    .verification-modal-content h3 {
        font-size: 24px;
    }
    
    .verification-steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .step {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* ===== ACCESSIBILITY ===== */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-message.error {
        background: #fff;
        border-width: 3px;
    }
    
    .form-message.success {
        background: #fff;
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .verification-modal,
    .verification-modal-content,
    .verification-icon,
    .error-message,
    .form-message {
        animation: none;
    }
    
    .fa-spinner.fa-spin {
        animation: none;
    }
}

/* Loading overlay */
.form-loading {
    position: relative;
}

.form-loading:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    z-index: 10;
}
