/* Contact Page Specific Styles */

/* Contact Hero Section */
.contact-hero {
    height: 60vh;
    background: linear-gradient(135deg, rgba(1, 26, 66, 0.9), rgba(1, 26, 66, 0.7)),
        url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(245, 124, 2, 0.2), transparent 70%);
}

.contact-hero .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.contact-hero .hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Main Contact Section */
.contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* Map Section Styles */
.contact-map-section {
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
}

.map-container {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
}

.map-header {
    text-align: center;
    margin-bottom: 2rem;
}

.map-header h3 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.map-header p {
    color: #666;
    font-size: 1.1rem;
}

.map-embed {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(1, 26, 66, 0.1);
    margin-bottom: 2rem;
    flex: 1;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.map-embed iframe {
    filter: grayscale(0.3) contrast(1.1);
    transition: all 0.3s ease;
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

.map-embed:hover iframe {
    filter: grayscale(0) contrast(1.2);
}

/* Contact Info Cards */
.contact-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: rgba(1, 26, 66, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(1, 26, 66, 0.1);
}

.info-card:hover {
    background: rgba(1, 26, 66, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 26, 66, 0.15);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), #ff9800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1.2rem;
    color: #fff;
}

.info-content h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.info-content p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Form Section Styles */
.contact-form-section {
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
}

.form-container {
    padding: 3rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-height: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Enhanced Form Styles */
.contact-form {
    margin-bottom: 2rem;
}

.form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control,
.form-select {
    background: rgba(248, 249, 250, 0.8);
    border: 2px solid rgba(1, 26, 66, 0.1);
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: #fff;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 124, 2, 0.15);
}

.form-floating label {
    color: #666;
    font-weight: 500;
}

.form-control:focus~label,
.form-control:not(:placeholder-shown)~label,
.form-select:focus~label,
.form-select:not([value=""])~label {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Form Validation Styles */
.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: #28a745;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Checkbox Styling */
.form-check {
    margin: 1.5rem 0;
}

.form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.form-check-label {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-check-label a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

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

/* Submit Button Enhancement */
.contact-form .btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #ff9800);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 124, 2, 0.4);
}

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

.btn-loader {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Alert Messages */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f1b0b7);
    color: #721c24;
}

/* Social Links */
.social-links {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(1, 26, 66, 0.1);
    margin-top: auto;
}

.social-links h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(1, 26, 66, 0.1), rgba(1, 26, 66, 0.05));
    border: 2px solid rgba(1, 26, 66, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--secondary-color), #ff9800);
    border-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(245, 124, 2, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-info-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-card {
        padding: 1rem;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .contact-hero {
        height: 50vh;
    }
}

@media (max-width: 768px) {
    .contact-section .row {
        flex-direction: column-reverse;
    }

    .map-container,
    .form-container {
        padding: 1.5rem;
    }

    .map-embed {
        height: 300px;
    }

    .contact-info-cards {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .form-header h2 {
        font-size: 1.8rem;
    }

    .contact-hero .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .contact-info-cards {
        grid-template-columns: 1fr;
    }

    .social-icons {
        gap: 0.5rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}