/* Contact Page Styles */

.contact-hero {
    min-height: 30vh;
    position: relative;
}

/* Gradient Blend to Page Background */
.contact-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, rgba(0, 31, 51, 0) 0%, #001F33 100%);
    z-index: 2;
    pointer-events: none;
}

/* Designing the column lines overlay for hero */
.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 16.666% 100%;
    /* 6 columns to match design grid */
    z-index: 1;
    pointer-events: none;
}

/* Section spacing */
.contact-section {
    padding: 60px 0 40px;
    background-color: #001F33;
}

/* Form Styles */
.contact-form .form-control,
.contact-form .form-select {
    background-color: var(--wthite-10, rgba(255, 255, 255, 0.10));
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 16px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Avenir', sans-serif;
}

/* Force white chevron for Bootstrap selects on dark background */
.contact-form .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-size: 16px 12px;
}

.contact-form .form-floating {
    margin-bottom: 8px;
}

.contact-form .form-control::placeholder {
    color: transparent;
}

.contact-form .form-floating label {
    color: #fff;
    padding: 16px 20px;
    transition: all 0.3s ease-in-out;
}

.contact-form .form-floating .select-label {
    color: #fff;
    padding: 30px 20px;
    transition: all 0.3s ease-in-out;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--Gold, #D3AD6D);
    box-shadow: none;
    color: #fff;
}

.contact-form .form-control:hover,
.contact-form .form-select:hover {
    border-color: #0045E3;
    background-color: rgba(0, 69, 227, 0.1);
}

/* .contact-form .form-floating>.form-select {
    padding-top: 20px !important;
    padding-bottom: 4px !important;
} */

.contact-form .form-floating>.form-control:focus~label,
.contact-form .form-floating>.form-control:not(:placeholder-shown)~label,
.contact-form .form-floating>.form-select:focus~label,
.contact-form .form-floating>.form-select:not([value=""]):not([value="0"])~label {
    color: #fff;
    opacity: 1;
    background: transparent !important;
    padding: 0 20px !important;
    transform: scale(0.8) translateY(+0.5rem) translateX(0.15rem);
    transition: all 0.3s ease-in-out;
}

.contact-form .form-floating>.form-control:focus~label::after,
.contact-form .form-floating>.form-control:not(:placeholder-shown)~label::after,
.contact-form .form-floating>.form-select~label::after {
    background-color: transparent !important;
    content: none !important;
}

.contact-form option {
    background-color: #001F33;
    color: #fff;
}

.contact-form textarea {
    resize: none;
    min-height: 200px;
}

/* Buttons */
.btn-submit {
    background-color: #0045E3;
    color: #fff;
    padding: 15px;
    border-radius: 999px;
    border: none;
    font-size: 18px;
    font-weight: 800;
    transition: all 0.4s ease-in-out;
}

.btn-submit:hover {
    background-color: #fff;
    color: #000;
    transition: all 0.4s ease-in-out;
}

.btn-reset {
    background-color: transparent;
    color: #fff;
    padding: 15px;
    border-radius: 999px;
    border-radius: 999px;
    border: 1px solid var(--Blue, #0045E3);
    font-size: 18px;
    font-weight: 800;
}

.btn-reset:hover {
    background-color: white;
    color: #000;
    border-color: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease-in-out;
}

/* Image Placeholder Styling */
.contact-placeholder-img {
    background: lightgray 50%;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 16px;
}

.contact-placeholder-img i {
    font-size: 4rem;
    color: #001F33;
    z-index: 2;
}

/* Typography & Layout adjustments for mobile */
.contact-heading {
    font-size: 32px;
    font-weight: 400;
    /* line-height: 1.2; */
    /* margin-bottom: 24px; */
}

.contact-info-text {
    font-size: 20px;
    /* line-height: 1.5; */
    color: rgba(255, 255, 255, 0.8);
    /* margin-bottom: 40px; */
}

@media (min-width: 992px) {
    .contact-heading {
        font-size: 46px;
    }

    .contact-hero {
        min-height: 80vh;
    }

    .contact-section {
        padding: 80px 0 80px;
    }

    .contact-placeholder-img {
        height: 98%;
        margin-top: 0;
    }

    .contact-image-wrapper {
        height: 89%;
    }
}