/* ==========================================================================
   Contact Us — contact.php
   Same palette and type as the Faculty and Our Graduates pages.
   Everything is scoped under .ct so it cannot leak into the shared header,
   footer or the Bootstrap 3 / style-v1.css rules used on the rest of the site.
   ========================================================================== */

.ct {
    --ct-navy: #243a73;
    --ct-navy-deep: #1a2b57;
    --ct-navy-soft: #eef1f8;
    --ct-gold: #faa619;
    --ct-gold-soft: #fbe3b3;
    --ct-gold-wash: #fff6e6;
    --ct-gold-text: #9a5b00;
    --ct-green: #2f6b4f;
    --ct-green-soft: #e8f3ed;
    --ct-red: #a33a2c;
    --ct-red-soft: #fbecea;
    --ct-ink: #1c2541;
    --ct-text: #3d4458;
    --ct-muted: #586074;
    --ct-line: #e6e3da;
    --ct-field: #d9d5ca;
    --ct-cream: #faf8f3;
    --ct-card: #ffffff;
    --ct-radius: 14px;
    --ct-shadow: 0 1px 2px rgba(28, 37, 65, .04), 0 2px 8px rgba(28, 37, 65, .04);
    --ct-shadow-hover: 0 4px 10px rgba(28, 37, 65, .06), 0 14px 32px rgba(28, 37, 65, .08);
    --ct-serif: "Noto Serif", Georgia, "Times New Roman", serif;
    --ct-sans: "Open Sans", "Segoe UI", Arial, sans-serif;

    display: block;
    background: var(--ct-cream);
    color: var(--ct-text);
    font-family: var(--ct-sans);
    font-size: 15px;
    font-weight: 400;
    /* style-v1.css sets body line-height in em, which would inherit as a fixed px value */
    line-height: 1.6;
}

/* style-v1.css paints #content white with no padding, and its id selector outranks .ct */
#content.ct {
    padding: 8px 0 72px;
    background: var(--ct-cream);
}

/* The hero's bottom margin would otherwise show as a white band above the cream page */
.ph {
    margin-bottom: 0;
}

.ct *,
.ct *::before,
.ct *::after {
    box-sizing: border-box;
}

.ct h1,
.ct h2,
.ct h3,
.ct h4 {
    margin: 0;
    font-family: var(--ct-serif);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ct-ink);
}

.ct p {
    margin: 0;
}

.ct a {
    color: var(--ct-navy);
}

.ct :focus-visible {
    outline: 3px solid var(--ct-gold);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Quick contact cards
   -------------------------------------------------------------------------- */

.ct-quick {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.ct .ct-quick__card {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    padding: 20px 22px;
    background: var(--ct-card);
    border: 1px solid var(--ct-line);
    border-radius: var(--ct-radius);
    box-shadow: var(--ct-shadow);
    color: var(--ct-text);
    text-decoration: none;
    transition: box-shadow .25s, transform .25s, border-color .25s;
}

.ct .ct-quick__card:hover,
.ct .ct-quick__card:focus {
    border-color: #d8d3c4;
    box-shadow: var(--ct-shadow-hover);
    transform: translateY(-2px);
    text-decoration: none;
}

.ct-quick__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--ct-navy);
    color: var(--ct-gold);
    font-size: 20px;
}

.ct-quick__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ct-quick__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ct-gold-text);
}

.ct-quick__value {
    font-family: var(--ct-serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ct-ink);
    overflow-wrap: anywhere;
}

.ct-quick__hint {
    font-size: 13px;
    color: var(--ct-muted);
}

/* --------------------------------------------------------------------------
   Layout + cards
   -------------------------------------------------------------------------- */

.ct-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: 32px;
}

.ct-card {
    padding: 30px;
    background: var(--ct-card);
    border: 1px solid var(--ct-line);
    border-radius: var(--ct-radius);
    box-shadow: var(--ct-shadow);
}

.ct-card--tint {
    background: linear-gradient(180deg, var(--ct-gold-wash) 0, var(--ct-card) 140px);
    border-color: var(--ct-gold-soft);
    border-top: 3px solid var(--ct-gold);
}

.ct-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ct .ct-heading {
    position: relative;
    padding-left: 16px;
    font-size: clamp(22px, 2.6vw, 27px);
}

.ct .ct-heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    bottom: .2em;
    width: 4px;
    border-radius: 2px;
    background: var(--ct-gold);
}

.ct .ct-heading--sm {
    font-size: 19px;
    margin-bottom: 18px;
}

.ct-intro {
    margin: 6px 0 22px 16px !important;
    font-size: 14px;
    color: var(--ct-muted);
}

.ct-req {
    color: var(--ct-red);
}

/* --------------------------------------------------------------------------
   Status alert
   -------------------------------------------------------------------------- */

.ct-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
}

.ct-alert .fa {
    margin-top: 3px;
    font-size: 18px;
}

.ct-alert--success {
    background: var(--ct-green-soft);
    border-color: #b9dcc8;
    color: var(--ct-green);
}

.ct-alert--error {
    background: var(--ct-red-soft);
    border-color: #efc3bd;
    color: var(--ct-red);
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

.ct-form {
    margin: 0;
}

.ct-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.ct-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ct-field--full {
    grid-column: 1 / -1;
}

.ct .ct-form label {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ct-ink);
}

.ct .ct-form input,
.ct .ct-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--ct-field);
    border-radius: 10px !important;
    background: #fff;
    color: var(--ct-ink);
    font: inherit;
    font-size: 15px;
    line-height: 1.5;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s, box-shadow .2s;
}

.ct .ct-form textarea {
    min-height: 150px;
    resize: vertical;
}

.ct .ct-form input::placeholder,
.ct .ct-form textarea::placeholder {
    color: #8a90a0;
}

.ct .ct-form input:hover,
.ct .ct-form textarea:hover {
    border-color: #bfb9aa;
}

.ct .ct-form input:focus,
.ct .ct-form textarea:focus {
    outline: none;
    border-color: var(--ct-navy);
    box-shadow: 0 0 0 3px rgba(36, 58, 115, .14);
}

/* Only flag a field as invalid once the visitor has left it or tried to send */
.ct .ct-form .is-touched:invalid {
    border-color: var(--ct-red);
    box-shadow: 0 0 0 3px rgba(163, 58, 44, .1);
}

.ct-count {
    align-self: flex-end;
    margin-top: 6px !important;
    font-size: 12px;
    color: var(--ct-muted);
    font-variant-numeric: tabular-nums;
}

.ct-captcha {
    margin-top: 22px;
    padding: 18px;
    background: var(--ct-cream);
    border: 1px dashed var(--ct-line);
    border-radius: 12px;
}

.ct-hint {
    margin: -2px 0 12px !important;
    font-size: 13px;
    color: var(--ct-muted);
}

.ct-captcha__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ct-captcha__row img {
    display: block;
    width: 120px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
}

.ct .ct-captcha__row input {
    flex: 1 1 160px;
    width: auto;
    max-width: 260px;
    letter-spacing: .12em;
}

.ct .ct-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--ct-field);
    border-radius: 10px !important;
    background: #fff;
    color: var(--ct-navy);
    font-size: 17px;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}

.ct .ct-icon-btn:hover {
    border-color: var(--ct-navy);
    background: var(--ct-navy-soft);
}

.ct-icon-btn.is-spinning .fa {
    animation: ct-spin .6s linear;
}

@keyframes ct-spin {
    to {
        transform: rotate(360deg);
    }
}

.ct-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.ct .ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 28px;
    border: 1px solid var(--ct-navy);
    border-radius: 999px !important;
    background: var(--ct-navy);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, opacity .2s;
}

.ct .ct-btn:hover,
.ct .ct-btn:focus {
    background: var(--ct-navy-deep);
    border-color: var(--ct-navy-deep);
    color: #fff;
}

.ct .ct-btn[disabled] {
    opacity: .7;
    cursor: progress;
}

.ct .ct-btn .fa {
    color: var(--ct-gold);
}

/* --------------------------------------------------------------------------
   Sidebar: campuses + quick links
   -------------------------------------------------------------------------- */

.ct-campuses {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ct-campus + .ct-campus {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--ct-line);
}

.ct .ct-campus__name {
    margin-bottom: 4px;
    font-family: var(--ct-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ct-gold-text);
}

.ct .ct-campus__address {
    margin: 0 0 8px;
    font-size: 15px;
    font-style: normal;
    line-height: 1.6;
    color: var(--ct-ink);
}

.ct .ct-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(36, 58, 115, .25);
}

.ct .ct-link:hover,
.ct .ct-link:focus {
    text-decoration: none;
    border-bottom-color: var(--ct-gold);
}

.ct .ct-link .fa {
    font-size: 12px;
}

.ct-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ct .ct-links a {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 12px 40px 12px 14px;
    border: 1px solid var(--ct-line);
    border-radius: 10px;
    background: var(--ct-card);
    text-decoration: none;
    transition: border-color .2s, background-color .2s;
}

.ct .ct-links a::after {
    content: "›";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    line-height: 1;
    color: var(--ct-gold-text);
    transition: transform .2s;
}

.ct .ct-links a:hover,
.ct .ct-links a:focus {
    border-color: var(--ct-navy);
    text-decoration: none;
}

.ct .ct-links a:hover::after {
    transform: translate(3px, -50%);
}

.ct-links strong {
    font-size: 15px;
    color: var(--ct-ink);
}

.ct-links span {
    font-size: 13px;
    color: var(--ct-muted);
}

/* --------------------------------------------------------------------------
   Map
   -------------------------------------------------------------------------- */

.ct-map {
    margin-top: 48px;
}

.ct-map .ct-heading {
    margin-bottom: 18px;
}

.ct-map__frame {
    overflow: hidden;
    height: 420px;
    background: var(--ct-navy-soft);
    border: 1px solid var(--ct-line);
    border-radius: var(--ct-radius);
    box-shadow: var(--ct-shadow);
}

.ct-map__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .ct-quick {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .ct-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    #content.ct {
        padding-bottom: 56px;
    }

    .ct-quick {
        margin-top: 24px;
    }

    .ct .ct-quick__card {
        padding: 16px 18px;
    }

    .ct-card {
        padding: 22px 18px;
    }

    .ct-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ct-captcha {
        padding: 14px;
    }

    .ct-actions {
        justify-content: stretch;
    }

    .ct .ct-btn {
        width: 100%;
    }

    .ct-map {
        margin-top: 36px;
    }

    .ct-map__frame {
        height: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ct *,
    .ct *::before,
    .ct *::after {
        transition: none !important;
        animation: none !important;
    }

    .ct .ct-quick__card:hover,
    .ct .ct-quick__card:focus {
        transform: none;
    }
}
