/* ==========================================================================
   contact-page.css — Contact Us page
   Adds what Contactus.css does not cover: the shared header/footer fixes and
   the contact form's new optional-attachment UI.
   Brand blue: #1D6CB7
   ========================================================================== */

:root {
    --idetep-blue: #1D6CB7;
    --idetep-blue-dark: #145592;
}

/* --------------------------------------------------------------------------
   Announcement bar (replaces the deprecated <marquee> element)
   -------------------------------------------------------------------------- */
.announcement-bar {
    background-color: var(--idetep-blue);
    color: #fff;
    padding: 6px 0;
    overflow: hidden;
    white-space: nowrap;
}

.announcement-bar__track {
    display: inline-block;
    padding-left: 100%;
    animation: announcement-scroll 38s linear infinite;
}

.announcement-bar:hover .announcement-bar__track,
.announcement-bar:focus-within .announcement-bar__track {
    animation-play-state: paused;
}

@keyframes announcement-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
    .announcement-bar {
        white-space: normal;
        text-align: center;
        padding: 8px 16px;
    }
    .announcement-bar__track {
        display: block;
        padding-left: 0;
        animation: none;
    }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .6) 100%);
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero .text {
    font-size: clamp(30px, 5vw, 55px);
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */
.contact-form {
    max-width: 900px;
    margin-inline: auto;
    background-color: #fff;
}

.contact-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    background-color: var(--idetep-blue);
}

.contact-form button:hover,
.contact-form button:focus-visible {
    background-color: var(--idetep-blue-dark);
}

.contact-form button[disabled] {
    opacity: .65;
    cursor: progress;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.contact-form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.req {
    color: #c0392b;
}

/* The attachment really is optional — say so next to the label, not only in
   the help text underneath. */
.optional-tag {
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 20px;
    background-color: #eef3f9;
    color: #4a6785;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Contactus.css uppercases everything inside .contact-form, which is fine for
   short labels but unreadable for a full sentence. */
.field-help,
.attachment-chosen,
.form-status {
    text-transform: none;
}

.field-help {
    margin: -8px 0 12px;
    font-size: 13px;
    line-height: 1.45;
    color: #5a6a7a;
    font-weight: 400;
}

.contact-form input[type="file"] {
    padding: 10px;
    border: 1px dashed #b6c6d8;
    border-radius: 4px;
    background-color: #fafcfe;
    cursor: pointer;
}

.contact-form input[type="file"]:hover {
    border-color: var(--idetep-blue);
}

.attachment-chosen {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 15px;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: #eef3f9;
    font-size: 13px;
    color: #2c3e50;
}

.attachment-chosen[hidden] {
    display: none;
}

.attachment-clear {
    padding: 2px 10px !important;
    min-width: 0 !important;
    border: 1px solid #b6c6d8 !important;
    border-radius: 20px !important;
    background-color: #fff !important;
    color: #4a6785 !important;
    font-size: 12px !important;
    cursor: pointer;
}

.attachment-clear:hover {
    background-color: #e4ebf3 !important;
}

/* reCAPTCHA renders a fixed 304px iframe — let it shrink on small screens
   rather than push the form wider than the viewport. */
.recaptcha-group {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

@media (max-width: 400px) {
    .recaptcha-group > div {
        transform: scale(.85);
        transform-origin: center;
    }
}

.form-status {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.form-status:empty {
    display: none;
}

.form-status--error {
    color: #c0392b;
}

.form-status--success {
    color: #1e7e34;
}

/* --------------------------------------------------------------------------
   Contact details panel
   -------------------------------------------------------------------------- */
.contact-details h2 {
    margin-bottom: 15px;
    font-size: 24px;
    color: #fff;
    font-weight: bold;
}

.contact-details a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .45);
    transition: border-color .2s ease;
}

.contact-details a:hover,
.contact-details a:focus-visible {
    border-bottom-color: #fff;
}

.contact-image img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Interest form modal — scoped so these rules stop leaking site-wide
   -------------------------------------------------------------------------- */
#interestFormModal .modal-content {
    border-radius: 8px;
    padding: 20px;
}

#interestFormModal .modal-header {
    background-color: #fff;
}

#interestFormModal .modal-body {
    max-height: 80vh;
    overflow-y: auto;
}

#interestFormModal .modal-footer {
    background-color: #f8f9fa;
}

#interestFormModal .modal-image {
    min-height: 320px;
    background-image: url('https://idetep.org/images/job-opportunities/person-preparing-get-driver-license_23-2150167587.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

#interestFormModal label {
    padding: 5px;
}

#interestFormModal .form-label {
    font-weight: 500;
}

#interestFormModal .form-control {
    border-radius: 5px;
    box-shadow: none;
}

#interestFormModal .form-check {
    margin-bottom: 1rem;
}

#interestFormModal .form-check-input {
    margin-right: 10px;
}

#interestFormModal .form-check-input:checked {
    background-color: var(--idetep-blue);
    border-color: var(--idetep-blue);
}

#interestFormModal .form-check-label {
    margin-left: 5px;
}

#interestFormModal .mb-3 {
    margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   Misc fixes
   -------------------------------------------------------------------------- */
.navbar .btn-primary,
.mobile-navbar .btn-primary {
    background-color: var(--idetep-blue);
    border-color: var(--idetep-blue);
}

.navbar .btn-primary:hover,
.navbar .btn-primary:focus,
.mobile-navbar .btn-primary:hover,
.mobile-navbar .btn-primary:focus {
    background-color: var(--idetep-blue-dark);
    border-color: var(--idetep-blue-dark);
}

.dropdown a.active,
.dropdown .dropbtn.active {
    color: var(--idetep-blue);
}

/* The two menu parents ("Our Curriculum", "Staff") are <button>s now so they
   are keyboard reachable — strip the native button chrome so they still look
   like the sibling links. */
.dropdown-toggle-plain,
.menu-icon__btn {
    background: none;
    border: 0;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.menu-icon__btn {
    padding: 0;
    color: inherit;
}

.dropdown-toggle-plain:focus-visible,
.menu-icon__btn:focus-visible {
    outline: 2px solid var(--idetep-blue);
    outline-offset: 2px;
}

/* Footer texture overlay */
.backgroundImage {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.backgroundImage::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/background_texture.png') center / cover no-repeat;
    opacity: .1;
    z-index: 1;
    pointer-events: none;
}

.backgroundImage > * {
    position: relative;
    z-index: 1;
}

/* SweetAlert2 tuning carried over from the previous inline styles. */
.swal2-toast {
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
}

.swal2-popup {
    padding: 1em;
}

div:where(.swal2-container) .swal2-select {
    display: none !important;
}
