/* Contact Page Specific Styles */

/* Contact Hero Section */
.contact-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 80px;
    /* Account for fixed navbar */
}

.contact-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.contact-hero .hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.contact-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0E4F8E;
    /* Brand colors */
    z-index: -1;
}

.contact-hero .hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: white;
    z-index: 1;
}

.contact-hero .hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: fadeInUp 0.8s ease-out;
}

.contact-hero .hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    background: #ffffff;
}

.form-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.form-content {
    background: #ffffff;
    padding: 20px 0;
}

.section-header h2 {
    color: #0E4F8E;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

/* Modern Form Styles */
.contact-form {
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

/* Floating Labels */
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 0;
    font-size: 1rem;
    color: #333;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    background: transparent;
    outline: none;
    transition: all 0.3s ease;
    border-radius: 0;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 1rem;
    color: #888;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown),
.form-group select:valid {
    border-bottom-color: #0E4F8E;
}

.form-group input:focus~label,
.form-group textarea:focus~label,
.form-group select:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:not(:placeholder-shown)~label,
.form-group select:valid~label {
    top: -10px;
    font-size: 0.85rem;
    color: #0E4F8E;
    font-weight: 500;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

/* Custom dropdown arrow if needed, but border-bottom style works well cleanly */

.submit-btn {
    padding: 18px 40px;
    background-color: #0E4F8E;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 79, 142, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: #0a3d70;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 79, 142, 0.4);
}

/* Sidebar Info */
.form-sidebar {
    padding-top: 20px;
}

.sidebar-card {
    background: #0E4F8E;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.sidebar-card h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 30px;
}

.contact-info-list {
    list-style: none;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    color: white;
}

.contact-info-item i {
    color: #bacee2;
    font-size: 1.2rem;
    margin-top: 5px;
    margin-right: 15px;
    width: 25px;
}

.contact-info-item div p {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #333;
}

.contact-info-item div span {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    animation: fadeInDown 0.5s ease-out;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert i {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 900px) {
    .form-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-hero .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}