/* ===== CONTACT FORM ENHANCEMENT ===== */

/* Contact page layout improvements */
.contact-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.contact-hero {
    background: linear-gradient(135deg, #08407c 0%, #00d9c0 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.contact-hero h1 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-hero .lead {
    opacity: 0.95;
}

/* Contact cards styling */
.contact-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Form section header */
.form-section-header {
    border-bottom: 3px solid #f8f9fa;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.form-section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #08407c, #00d9c0);
    border-radius: 2px;
}

.form-section-header h4 {
    color: #08407c;
    margin-bottom: 0.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.form-section-header p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #6c757d;
}

/* Enhanced form controls */
.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.875rem 1.125rem;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.form-control:focus {
    border-color: #08407c;
    box-shadow: 0 0 0 0.25rem rgba(8, 64, 124, 0.15);
    background: white;
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #adb5bd;
    font-style: italic;
    opacity: 0.8;
}

/* Textarea specific styling */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Phone field with icon */
.phone-field {
    position: relative;
}

.phone-field .form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%2308407c' viewBox='0 0 16 16'%3E%3Cpath d='M3.654 1.328a.678.678 0 0 0-1.015-.063L1.605 2.3c-.483.484-.661 1.169-.45 1.77a17.568 17.568 0 0 0 4.168 6.608 17.569 17.569 0 0 0 6.608 4.168c.601.211 1.286.033 1.77-.45l1.034-1.034a.678.678 0 0 0-.063-1.015l-2.307-1.794a.678.678 0 0 0-.58-.122L9.98 10.57a.678.678 0 0 1-.615-.152L6.08 7.133a.678.678 0 0 1-.152-.615l.845-1.804a.678.678 0 0 0-.122-.58L4.857 2.426a.678.678 0 0 0-.203-.098z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 50px;
}

/* Enhanced button styling */
.btn-contact {
    background: linear-gradient(135deg, #08407c 0%, #00d9c0 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 25px rgba(8, 64, 124, 0.2);
}

.btn-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    transition: left 0.5s ease;
}

.btn-contact:hover::before {
    left: 100%;
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(8, 64, 124, 0.3);
    color: white;
}

.btn-contact:active {
    transform: translateY(-1px);
}

/* Contact information styling */
.contact-card .icon-box {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #08407c, #00d9c0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-card h6 {
    color: #08407c;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-card .text-muted {
    color: #6c757d !important;
    line-height: 1.5;
}

/* Social links styling */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #08407c, #00d9c0);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(8, 64, 124, 0.3);
    color: white;
}

/* Validation styling */
.text-danger {
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.25rem;
    display: block;
}

.form-control.is-invalid {
    border-color: #dc3545;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Success/Error messages */
.alert-custom {
    border: none;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.alert-success.alert-custom {
    background: rgba(25, 135, 84, 0.1);
    color: #0f5132;
    border-left: 4px solid #198754;
}

.alert-danger.alert-custom {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Responsive design */
@media (max-width: 768px) {
    .contact-hero {
        padding: 2.5rem 0;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-section {
        padding: 2rem 0;
    }
    
    .contact-card {
        margin-bottom: 2rem;
    }
    
    .form-control {
        padding: 0.75rem 1rem;
    }
    
    .btn-contact {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .phone-field .form-control {
        padding-right: 45px;
        background-size: 16px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 2rem 0;
    }
    
    .contact-hero h1 {
        font-size: 1.75rem;
    }
    
    .contact-card .card-body {
        padding: 1.5rem !important;
    }
    
    .form-section-header {
        margin-bottom: 1.5rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Animation enhancements */
.contact-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for form submission */
.btn-contact.loading {
    pointer-events: none;
    position: relative;
}

.btn-contact.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
