/* ═══════════════════════════════════════════════════════════════
   RSM Contact Form — UIbuilder Stylesheet
   Chrome tokens match faculty-staff/index.css exactly.
   Exact values from WP Additional CSS where noted.
═══════════════════════════════════════════════════════════════ */

/* ─── RESET ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ─── TOKENS ─────────────────────────────────────────────────── */
:root {
    --rsm-gold: #d19749;
    --rsm-green: #0b6b3a;
    --rsm-blue: #005E85;
    /* exact from WP CSS */
    --rsm-blue-dark: #004a6e;
    --rsm-nav-text: #025e2a;
    /* exact from WP CSS */
    --rsm-nav-hover: #049041;
    /* exact from WP CSS */
    --rsm-dropdown-bg: #005938;
    --rsm-dropdown-hover: #004828;
    /* exact from WP CSS */
    --rsm-footer: #004779;
    --rsm-copyright: #333333;
    --rsm-footer-text: #ffffff;

    --font: 'Nunito Sans', Arial, sans-serif;
    --font-display: 'Nunito Sans', Arial, sans-serif;
    --max-width: 1200px;
    --gutter: 20px;
    --page-zoom: 1.07;
}

/* ─── BASE ───────────────────────────────────────────────────── */
html,
body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    zoom: var(--page-zoom);
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: underline;
}

address {
    font-style: normal;
}

/* ─── UTILITY BAR ────────────────────────────────────────────── */
.utility-bar {
    background-color: var(--rsm-gold);
    padding: 9px 0;
}

.utility-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.utility-lang {
    color: #fff;
    font-size: 12px;
}

.utility-lang a {
    color: #fff;
}

.utility-lang .sep {
    margin: 0 5px;
    opacity: 0.7;
}

.utility-nav {
    display: flex;
    gap: 18px;
}

.utility-nav a {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    transition: color 0.15s;
}

.utility-nav a:hover {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}

/* ─── SITE HEADER ────────────────────────────────────────────── */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    padding: 10px 0;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-logo {
    height: 80px;
    width: auto;
    display: block;
}

/* ─── MAIN NAV ───────────────────────────────────────────────── */
.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-list>li {
    position: relative;
}

.nav-list>li>a {
    display: block;
    padding: 10px 3px;
    color: var(--rsm-nav-text);
    font-size: 14px;
    /* exact from WP CSS */
    font-weight: 530;
    white-space: nowrap;
    transition: color 0.15s;
}

.nav-list>li>a:hover,
.nav-list>li:hover>a {
    color: var(--rsm-nav-hover);
    background: transparent;
    text-decoration: none;
}

.caret {
    display: inline-block;
    font-size: 0;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 5px;
    vertical-align: middle;
    position: relative;
    top: -2px;
    opacity: 0.7;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: var(--rsm-dropdown-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    list-style: none;
}

.dropdown li a {
    display: block;
    padding: 8px 30px;
    /* exact from WP CSS */
    color: #fff;
    font-size: 14px;
    line-height: 1.4em;
    font-weight: 600;
    transition: background 0.1s;
}

.dropdown li a:hover {
    background: var(--rsm-dropdown-hover);
    color: #fff !important;
    text-decoration: none;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    display: block;
}

/* ─── HERO BANNER ────────────────────────────────────────────── */
.hero-banner {
    background-color: var(--rsm-green);
    padding: 50px 0 50px;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.hero-banner h1 {
    color: #fff;
    font-size: 45px;
    /* exact from WP CSS */
    font-weight: 500;
    /* exact from WP CSS */
    font-family: var(--font-display);
    letter-spacing: -1px;
    /* exact from WP CSS */
    font-stretch: semi-condensed;
    /* exact from WP CSS */
    line-height: 1.1;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    font-weight: 400;
    margin-top: 8px;
}

/* ─── CONTENT WRAP ───────────────────────────────────────────── */
.content-wrap {
    padding: 50px 0 70px;
    background: #fff;
}

.content-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ─── STATE MESSAGES ─────────────────────────────────────────── */
#loading,
#not-found,
#error-msg,
#success-msg {
    display: none;
    padding: 20px 0;
}

#loading {
    color: #888;
    font-style: italic;
}

#not-found {
    color: #c00;
}

#error-msg {
    color: #c00;
    margin-top: 12px;
}

#success-msg {
    color: #1a7a1a;
    font-weight: 700;
    font-size: 16px;
    padding: 30px 0;
    text-align: center;
}

/* ─── FORM ───────────────────────────────────────────────────── */
#form-wrap {
    display: none;
}

.form-field {
    margin-bottom: 18px;
}

label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #333;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: var(--font);
    font-size: 14px;
    color: #333;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--rsm-blue);
    box-shadow: 0 0 0 3px rgba(0, 94, 133, 0.12);
}

input::placeholder,
textarea::placeholder {
    color: #aaa;
}

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

button[type="submit"] {
    margin-top: 8px;
    background: var(--rsm-blue);
    color: #fff;
    border: none;
    padding: 13px 32px;
    border-radius: 3px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: background 0.15s;
}

button[type="submit"]:hover {
    background: var(--rsm-blue-dark);
}

button[type="submit"]:disabled {
    background: #999;
    cursor: not-allowed;
}

.recaptcha-notice {
    margin-top: 16px;
    font-size: 11px;
    color: #999;
}

.recaptcha-notice a {
    color: #999;
}

.recaptcha-notice a:hover {
    text-decoration: underline;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--rsm-footer);
    padding: 40px 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.footer-col {
    flex: 1;
    min-width: 0;
}

.footer-logo-col {
    flex: 0 0 180px;
}

.footer-logo {
    height: 48px;
    width: auto;
    display: block;
    margin-bottom: 12px;
}

.footer-lang {
    font-size: 12px;
    color: var(--rsm-footer-text);
}

.footer-lang a {
    color: var(--rsm-footer-text);
}

.footer-lang .sep {
    opacity: 0.6;
}

.footer-col h4 {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.footer-col address {
    font-size: 13px;
    color: var(--rsm-footer-text);
    line-height: 1.7;
}

.footer-col address a {
    color: var(--rsm-footer-text);
}

.footer-col address a:hover {
    text-decoration: underline;
}

.footer-col p {
    font-size: 13px;
    color: var(--rsm-footer-text);
    line-height: 1.6;
}

/* ─── COPYRIGHT ──────────────────────────────────────────────── */
.copyright-bar {
    background: var(--rsm-copyright);
    padding: 11px 20px;
    text-align: center;
    font-size: 12px;
    color: #fff;
}

.copyright-bar a {
    color: #fff;
}

.copyright-bar a:hover {
    text-decoration: underline;
}

.copyright-bar .sep {
    margin: 0 4px;
    opacity: 0.5;
}

/* ─── HAMBURGER (hidden on desktop) ─────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 10000;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--rsm-nav-text);
    border-radius: 2px;
    transition: background 0.15s;
}

.hamburger:hover span {
    background: var(--rsm-nav-hover);
}

/* ─── MOBILE ─────────────────────────────────────────────────── */
@media (max-width: 1240px) {

    html,
    body {
        zoom: 1;
    }

    .utility-bar {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .site-header {
        position: relative;
        z-index: 10000;
        background: #fff;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 113px;
        left: 5%;
        width: 90%;
        max-width: 420px;
        height: calc(100% - 113px);
        background: #fff;
        z-index: 9998;
        overflow-y: auto;
        padding: 0 0 40px;
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.18);
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .main-nav.nav-open {
        display: block;
        opacity: 1;
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-list>li>a {
        padding: 14px 20px;
        font-size: 15px;
        font-weight: 700;
        color: var(--rsm-nav-text);
        background: #f0f0f0;
        border-bottom: 1px solid #ddd;
        display: block;
    }

    .nav-list>li>a:hover {
        color: var(--rsm-nav-hover);
        background: #e8e8e8;
    }

    .caret {
        display: none;
    }

    .dropdown {
        display: block;
        position: static;
        background: #fff;
        box-shadow: none;
        width: 100%;
        min-width: 0;
    }

    .dropdown li a {
        padding: 12px 20px 12px 32px;
        font-size: 15px;
        font-weight: 600;
        color: var(--rsm-nav-text);
        border-bottom: 1px solid #eee;
        background: #fff;
    }

    .dropdown li a:hover {
        background: #f5f5f5;
        color: var(--rsm-nav-hover);
    }

    /* Hero */
    .hero-banner {
        padding: 30px 0 35px;
    }

    .hero-banner h1 {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    /* Form stays centered — just ensure full width inputs */
    .content-inner {
        max-width: 100%;
        padding: 0 16px;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        gap: 24px;
    }

    .footer-logo-col {
        flex: none;
        width: 100%;
    }
}