/* ==========================================================================
   KYC Application - kyc.css
   Project-wide theme. The only stylesheet the site loads (no Bootstrap). Colors and fonts follow coleintl.com:
     Navy   #01426A  (headings, header text)
     Blue   #298FC2  (primary actions, links - "Contact Us" button)
     Orange #FF8300  (call-to-action - "Get a Quote" button)
     Slate  #5D6167  (body text)
   Fonts: Quicksand (headings), Open Sans (body)
   Mobile-first: base styles target phones, media queries widen for tablet/desktop.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
    /* Brand */
    --kyc-navy: #01426a;
    --kyc-navy-dark: #012f4c;
    --kyc-blue: #298fc2;
    --kyc-blue-dark: #1f6a90;
    --kyc-orange: #ff8300;
    --kyc-orange-dark: #d96f00;
    --kyc-gold: #fbcd33;

    /* Neutrals */
    --kyc-text: #272e39;
    --kyc-muted: #5d6167;
    --kyc-border: #d7dde3;
    --kyc-border-light: #f1f4f7;
    --kyc-bg: #f5f7fa;
    --kyc-surface: #ffffff;

    /* Status */
    --kyc-error: #c62828;
    --kyc-error-bg: #fdecea;
    --kyc-error-border: #f5c2c0;
    --kyc-success: #2e7d32;
    --kyc-success-bg: #edf7ee;
    --kyc-success-border: #c3e6c5;
    --kyc-warning: #8a5a00;
    --kyc-warning-bg: #fff4e5;
    --kyc-warning-border: #ffd8a8;
    --kyc-info: var(--kyc-navy);
    --kyc-info-bg: #e8f3f9;
    --kyc-info-border: #bfdcec;

    /* Shape & spacing */
    --kyc-radius-sm: 5px;          /* matches the site's buttons */
    --kyc-radius: 8px;
    --kyc-radius-lg: 14px;
    --kyc-focus: 0 0 0 4px rgba(41, 143, 194, 0.22);
    --kyc-shadow: 0 1px 3px rgba(1, 66, 106, 0.06), 0 8px 24px rgba(1, 66, 106, 0.08);
    --kyc-gutter: 16px;
    --kyc-max-width: 1200px;

    /* Type */
    --kyc-font-heading: "Quicksand", "Segoe UI", Arial, sans-serif;
    --kyc-font-body: "Open Sans", "Segoe UI", Arial, sans-serif;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--kyc-font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--kyc-text);
    background: var(--kyc-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ASP.NET wraps everything in one <form>; let it fill the page so the footer sits at the bottom */
body > form { display: flex; flex-direction: column; flex: 1; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--kyc-font-heading);
    color: var(--kyc-navy);
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 .5em;
}
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 19px; }

p { margin: 0 0 1em; }

a { color: var(--kyc-blue); text-decoration: none; }
a:hover { color: var(--kyc-blue-dark); text-decoration: underline; }

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

button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--kyc-blue); outline-offset: 2px; }

/* ---------- 3. Layout: header, nav, main, footer ---------- */
.kyc-container {
    width: 100%;
    max-width: var(--kyc-max-width);
    margin: 0 auto;
    padding: 0 var(--kyc-gutter);
}

.kyc-site-header {
    background: var(--kyc-surface);
    border-bottom: 3px solid var(--kyc-orange);
    position: sticky;
    top: 0;
    z-index: 100;
}

.kyc-site-header .kyc-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    min-height: 64px;
    position: relative;
    gap: 8px;
}

.kyc-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--kyc-font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--kyc-navy);
}
.kyc-brand:hover { text-decoration: none; color: var(--kyc-navy); }

/* Header logo (kyc-logo-primary-1200.png, 1200x436).
   The width/height attributes on the <img> reserve space so the page doesn't jump while it loads;
   these rules scale it down to header size. */
.kyc-brand img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 60vw;
    padding: 6px 0;
    box-sizing: content-box;
}

/* Mobile nav: hidden behind a toggle; desktop: inline */
.kyc-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: transparent;
    border: 1px solid var(--kyc-border);
    border-radius: var(--kyc-radius-sm);
    color: var(--kyc-navy);
    font-size: 20px;
    cursor: pointer;
}

.kyc-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 8px 0 12px;
}
.kyc-nav.is-open { display: flex; }

.kyc-nav a {
    color: var(--kyc-navy);
    font-weight: 600;
    padding: 10px 4px;
    border-top: 1px solid var(--kyc-border-light);
}
.kyc-nav a:hover,
.kyc-nav a.is-active { color: var(--kyc-blue); text-decoration: none; }

.kyc-main {
    flex: 1;
    padding: 24px 0 40px;
}

.kyc-site-footer {
    background: var(--kyc-navy);
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
    padding: 20px 0;
}
.kyc-site-footer a { color: #fff; }

/* Page title band (optional, for content pages) */
.kyc-page-header { margin-bottom: 20px; }
.kyc-page-header p { color: var(--kyc-muted); margin: 0; }

/* ---------- 4. Grid helpers ---------- */
.kyc-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }

.kyc-row { display: flex; flex-direction: column; gap: 0; }
.kyc-row > * { flex: 1; min-width: 0; }

/* ---------- 5. Cards ---------- */
.kyc-card {
    background: var(--kyc-surface);
    border-radius: var(--kyc-radius-lg);
    box-shadow: var(--kyc-shadow);
    padding: 24px 20px;
}

.kyc-card-narrow { max-width: 540px; margin: 0 auto; }
.kyc-card-medium { max-width: 820px; margin: 0 auto; }

.kyc-card-header { text-align: center; margin-bottom: 20px; }
.kyc-card-header p { color: var(--kyc-muted); font-size: 14px; margin: 0; }

.kyc-logo {
    width: 52px; height: 52px;
    margin: 0 auto 14px;
    border-radius: 12px;
    background: var(--kyc-navy);
    color: #fff;
    font-family: var(--kyc-font-heading);
    font-weight: 700;
    font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}

.kyc-section-title {
    font-family: var(--kyc-font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--kyc-navy);
    margin: 22px 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--kyc-border-light);
}

/* ---------- 6. Forms ---------- */
.kyc-field { margin-bottom: 16px; }

.kyc-field label,
.kyc-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--kyc-text);
    margin-bottom: 6px;
}

.kyc-input {
    display: block;
    width: 100%;
    min-height: 46px;               /* comfortable tap target on phones */
    padding: 10px 12px;
    font-family: inherit;
    font-size: 16px;                /* 16px stops iOS zooming into fields */
    color: var(--kyc-text);
    background: var(--kyc-surface);
    border: 1px solid var(--kyc-border);
    border-radius: var(--kyc-radius-sm);
    max-width: none;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
.kyc-input::placeholder { color: #9aa1a9; }
.kyc-input:focus { outline: none; border-color: var(--kyc-blue); box-shadow: var(--kyc-focus); }
.kyc-input:disabled, .kyc-input[readonly] { background: var(--kyc-bg); color: var(--kyc-muted); }

textarea.kyc-input { min-height: 110px; resize: vertical; }

.kyc-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2301426a' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Checkbox / radio lists (asp:CheckBox, asp:RadioButtonList)
   ".kyc-field .kyc-check" repeats the rule with higher specificity so a checkbox inside a form field isn't turned into a
   bold block by ".kyc-field label" (which is meant for field labels like "First name"). */
.kyc-check,
.kyc-field .kyc-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 400; margin-bottom: 0; line-height: 1.45; cursor: pointer; }
.kyc-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--kyc-blue); }
.kyc-check > span:last-child { flex: 1; min-width: 0; }   /* the text wraps instead of running off the edge */

/* Option lists: asp:RadioButtonList / asp:CheckBoxList with RepeatLayout="UnorderedList" CssClass="kyc-choices".
   Each <li> holds one input and its label side by side. The label rule overrides ".kyc-field label",
   which makes field labels block-level (that's what pushed option text under the button). */
.kyc-choices { list-style: none; padding: 0; margin: 6px 0 4px; display: grid; gap: 10px; }
.kyc-choices li { display: flex; align-items: flex-start; gap: 10px; }
.kyc-choices input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--kyc-blue); }
.kyc-field .kyc-choices label { display: inline; margin: 0; font-weight: 400; line-height: 1.45; cursor: pointer; }

/* Disabled (read-only) lists and checkboxes: ASP.NET wraps each input and its label in <span class="aspNetDisabled">,
   which would make them one flex item with no gap. display: contents lays them out as if the span weren't there. */
.kyc-choices span.aspNetDisabled,
.kyc-check span.aspNetDisabled { display: contents; }
.kyc-choices input:disabled,
.kyc-check input:disabled,
.kyc-field .kyc-choices input:disabled + label { cursor: default; }
.kyc-check:has(input:disabled) { cursor: default; }

/* Marks a required field's label with a red asterisk */
.kyc-required::after { content: " *"; color: var(--kyc-error); }

/* ---------- Importer onboarding steps (Identity, Addresses, Business, People, Documents, Review) ---------- */
.kyc-steps {
    display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px;
    overflow-x: auto; font-size: 12px; font-weight: 600;
}
.kyc-steps li {
    flex: 1 0 auto; border-radius: 999px; text-align: center; white-space: nowrap;
    background: var(--kyc-border-light); color: var(--kyc-muted);
}
/* Steps are links (KycSteps.StepNavHtml): the whole pill is clickable */
.kyc-steps li > a, .kyc-steps li.is-locked { display: block; padding: 8px 10px; border-radius: 999px; }
.kyc-steps li > a { color: inherit; text-decoration: none; transition: filter .15s, box-shadow .15s; }
.kyc-steps li > a:hover { filter: brightness(.94); box-shadow: inset 0 0 0 1px currentColor; }
.kyc-steps li > a:focus-visible { outline: none; box-shadow: var(--kyc-focus); }
.kyc-steps li.is-current { background: var(--kyc-navy); color: #fff; }
.kyc-steps li.is-current > a:hover { filter: none; box-shadow: none; }
.kyc-steps li.is-done { background: var(--kyc-success-bg); color: var(--kyc-success); }
.kyc-steps li.is-incomplete { background: var(--kyc-warning-bg); color: var(--kyc-warning); }
.kyc-steps li.is-locked { opacity: .6; cursor: not-allowed; }
.kyc-steps-back { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.kyc-steps-back a { color: var(--kyc-blue); text-decoration: none; }
.kyc-steps-back a:hover { text-decoration: underline; }

/* Read-only while the application waits for the broker's review (KycStepPage adds .kyc-readonly to the form).
   The server hides its own buttons; these are the browser-only controls. */
.kyc-readonly .kyc-main button[type=button],
.kyc-readonly .kyc-main .kyc-add-link,
.kyc-readonly .kyc-main .kyc-chip button,
.kyc-readonly .kyc-main .kyc-related-head a,
.kyc-readonly .kyc-main input[type=file] { display: none !important; }   /* page content only: the header account menu stays */
.kyc-readonly .kyc-chip { padding-right: 12px; }

.kyc-form-section { border-top: 1px solid var(--kyc-border-light); padding-top: 18px; margin-top: 18px; }
.kyc-form-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.kyc-form-section h2 { font-size: 17px; margin: 0 0 4px; }
.kyc-form-section > p { color: var(--kyc-muted); font-size: 14px; margin: 0 0 14px; }

textarea.kyc-input { min-height: 110px; resize: vertical; }

/* Expandable regulation / guidance text */
.kyc-reg { border: 1px solid var(--kyc-border-light); border-radius: var(--kyc-radius); margin: 10px 0 14px; background: #fafbfc; }
.kyc-reg summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--kyc-navy); }
.kyc-reg div { padding: 0 14px 12px; font-size: 13px; line-height: 1.6; white-space: pre-line; color: var(--kyc-text); }

/* "Based on your answers ..." box */
.kyc-status-preview { border-radius: var(--kyc-radius); padding: 14px 16px; margin: 18px 0 0; font-size: 14px; background: var(--kyc-info-bg); }
.kyc-status-preview strong { color: var(--kyc-navy); }

/* Back link + Save & continue */
.kyc-form-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-top: 24px; }
.kyc-form-actions a { font-weight: 600; font-size: 14px; }

[hidden] { display: none !important; }

/* Password show/hide */
.kyc-pw-wrap { position: relative; }
.kyc-pw-wrap .kyc-input { padding-right: 68px; }
.kyc-pw-toggle {
    position: absolute;
    right: 6px; top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--kyc-blue);
    font: 600 13px var(--kyc-font-body);
    padding: 8px 10px;
    cursor: pointer;
}

.kyc-strength {
    height: 4px;
    background: var(--kyc-border-light);
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}
.kyc-strength span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }

.kyc-hint { font-size: 12px; color: var(--kyc-muted); margin-top: 6px; }

/* ASP.NET validators */
.kyc-error {
    display: block;
    font-size: 13px;
    color: var(--kyc-error);
    margin-top: 5px;
}

/* ---------- 7. Buttons ---------- */
.kyc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 22px;
    font-family: var(--kyc-font-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    background: var(--kyc-blue);
    border: 1px solid transparent;
    border-radius: var(--kyc-radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, transform .05s, box-shadow .15s;
}
.kyc-button:hover { background: var(--kyc-blue-dark); color: #fff; text-decoration: none; }
.kyc-button:active { transform: translateY(1px); }
.kyc-button:focus-visible { box-shadow: var(--kyc-focus); outline: none; }
.kyc-button:disabled, .kyc-button.aspNetDisabled { opacity: .65; cursor: not-allowed; }

/* Orange call-to-action, like "Get a Quote" */
.kyc-button-accent { background: var(--kyc-orange); }
.kyc-button-accent:hover { background: var(--kyc-orange-dark); }

.kyc-button-navy { background: var(--kyc-navy); }
.kyc-button-navy:hover { background: var(--kyc-navy-dark); }

.kyc-button-outline {
    background: transparent;
    color: var(--kyc-navy);
    border-color: var(--kyc-navy);
}
.kyc-button-outline:hover { background: var(--kyc-navy); color: #fff; }

.kyc-button-block { display: flex; width: 100%; }

.kyc-actions { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 8px; }
.kyc-actions .kyc-button { width: 100%; }

/* ---------- 8. Alerts (also used by asp:ValidationSummary) ---------- */
.kyc-alert {
    border-radius: var(--kyc-radius);
    border: 1px solid;
    border-left-width: 4px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}
.kyc-alert ul { margin: 6px 0 0; padding-left: 18px; }
.kyc-alert-error   { background: var(--kyc-error-bg);   border-color: var(--kyc-error-border);   border-left-color: var(--kyc-error);   color: #8e1c1c; }
.kyc-alert-success { background: var(--kyc-success-bg); border-color: var(--kyc-success-border); border-left-color: var(--kyc-success); color: #1e5a22; }
.kyc-alert-warning { background: var(--kyc-warning-bg); border-color: var(--kyc-warning-border); border-left-color: var(--kyc-orange);  color: var(--kyc-warning); }
.kyc-alert-info    { background: var(--kyc-info-bg);    border-color: var(--kyc-info-border);    border-left-color: var(--kyc-blue);    color: var(--kyc-navy); }

/* ---------- 9. Tables (asp:GridView with CssClass="kyc-table") ---------- */
.kyc-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.kyc-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--kyc-surface);
    font-size: 14px;
}
.kyc-table th {
    text-align: left;
    background: var(--kyc-navy);
    color: #fff;
    font-weight: 600;
    padding: 10px 12px;
    white-space: nowrap;
}
.kyc-table th a { color: #fff; }
.kyc-table td { padding: 10px 12px; border-bottom: 1px solid var(--kyc-border-light); }
.kyc-table tr:nth-child(even) td { background: #fafbfc; }
.kyc-table tr:hover td { background: var(--kyc-info-bg); }

/* ---------- 10. Status badges (e.g. KYC status) ---------- */
.kyc-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: var(--kyc-border-light);
    color: var(--kyc-muted);
}
.kyc-badge-pending  { background: var(--kyc-warning-bg); color: var(--kyc-warning); }
.kyc-badge-approved { background: var(--kyc-success-bg); color: var(--kyc-success); }
.kyc-badge-rejected { background: var(--kyc-error-bg);   color: var(--kyc-error); }
.kyc-badge-review   { background: var(--kyc-info-bg);    color: var(--kyc-navy); }

/* ---------- 11. Utilities ---------- */
.kyc-text-center { text-align: center; }
.kyc-text-muted { color: var(--kyc-muted); }
.kyc-mt-0 { margin-top: 0 !important; }
.kyc-mb-0 { margin-bottom: 0 !important; }
.kyc-footnote { text-align: center; font-size: 14px; color: var(--kyc-muted); margin: 18px 0 0; }
.kyc-footnote a { font-weight: 600; }
.kyc-hidden { display: none !important; }

/* ==========================================================================
   12. Master page pieces (Site.Master)
   ========================================================================== */

/* --- Account menu (top right; Site.Master PlaceHolderAccount, shown only when signed in) --- */
.kyc-account { position: relative; margin-left: auto; }

.kyc-account-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 4px 12px 4px 4px;
    font-family: var(--kyc-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--kyc-navy);
    background: var(--kyc-surface);
    border: 1px solid var(--kyc-border);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.kyc-account-button:hover { border-color: var(--kyc-blue); }
.kyc-account-button:focus-visible { outline: none; box-shadow: var(--kyc-focus); }
.kyc-account-button[aria-expanded="true"] { border-color: var(--kyc-blue); }
.kyc-account-button[aria-expanded="true"] .kyc-account-chevron { transform: rotate(180deg); }

.kyc-account-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--kyc-navy);
    color: #fff;
    font-size: 13px;
    letter-spacing: .5px;
}
.kyc-account-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kyc-account-chevron { flex: none; transition: transform .15s; }

.kyc-account-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 240px;
    padding: 6px 0;
    background: var(--kyc-surface);
    border: 1px solid var(--kyc-border);
    border-top: 3px solid var(--kyc-orange);
    border-radius: var(--kyc-radius);
    box-shadow: var(--kyc-shadow);
    z-index: 1000;
}
.kyc-account-menu[hidden] { display: none; }
.kyc-account-who {
    padding: 10px 16px 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--kyc-border-light);
    font-size: 12px;
    color: var(--kyc-muted);
}
.kyc-account-who strong { display: block; margin-top: 2px; font-size: 14px; color: var(--kyc-text); overflow-wrap: anywhere; }
.kyc-account-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--kyc-navy);
    text-decoration: none;
}
.kyc-account-menu a:hover,
.kyc-account-menu a:focus-visible { background: var(--kyc-info-bg); color: var(--kyc-blue); outline: none; }
.kyc-account-menu a.kyc-account-logout { border-top: 1px solid var(--kyc-border-light); margin-top: 4px; color: var(--kyc-error); }
.kyc-account-menu a.kyc-account-logout:hover,
.kyc-account-menu a.kyc-account-logout:focus-visible { background: var(--kyc-error-bg); color: var(--kyc-error); }

/* Phones: just the initials circle, so the logo keeps its room */
@media (max-width: 560px) {
    .kyc-account-name, .kyc-account-chevron { display: none; }
    .kyc-account-button { padding: 4px; }
}

/* --- System message banner (PanelSystemMessage) --- */
.kyc-system-message {
    background: var(--kyc-warning-bg);
    border-bottom: 1px solid var(--kyc-warning-border);
}
.kyc-system-message .kyc-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.kyc-system-message-icon { flex: none; color: var(--kyc-orange); }
.kyc-system-message-text {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--kyc-warning);
}

/* Holds non-visual controls (timers) */
.kyc-hidden-controls { display: none; }

/* --- Optional page sub-header (HeaderContent placeholder) --- */
.kyc-subheader .kyc-container > *:first-child { margin-top: 20px; }

/* --- Modal popups (AjaxControlToolkit ModalPopupExtender) --- */
.modalBackground {
    background-color: rgba(1, 47, 76, 0.55);
}

.kyc-modal {
    background: var(--kyc-surface);
    border: 0;
    border-top: 4px solid var(--kyc-orange);
    border-radius: var(--kyc-radius-lg);
    box-shadow: 0 20px 50px rgba(1, 47, 76, 0.25);
    padding: 28px 24px 24px;
    width: 92vw;
    max-width: 440px;
    text-align: center;
    font-family: var(--kyc-font-body);
}
.kyc-modal-title { font-size: 19px; margin: 0 0 10px; }
.kyc-modal-error { color: var(--kyc-error); font-size: 14px; margin: 0; }

.kyc-countdown {
    display: block;
    margin: 8px 0 4px;
    font-family: var(--kyc-font-heading);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--kyc-orange);
}

.kyc-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.kyc-modal-actions .kyc-button { min-width: 140px; }

/* --- Footer --- */
.kyc-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}
.kyc-footer-links a { color: #fff; font-weight: 600; text-decoration: none; }
.kyc-footer-links a:hover { color: var(--kyc-gold); text-decoration: none; }
.kyc-footer-dot { color: rgba(255, 255, 255, .45); font-size: 9px; margin: 0 8px; vertical-align: middle; }

@media (max-width: 599px) {
    .kyc-footer-inner { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   13. Legacy class names (from the retired SiteOptix.css)
   Older pages that still use these classes get the new look automatically.
   Prefer the kyc- classes in new markup.
   ========================================================================== */
.myTextBox {
    display: block;
    width: 100%;
    max-width: none;
    min-height: 46px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 16px;
    color: var(--kyc-text);
    background: var(--kyc-surface);
    border: 1px solid var(--kyc-border);
    border-radius: var(--kyc-radius-sm);
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
.myTextBox:focus { outline: none; border-color: var(--kyc-blue); box-shadow: var(--kyc-focus); }

.myButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 22px;
    font-family: var(--kyc-font-body);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--kyc-blue);
    border: 1px solid transparent;
    border-radius: var(--kyc-radius-sm);
    cursor: pointer;
}
.myButton:hover { background: var(--kyc-blue-dark); color: #fff; }
.myButton:disabled, .myButton.aspNetDisabled { opacity: .65; cursor: not-allowed; }

.myLabel { font-size: 14px; color: var(--kyc-text); }
.myLabel-bold { font-size: 14px; font-weight: 700; color: var(--kyc-text); }

.myModalPanel {
    background: var(--kyc-surface);
    border-top: 4px solid var(--kyc-orange);
    border-radius: var(--kyc-radius-lg);
    box-shadow: 0 20px 50px rgba(1, 47, 76, 0.25);
    padding: 28px 24px 24px;
    max-width: 92vw;
    text-align: center;
}

/* ==========================================================================
   Tablet: 600px and up
   ========================================================================== */
@media (min-width: 600px) {
    :root { --kyc-gutter: 24px; }

    .kyc-card { padding: 32px 36px; }

    .kyc-row { flex-direction: row; gap: 16px; }

    .kyc-grid-2 { grid-template-columns: repeat(2, 1fr); }

    .kyc-actions { flex-direction: row; justify-content: flex-end; }
    .kyc-actions .kyc-button { width: auto; }
    .kyc-actions .kyc-button-block { width: 100%; }
}

/* ==========================================================================
   Desktop: 900px and up
   ========================================================================== */
@media (min-width: 900px) {
    body { font-size: 16px; }
    h1 { font-size: 32px; }

    .kyc-main { padding: 40px 0 56px; }

    .kyc-nav-toggle { display: none; }

    .kyc-brand img { height: 64px; max-width: none; }

    .kyc-nav,
    .kyc-nav.is-open {
        display: flex;
        flex-direction: row;
        width: auto;
        padding: 0;
        gap: 4px;
    }
    .kyc-nav a {
        border-top: 0;
        padding: 8px 14px;
        border-radius: var(--kyc-radius-sm);
    }
    .kyc-nav a:hover { background: var(--kyc-border-light); }

    .kyc-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .kyc-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Uploaded documents (Business.aspx, Documents.aspx) ---------- */
.kyc-doc-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.kyc-doc-list li {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; font-size: 14px;
    border: 1px solid var(--kyc-border-light); border-radius: var(--kyc-radius);
}
.kyc-doc-list li a:first-child { font-weight: 600; word-break: break-all; }
.kyc-doc-list li .kyc-text-muted { font-size: 12px; }
.kyc-doc-list li a:last-child { margin-left: auto; font-size: 13px; color: var(--kyc-error); }
.kyc-upload-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.kyc-upload-row input[type=file] { flex: 1 1 240px; padding: 8px; }

/* The browser's own "Choose files" button, styled like .kyc-button-outline (all file inputs on the site) */
input[type=file].kyc-input { padding: 6px; font-size: 14px; color: var(--kyc-muted); cursor: pointer; }
input[type=file]::file-selector-button {
    margin-right: 12px;
    min-height: 34px;
    padding: 6px 16px;
    font-family: var(--kyc-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--kyc-navy);
    background: transparent;
    border: 1px solid var(--kyc-navy);
    border-radius: var(--kyc-radius-sm);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
input[type=file]::file-selector-button:hover { background: var(--kyc-navy); color: #fff; }
input[type=file]:focus-visible { outline: none; border-color: var(--kyc-blue); box-shadow: var(--kyc-focus); }

/* ---------- Print ---------- */
@media print {
    .kyc-site-header, .kyc-site-footer, .kyc-nav-toggle, .kyc-button { display: none !important; }
    body { background: #fff; }
    .kyc-card { box-shadow: none; padding: 0; }
}

/* Error list links (KycStepPage.AddError): the field a message is about flashes when the message is clicked */
.kyc-alert-error li a { color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.kyc-alert-error li a:hover { text-decoration-thickness: 2px; }
@keyframes kyc-flash { 0%, 60% { background: var(--kyc-error-bg); box-shadow: 0 0 0 6px var(--kyc-error-bg); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }
.kyc-flash { animation: kyc-flash 2s ease-out; border-radius: var(--kyc-radius); }

/* Dashboard: the importer's Customs Power of Attorney (signed copy, or out for signature) */
.kyc-importer-poa { font-size: 13px; margin-top: 4px; }
.kyc-importer-poa-waiting { color: var(--kyc-warning); font-weight: 600; }
