/* ========================================
   CONTACT/ENQUIRY PAGE STYLES
   VFL Group India
   ======================================== */

:root {
    --primary-blue: #1E65A5;
    --primary-red: #E02A2A;
    --dark-blue: #134077;
    --bg-light: #f8f9fa;
    --border-light: #e0e0e0;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

/* ============================================
   CONTACT HERO SECTION WITH BACKGROUND IMAGE
   ============================================ */

.contact-hero {
    position: relative;
    height: 31.25em; /* 500px */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* Dark overlay */
.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}

/* Decorative icons */
.contact-hero::after {
    content: '✉️ 📞 📧 ✉️ 📞 📧';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 7.5em;
    opacity: 0.1;
    white-space: nowrap;
    pointer-events: none;
    font-family: 'Segoe UI', Arial, sans-serif;
    z-index: 1;
    color: white;
}

.contact-hero .container {
    position: relative;
    z-index: 2;
    max-width: 75em;
    margin: 0 auto;
    padding: 0 1.25em;
}

.contact-hero h1 {
    font-size: 4em;
    font-weight: 800;
    margin-bottom: 0.5em;
    text-transform: uppercase;
    text-shadow: 0.125em 0.125em 0.25em rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
    line-height: 1.4;
}

.contact-hero .header-line {
    width: 5em;
    height: 0.1875em;
    background: var(--primary-red);
    margin: 1.25em auto;
    border-radius: 0.125em;
}

.contact-hero p {
    font-size: 1.2em;
    opacity: 0.95;
    max-width: 40em;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.3s both;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1.875em);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 62em) { /* 992px */

    .contact-hero {
        height: 28em;
        background-attachment: scroll;
    }

    .contact-hero h1 {
        font-size: 3.5em;
    }

    .contact-hero p {
        font-size: 1.1em;
    }
}

@media (max-width: 48em) { /* 768px */

    .contact-hero {
        height: 25em;
    }

    .contact-hero h1 {
        font-size: 2.8em;
    }

    .contact-hero p {
        font-size: 1em;
        max-width: 35em;
    }
}

@media (max-width: 36em) { /* 576px */

    .contact-hero {
        height: 22em;
    }

    .contact-hero h1 {
        font-size: 2.2em;
    }

    .contact-hero .header-line {
        width: 4em;
        margin: 1em auto;
    }

    .contact-hero p {
        font-size: 0.95em;
        padding: 0 1em;
    }
}


/* Contact Content */
.contact-content {
    padding: 0 0 70px;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Contact Info Cards */
.contact-info-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-info-card h3 {
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.contact-info-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
}

/* Contact Details */
.contact-details {
    margin-bottom: 30px;
}

/* Contact Details - Red Icons */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: red; /* Red background with opacity */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red); /* Red color */
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: var(--primary-red); /* Solid red on hover */
    color: white;
    transform: scale(1.1);
}

/* Business Hours Icon - Red */
.business-hours h4 i {
    color: var(--primary-red); /* Red icon */
}

.contact-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 15px;
}

.contact-text a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-text a:hover {
    color: var(--primary-red);
}

/* Business Hours */
.business-hours {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 22px;
    margin-top: 25px;
    border: 1px solid var(--border-light);
}

.business-hours h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.business-hours h4 i {
    color: var(--primary-red);
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-light);
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-day {
    color: var(--text-primary);
    font-weight: 500;
}

.hours-time {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Contact Form Card */
.contact-form-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-card:hover {
    box-shadow: var(--shadow-lg);
}

.contact-form-card h3 {
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.contact-form-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
}

/* Form Groups */
.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-label span {
    color: var(--primary-red);
    margin-left: 3px;
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--bg-light);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(30, 101, 165, 0.1);
    background: white;
}

.form-control::placeholder {
    color: var(--text-muted);
    font-size: 14px;
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

/* Submit Button */
.submit-btn {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background: #c02424;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(224, 42, 42, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn i {
    font-size: 18px;
}

/* Map Section */
.map-section {
    margin-top: 50px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.map-container {
    width: 100%;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Alerts */
.alert {
    padding: 16px 22px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.5s ease;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-success i {
    color: #28a745;
    font-size: 22px;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-danger i {
    color: #dc3545;
    font-size: 22px;
}

.alert .btn-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.alert .btn-close:hover {
    opacity: 1;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social Links */
.social-links {
    margin-top: 25px;
}

.social-links h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.social-links .d-flex {
    display: flex;
    gap: 10px;
}

.social-links .social-icon-top {
    width: 42px;
    height: 42px;
    background: rgba(30, 101, 165, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links .social-icon-top:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-grid {
        gap: 20px;
    }
    
    .contact-hero h1 {
        font-size: 36px;
    }
    
    .contact-hero p {
        font-size: 16px;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 28px;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .contact-hero {
        padding: 50px 0;
        margin-bottom: 40px;
    }
    
    .contact-hero h1 {
        font-size: 32px;
    }
    
    .contact-hero p {
        font-size: 15px;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 25px;
    }
    
    .map-container {
        height: 300px;
    }
    
    .contact-info-card h3,
    .contact-form-card h3 {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .contact-hero {
        padding: 40px 0;
    }
    
    .contact-hero h1 {
        font-size: 28px;
    }
    
    .contact-hero .header-line {
        width: 60px;
    }
    
    .contact-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }
    
    .contact-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    
    .business-hours {
        padding: 18px;
    }
    
    .hours-row {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .hours-time {
        font-size: 14px;
    }
    
    .form-control {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 14px 25px;
        font-size: 15px;
    }
    
    .map-container {
        height: 220px;
    }
    
    .alert {
        padding: 14px 18px;
        font-size: 14px;
    }
}

/* Small Mobile Devices */
@media (max-width: 380px) {
    .contact-hero h1 {
        font-size: 24px;
    }
    
    .contact-hero p {
        font-size: 14px;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 20px;
    }
    
    .contact-info-card h3,
    .contact-form-card h3 {
        font-size: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .contact-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .contact-text h4 {
        font-size: 15px;
    }
    
    .contact-text p {
        font-size: 14px;
    }
    
    .form-label {
        font-size: 13px;
    }
}