﻿/* Contact Page Styles - Pegasus Transport Colors */

.contact-hero {
    background: linear-gradient(135deg, #E5723A 0%, #E5723A 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

    .contact-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
        background-size: cover;
        opacity: 0.3;
    }

.contact-hero-overlay {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.contact-hero .lead {
    font-size: 1.3rem;
    font-weight: 300;
}

.contact-section {
    background-color: #F9F0DF;
}

/* CONTACT INFO CARD */
.contact-info-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.contact-info-item {
    display: flex;
    gap: 1.3rem;
    padding: 1.4rem 1.2rem;
    margin-bottom: 1rem;
    background: var(--old-lace);
    border-radius: 12px;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.contact-info-item:hover {
    background: white;
    border-color: var(--persian-green);
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.contact-info-item:hover .contact-icon {
    background: var(--persian-green);
}

.contact-info-item:hover h5,
.contact-info-item:hover p,
.contact-info-item:hover a {
    color: var(--oxford-blue);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--orange-crayola);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    transition: background 0.25s ease;
}

.contact-info-item h5 {
    color: var(--oxford-blue);
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.contact-info-item p,
.contact-info-item a {
    color: var(--oxford-blue);
    font-size: 0.95rem;
    text-decoration: none;
}

    .contact-info-item a:hover {
        color: var(--orange-crayola);
    }

@media (max-width: 991px) {
    .contact-info-card {
        padding: 1.8rem;
    }

    .contact-info-item {
        padding: 1.1rem;
    }

    .contact-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

/* Contact Form Card */
.contact-form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-form-card h2 {
    color: #032240;
    font-family: 'Oswald', sans-serif;
}

.contact-input {
    border: 2px solid #F9F0DF;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

    .contact-input:focus {
        border-color: #E5723A;
        box-shadow: 0 0 0 0.2rem rgba(229, 114, 58, 0.15);
        outline: none;
    }

.form-label {
    color: #032240;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-check-label {
    color: #032240;
    font-size: 0.9rem;
}

.form-check-input:checked {
    background-color: #E5723A;
    border-color: #E5723A;
}

.contact-submit-btn {
    background: linear-gradient(135deg, #E5723A 0%, #E5723A 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 114, 58, 0.3);
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 114, 58, 0.4);
    background: linear-gradient(135deg, #1EA896 0%, #1EA896 100%);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.contact-submit-btn svg {
    transition: transform 0.3s ease;
}

.contact-submit-btn:hover svg {
    transform: translateX(5px);
}

/* Map Container */
.map-container {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

    .map-container h2 {
        color: #032240;
        font-family: 'Oswald', sans-serif;
    }

.map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Responsive Design */
@media (max-width: 991px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .contact-hero .lead {
        font-size: 1.1rem;
    }

    .contact-info-card,
    .contact-form-card,
    .map-container {
        padding: 1.5rem;
    }

    .contact-info-item {
        padding: 1rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

    .contact-submit-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .contact-hero {
        padding: 60px 0 50px;
    }

        .contact-hero h1 {
            font-size: 2rem;
        }

        .contact-hero .lead {
            font-size: 1rem;
        }

    .map-wrapper iframe {
        height: 300px !important;
    }
}

/* Validation Styles */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #28a745;
}

.was-validated .form-check-input:invalid,
.form-check-input.is-invalid {
    border-color: #dc3545;
}

.was-validated .form-check-input:valid,
.form-check-input.is-valid {
    border-color: #28a745;
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback,
.was-validated .form-check-input:invalid ~ .invalid-feedback,
.form-check-input.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Animation for form submission */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#result .alert {
    animation: fadeIn 0.3s ease;
}
