/* Contact Hero Banner */
.contact-hero {
    position: relative;
    width: 100%;
    height: 480px;
    background: url('../images/contactbanner.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Hero Subtitle Styling */
.hero-subtitle {
    font-size: 18px; /* Preserves font size */
    font-weight: 400;
    line-height: 1.5;
    color: #ffffff;
    opacity: 0.95;
    margin-top: 8px;
}

/* Contact Info Image Containers */
.info-card {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 50px;
}

.info-image-wrapper {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps image proportions clean without stretching */
}

/* Semi-transparent dark overlay to ensure text readability */
.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 14, 46, 0.65); /* Matches navy theme color */
}

.hero-overlay {
    position: relative;
    z-index: 1;
    color: #f9fbfc;
    padding: 0 20px;
}

.hero-overlay h1 {
    font-size: 38px;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-overlay p {
    font-size: 18px;
    opacity: 0.9;
}

/* Contact Section Grid */
.contact-section {
    background-color: #f8fafc;
    padding: 60px 8%;
}

.contact-wrapper {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Info Styling */
.contact-info {
    flex: 1;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-info h2 {
    color: #1e3a8a;
    font-size: 26px;
    margin-bottom: 10px;
}

.contact-info > p {
    color: #555;
    font-size: 15px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.info-icon {
    font-size: 24px;
    background: #eff6ff;
    padding: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-details h3 {
    color: #1e3a8a;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 2px; /* Set to 0px - 4px to control the exact gap */
}

/* Split p and a so we can reset paragraph margins properly */
.info-details p {
    color: #555;
    font-size: 15px;
    line-height: 1.3;
    margin-top: 0;    /* Removes default top space above <p> */
    margin-bottom: 0; /* Prevents extra bottom spacing */
}

.info-details a {
    color: #555;
    font-size: 15px;
    text-decoration: none;
    line-height: 1.3;
}

.info-details a:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

/* Form Container */
.form-container {
    flex: 1.5;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-container h2 {
    color: #1e3a8a;
    font-size: 26px;
    margin-bottom: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3a8a;
}

/* Captcha Styling */
.captcha-group label span {
    font-weight: 700;
    color: #1e3a8a;
}

.error-msg {
    display: none;
    color: #dc2626;
    font-size: 13px;
    margin-top: 5px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #1e3a8a;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background-color: #152860;
}

input::placeholder,
textarea::placeholder {
    font-family: 'Arial', sans-serif; /* Replace with your preferred font */
    font-size: 14px;                 /* Adjust placeholder font size */
    color: #94a3b8;                   /* Adjust placeholder color */
    opacity: 1;                       /* Ensures consistent color across browsers like Firefox */
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .contact-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
