/* ===== CONTACT FORM SPECIFIC STYLES ===== */

/* Form Container */
.contact-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form h3 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Form Inputs */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #2c3e50;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    background: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #95a5a6;
    opacity: 1;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 150px;
    line-height: 1.5;
}

/* Form Validation States */
.form-group input.valid,
.form-group textarea.valid {
    border-color: #27ae60;
    background: #ffffff;
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #e74c3c;
    background: #ffffff;
}

/* Validation Icons */
.form-group.has-success::after {
    content: "✓";
    position: absolute;
    right: 15px;
    top: 38px;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2rem;
}

.form-group.has-error::after {
    content: "✗";
    position: absolute;
    right: 15px;
    top: 38px;
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Submit Button */
.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-form .btn-primary {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: none;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form .btn-primary:hover {
    background: linear-gradient(135deg, #e55a2b, #e8851a);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.contact-form .btn-primary:active {
    transform: translateY(0);
}

/* Button Loading State */
.btn-loading {
    display: none;
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .btn-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Form Messages */
#form-messages {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    display: none;
    animation: slideDown 0.3s ease-out;
}

#form-messages.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

#form-messages.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

#form-messages.info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

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

/* Honeypot Field (Hidden) */
input[name="website"] {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Form Note */
.form-note {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.4;
}

.form-note a {
    color: #ff6b35;
    font-weight: 600;
    text-decoration: none;
}

.form-note a:hover {
    text-decoration: underline;
}

/* Responsive Form Styles */
@media (max-width: 768px) {
    .contact-form {
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .contact-form h3 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .contact-form .btn {
        padding: 14px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 20px 15px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
    }
    
    .form-group textarea {
        min-height: 70px;
    }
}

/* Focus Trap for Accessibility */
.contact-form:focus-within {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .form-group input,
    .form-group textarea {
        border-width: 3px;
    }
    
    .contact-form .btn-primary {
        background: #000;
        border: 2px solid #fff;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .form-group input,
    .form-group textarea,
    .contact-form .btn {
        transition: none;
    }
    
    #form-messages {
        animation: none;
    }
    
    .btn-loading {
        animation: none;
    }
}

