:root {
    --primary: #152238;
    --primary-mid: #1c2e4a;
    --primary-deep: #0f1a2e;
    --primary-light: #253d5e;
    --accent: #0ECCCA;
    --accent-glow: #2EF0EE;
    --accent-deep: #0AB4D8;
    --accent-soft: rgba(14, 204, 202, 0.12);
    --accent-gradient: linear-gradient(135deg, #0ECCCA 0%, #0AB4D8 100%);
    --warm: #FCA500;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-tertiary: #718096;
    --text-white: #edf3fd;
    --bg-white: #FFFFFF;
    --bg-off-white: #FAFBFC;
    --bg-light: #F7F9FC;
    --bg-subtle: #EDF2F7;
    --border-light: #E2E8F0;
    --border-mid: #CBD5E0;
    --header-bg: #edf3fd;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 4px rgba(11,61,145,0.06), 0 1px 2px rgba(11,61,145,0.04);
    --shadow-md: 0 4px 8px rgba(11,61,145,0.08), 0 2px 4px rgba(11,61,145,0.04);
    --shadow-lg: 0 12px 24px rgba(11,61,145,0.1), 0 4px 8px rgba(11,61,145,0.06);
    --shadow-xl: 0 24px 48px rgba(11,61,145,0.12), 0 12px 24px rgba(11,61,145,0.08);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes muse-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes muse-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(14, 204, 202, 0.5); }
    50%      { box-shadow: 0 0 0 7px rgba(14, 204, 202, 0); }
}
@keyframes muse-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(0, -16px, 0); }
}

/* Visible unless the reveal script is running, so a blocked or slow script never leaves a blank page. */
.muse-reveal { opacity: 1; }
.js-reveal .muse-reveal { opacity: 0; }
.js-reveal .muse-reveal.is-visible { animation: muse-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.15s; }
.delay-3 { animation-delay: 0.28s; }
.delay-4 { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .js-reveal .muse-reveal { opacity: 1; }
}

.apply-decoy {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.public-apply-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--bg-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.apply-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.public-flash {
    padding: 14px 24px;
    font-size: 0.9rem;
    text-align: center;
    font-family: 'Inter', sans-serif;
}
.public-flash-success { background-color: #d4edda; color: #155724; }
.public-flash-error   { background-color: #f8d7da; color: #721c24; }
.public-flash-warning { background-color: #fff3cd; color: #856404; }
.public-flash-info    { background-color: #d1ecf1; color: #0c5460; }

.apply-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 24px;
}
.apply-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.apply-logo {
    height: 48px;
    width: auto;
    display: block;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid var(--border-mid);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
}
.btn-outline:hover {
    border-color: var(--primary);
    background: var(--bg-light);
    color: var(--primary);
    text-decoration: none;
}
.btn-outline:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 15px 28px;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    background: linear-gradient(135deg, #0ECCCA 0%, #0AB4D8 100%);
    color: #062a31;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(14, 204, 202, 0.35);
    transition: all var(--transition-base);
}
.btn-accent:hover {
    background: linear-gradient(135deg, #2EF0EE 0%, #0ECCCA 100%);
    box-shadow: 0 12px 34px rgba(14, 204, 202, 0.5);
    transform: translateY(-2px);
    color: #062a31;
    text-decoration: none;
}
.btn-accent i { transition: transform var(--transition-base); }
.btn-accent:hover i { transform: translateX(4px); }
.btn-accent:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.btn-full { width: 100%; }

.apply-hero-section {
    position: relative;
    overflow: hidden;
    background: var(--primary-deep);
    padding: 88px 24px 80px;
    flex: 1;
}
.apply-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 520px at 82% 12%, rgba(14, 204, 202, 0.20), transparent 60%),
        radial-gradient(680px 480px at 8% 92%, rgba(252, 165, 0, 0.10), transparent 55%),
        linear-gradient(180deg, #1b2e4c 0%, #13223a 55%, #0f1a2e 100%);
    z-index: 0;
}
.apply-hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 55% 25%, #000 35%, transparent 75%);
    mask-image: radial-gradient(ellipse 75% 65% at 55% 25%, #000 35%, transparent 75%);
    z-index: 0;
}
.apply-hero-section .apply-container {
    position: relative;
    z-index: 1;
}

.apply-hero-text {
    color: var(--text-white);
    padding-right: 40px;
}
@media (max-width: 991.98px) {
    .apply-hero-text {
        padding-right: 0;
        margin-top: 44px;
    }
}

.apply-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 12px;
    border-radius: 999px;
    background: rgba(14, 204, 202, 0.10);
    border: 1px solid rgba(14, 204, 202, 0.30);
    color: var(--text-white);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 28px;
    backdrop-filter: blur(6px);
}
.apply-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: muse-pulse 2.4s ease-in-out infinite;
}

.apply-hero-text h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--text-white);
    margin-bottom: 22px;
}
.apply-h1-accent {
    background: linear-gradient(120deg, #0ECCCA 0%, #2EF0EE 45%, #0AB4D8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
@media (max-width: 767.98px) {
    .apply-hero-text h1 { font-size: 2.4rem; }
}

.apply-lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(237, 243, 253, 0.78);
    margin-bottom: 40px;
    max-width: 30em;
}

.apply-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
}
.apply-steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    position: relative;
}
.apply-steps-list li:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: -28px;
    width: 2px;
    background: linear-gradient(180deg, rgba(14, 204, 202, 0.45), rgba(14, 204, 202, 0.04));
}
.apply-step-num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(14, 204, 202, 0.12);
    border: 1px solid rgba(14, 204, 202, 0.45);
    box-shadow: 0 0 0 4px rgba(14, 204, 202, 0.05), 0 0 22px rgba(14, 204, 202, 0.22);
    color: var(--accent-glow);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.apply-step-body { padding-top: 6px; }
.apply-step-body h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    color: var(--text-white);
    margin: 0 0 4px;
}
.apply-step-body p {
    color: rgba(237, 243, 253, 0.62);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
}

.apply-rate-card {
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(237, 243, 253, 0.1);
}
.apply-rate-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--text-white);
    margin: 0 0 6px;
}
.apply-rate-sub {
    color: rgba(237, 243, 253, 0.62);
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 0 18px;
}
.apply-rate-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(237, 243, 253, 0.08);
}
.apply-rate-band + .apply-rate-band { margin-top: 10px; }
.apply-rate-band.is-featured {
    background: rgba(252, 165, 0, 0.08);
    border-color: rgba(252, 165, 0, 0.38);
}
.apply-rate-range {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-white);
}
.apply-rate-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(237, 243, 253, 0.78);
    white-space: nowrap;
}
.apply-rate-band.is-featured .apply-rate-value { color: var(--warm); }

.apply-form-card {
    position: relative;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow:
        0 30px 70px -20px rgba(5, 12, 28, 0.55),
        0 0 60px rgba(14, 204, 202, 0.12);
    padding: 36px;
    overflow: hidden;
}
.apply-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ECCCA 0%, #0AB4D8 55%, #FCA500 100%);
}
.apply-card-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.55rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.apply-card-sub {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    margin-bottom: 26px;
}

.apply-form-card .form-group { margin-bottom: 18px; }
.apply-form-card .form-group label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: block;
}
.apply-form-card .form-control {
    height: auto;
    min-height: 48px;
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-md);
    padding: 11px 14px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.apply-form-card .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
    outline: none;
}
.apply-form-card .form-check-label { color: var(--text-secondary); }

.apply-card-rate {
    display: inline-block;
    background: var(--accent-soft);
    border: 1px solid rgba(14, 204, 202, 0.35);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.apply-card-reassurance {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 0;
    margin: 0 0 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.apply-card-reassurance li { position: relative; padding-left: 18px; }
.apply-card-reassurance li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.apply-gate-question {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* A thirteen pixel radio is not a tap target, and this is the first thing a phone visitor must hit. */
.apply-choice-row {
    display: flex;
    gap: 12px;
}
.apply-choice {
    flex: 1 1 0;
    margin: 0;
    cursor: pointer;
}
.apply-choice-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.apply-choice-face {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border: 1.5px solid var(--border-mid);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    transition: border-color var(--transition-base), background var(--transition-base);
}
.apply-choice-face:hover { border-color: var(--accent); }
.apply-choice-input:checked + .apply-choice-face {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.apply-choice-input:focus-visible + .apply-choice-face {
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.CookieMonsterBox .btn {
    min-height: 44px;
    padding: 10px 20px;
}

.apply-footer-legal a {
    display: inline-block;
    padding: 10px 2px;
}

/* The cookie notice is fixed over the bottom of the screen, which on a phone is where the step button sits. */
@media (max-width: 767.98px) {
    .CookieMonsterBox {
        left: 12px !important;
        right: 12px !important;
        bottom: 12px !important;
        width: auto !important;
        max-width: none !important;
    }
    .public-apply-body { padding-bottom: 150px; }
}

.apply-step-count {
    float: right;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0;
    text-transform: none;
}

.apply-form-error-summary {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #b13c34;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}
.apply-field-error {
    color: #c0392b;
    font-size: 0.8rem;
    margin-top: 5px;
}
.has-error .form-control {
    border-color: #c0392b;
}
.has-error .form-control:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}
.apply-step-next { margin-top: 8px; }

.apply-trade-gate {
    background: linear-gradient(135deg, rgba(14, 204, 202, 0.07), rgba(14, 204, 202, 0.02));
    border: 1px solid rgba(14, 204, 202, 0.25);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 22px;
}
.apply-trade-gate label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

#apply-decline-notice {
    background: #fff8ec;
    border: 1px solid var(--warm);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 16px;
}
#apply-decline-notice p {
    margin-bottom: 0;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.apply-form-section-label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin: 22px 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.apply-form-section-label::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 2px;
    background: var(--accent);
    flex-shrink: 0;
}

.form-group { position: relative; }

#apply-company-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 20;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    margin-top: 4px;
}
.apply-suggestion-item {
    padding: 11px 14px;
    cursor: pointer;
    transition: background var(--transition-base);
}
.apply-suggestion-item:hover,
.apply-suggestion-item.active { background: var(--bg-light); }
.apply-suggestion-name { font-weight: 600; color: var(--text-primary); }
.apply-suggestion-meta { font-size: 0.85rem; color: var(--text-tertiary); margin-top: 2px; }
.apply-suggestion-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}
.apply-suggestion-loading i { color: var(--accent); }

.apply-company-selected {
    background: linear-gradient(135deg, rgba(14, 204, 202, 0.10), rgba(14, 204, 202, 0.03));
    border: 1px solid rgba(14, 204, 202, 0.40);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 18px;
}
.apply-selected-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.apply-selected-name i { color: var(--accent); margin-right: 6px; }
.apply-selected-row { font-size: 0.85rem; color: var(--text-secondary); margin-top: 2px; }
.apply-selected-change {
    margin-top: 4px;
    padding: 12px 0;
    min-height: 44px;
    border: none;
    background: none;
    color: var(--accent-deep);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
}
.apply-selected-change:hover { color: var(--primary); }

#apply-proceed-btn { margin-top: 8px; }
.apply-form-reassure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 14px 0 0;
    font-size: 0.82rem;
    color: var(--text-tertiary);
}
.apply-form-reassure i { color: var(--accent); }

.public-footer-navy {
    background: var(--primary);
    color: var(--text-white);
    padding: 60px 24px 64px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}
.apply-footer-content {
    max-width: 1200px;
    margin: 0 auto;
}
.apply-footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: 20px;
    display: block;
}
.apply-footer-brand p {
    max-width: 600px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 0;
}
.apply-footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.apply-footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-base);
}
.apply-footer-socials a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
}
.apply-security-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.apply-security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    text-decoration: none;
}
.apply-security-badge i {
    color: var(--accent);
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.apply-security-badge-link { cursor: pointer; transition: opacity var(--transition-base); }
.apply-security-badge-link:hover { opacity: 0.8; }
.apply-footer-regulatory {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
}
.apply-footer-regulatory p {
    font-size: 0.75rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}
.apply-footer-bottom {
    max-width: 1200px;
    margin: 24px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
    gap: 16px;
}
.apply-footer-legal { display: flex; gap: 28px; flex-wrap: wrap; }
.apply-footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color var(--transition-base);
}
.apply-footer-legal a:hover { color: var(--text-white); }

.apply-notice-card { max-width: 560px; margin: 0 auto; text-align: center; }
.apply-notice-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; }

@media (max-width: 575.98px) {
    .apply-hero-section { padding: 56px 0; }
    .apply-hero-text h1 { font-size: 2.1rem; }
    .apply-container { padding: 0 16px; }
    .apply-form-card { padding: 26px 16px; }
    .apply-footer-bottom { flex-direction: column; align-items: flex-start; }
}
