/* =========================
   COLOR SYSTEM (WCAG SAFE)
========================= */

:root {
    --navy: #0A1128;
    --purple: #775ED3;
    --lilac: #DACDF2;
    --white: #FFFFFF;
    --yellow: #EFE745;
    --bg: #FAFAED;
    --card: #FFFFFF;
    --border: #E0E0E0;
}


/* prevent phantom scroll */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* safer sizing model */
*,
*::before,
*::after {
    box-sizing: border-box;
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 10px;
    background: #0A1128;
    color: #fff;
    padding: 8px 12px;
    z-index: 1000;
    text-decoration: none;
}

.skip-link:focus {
    top: 10px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

[hidden] {
    display: none !important;
}

/* =========================
   PAGE BACKGROUND
========================= */
body.index {
    background-color: #e9e9ee;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* =========================
   CARD
========================= */
body.index .card {
    background-color: #DACDF2;
    max-width: 1100px;
    width: 92%;
    margin: 30px auto;
    padding: 25px 25px;
    border-radius: 16px;
    box-sizing: border-box;
}

/* =========================
   HEADINGS
========================= */
body.index h1 {
    text-align: center;
    margin: 10px 0 15px 0;
    font-size: 1.6rem;
}

/* =========================
   LOGOS
========================= */
body.index .logo {
    text-align: center;
    margin: 10px 0;
}

body.index .logo img {
    max-width: 140px;
    height: auto;
}

/* =========================
   PRIMARY BUTTON (INDEX)
========================= */
body.index .btn, .btn {
    background-color: #0A1128;
    color: #ffffff;

    min-height: 44px;
    line-height: 44px;
    padding: 0 16px;

    border-radius: 10px;
    border: 3px solid transparent;

    text-decoration: none;
    font-weight: 600;

    display: inline-block;
    text-align: center;

    width: 100%;
    box-sizing: border-box;

    transition: background-color 0.2s ease, border 0.2s ease;
}

body.index .btn:hover, .btn:hover{
    background-color: #775ED3;
    color: #ffffff;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
}

body.index .btn:focus, .btn:focus,
body.index .btn:focus-visible, .btn:focus-visible {
    background-color: #775ED3;
    color: #ffffff;
    border: 1px solid #775ED3;
    outline: 3px solid #EFE745;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
}

body.index .btn:focus-visible {
    outline: 3px solid #EFE745;
    outline-offset: 2px;
}

/* =========================
   SECONDARY BUTTON (INDEX)
========================= */
body.index .btn-receipt {
    background-color: #775ED3;
    color: #FFFFFF;

    min-height: 44px;
    line-height: 44px;

    padding: 0 22px;
    width: 200px;
    max-width: 200px;

    border-radius: 10px;
    border: 2px solid transparent;

    display: block;
    text-align: center;
    text-decoration: none;
    font-weight: 600;

    margin: 20px auto;

    box-sizing: border-box;

    transition: background-color 0.2s ease, border 0.2s ease;
}

body.index .btn-receipt:hover, .btn-receipt:hover{
    background-color: var(--navy);
    color: #ffffff;
     box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
}

body.index .btn-receipt:focus, .btn-receipt:focus
body.index .btn-receipt:focus-visible, .btn-receipt:focus-visible {
    background-color: var(--navy);
    color: #ffffff;
    border: 1px solid var(--navy);
    outline: 3px solid #EFE745;
     box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
}

/* =========================
   BUTTON GRID
========================= */
body.index .button-grid {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 15px 0;
}

body.index .button-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

body.index .button-row .btn {
    width: 100%;
}

/* =========================
   OFFICE GROUPS
========================= */
body.index .office-section {
    border: 2px solid #775ED3;
    border-radius: 12px;
    padding: 16px;
    margin-top: 10px;
}

body.index .section-label {
    font-weight: 600;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 10px;
    color: #0A1128;
}


/* =========================
   START LAYOUT (SSC CLEAN)
========================= */

body.start {
    background-color: #e9e9ee;
    font-family: Arial, sans-serif;
}

body.start main {
    max-width: none;
    margin: 0;
    padding: 0;
}

body.start .card {
    background-color: var(--lilac);
    max-width: 1200px;
    width: 95%;
    margin: 10px auto;
    padding: 30px 40px;
    border-radius: 16px;
}

body.start .top-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 10px;
}

body.start .translate-wrap {
    justify-self: start;
}

body.start .logo {
    justify-self: center;
    margin: 5px 0 10px;
}

body.start .logo img {
    max-width: 140px;
}

body.start h1 {
    text-align: center;
    margin: 10px 0 15px;
}

body.start .required-note {
    text-align: center;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

body.start label {
    font-weight: 600;
    margin-bottom: 4px;
}

body.start input {
    height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 320px;
    font-size: 1rem;
    background-color: #fff;
}

body.start .form-grid {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 14px 20px;
    align-items: center;
}

body.start .form-grid label {
    text-align: right;
    white-space: nowrap;
}

body.start .info-text {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    margin: 15px 0 10px;
}

/* unified button system */
body.start .btn,
body.start .btn-receipt,
body.start .PaymentHelp {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    height: 44px;
    border-radius: 10px;
    font-weight: 600;
}

/* primary */
body.start .btn {
    background-color: var(--navy);
    color: #fff;
    border: 3px solid transparent;
    width: 260px;
}

/* secondary */
body.start .btn-receipt {
    background-color: var(--purple);
    color: var(--white);
    border: 3px solid transparent;
    width: 260px;
    text-decoration: none;
}

/* help */
body.start .PaymentHelp {
    background-color: var(--purple);
    color: #fff;
    border: none;
    width: 260px;
    margin: 15px auto;
}

/* hover states */
body.start .btn:hover,
body.start .btn:focus-visible{
    background-color: var(--purple);
    color: #fff;
    border: 3px solid var(--purple);
}
body.start .btn-receipt:hover,
body.start .PaymentHelp:hover
 {
    background-color: var(--navy);
    color: #fff;
    border: 3px solid var(--navy);
}

body.start .btn:focus,
body.start .PaymentHelp:focus,
body.start .PaymentHelp:focus-visible,
.btn-receipt:focus,
.btn-receipt:focus-visible{
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
}

/* layout */
body.start .form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

body.start .ack-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

body.start .ack-final {
    text-align: center;
    font-weight: 700;
    margin-top: 10px;
}

body.start .logo-bottom {
    text-align: center;
    margin-top: 20px;
}

body.start .logo-bottom img {
    max-width: 180px;
    opacity: 0.9;
}

#google_translate_element {
    margin: 5px 0 10px;
    font-size: 0.85rem;
}

/* autofill fix */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
}

/* =========================
   START ONLINE PAGE (SSC)
========================= */

body.start-online {
    background-color: #e9e9ee;
    font-family: Arial, sans-serif;
}

body.start-online main {
    max-width: none;
    padding: 0;
}

body.start-online .card {
    background-color: var(--lilac);
    max-width: 1200px;
    width: 95%;
    margin: 10px auto;
    padding: 30px 40px;
    border-radius: 16px;
}

/* header */
body.start-online .top-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 10px;
}

body.start-online .translate-wrap {
    justify-self: start;
}

body.start-online .logo {
    justify-self: center;
}

body.start-online .logo-img {
    max-width: 100px;
    height: auto;
    cursor: pointer;
}

/* title */
body.start-online h1 {
    text-align: center;
    font-size: 1.6rem;
    margin: 10px 0 15px;
}

/* instructions */
body.start-online .lookup-instructions {
    text-align: center;
    font-size: 0.95rem;
    margin: 10px auto 15px;
    max-width: 700px;
    line-height: 1.4;
}

/* form layout */
body.start-online .form-row-single {
    max-width: 500px;
    margin: 0 auto 10px;
    text-align: center;
}

body.start-online .form-row-triple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 10px auto;
    text-align: center;
}

/* labels */
body.start-online label {
    display: block;
    text-align: center;
    font-weight: 600;
    margin-bottom: 4px;
}

/* inputs */
body.start-online input {
    height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 320px;
}

/* OR divider */
body.start-online .or-divider {
    text-align: center;
    margin: 10px auto;
    font-weight: 700;
    position: relative;
    width: calc(100% - 80px);
}

body.start-online .or-divider span {
    background: var(--lilac);
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

body.start-online .or-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 2px solid #000;
    z-index: 0;
}

/* info text */
body.start-online .info-text {
    text-align: center;
    font-weight: 600;
    margin: 20px 0 10px;
}

/* buttons */
body.start-online .form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

body.start-online .btn,
body.start-online .btn-receipt {
    width: 260px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
}

/* primary button */
body.start-online .btn {
    background-color: var(--navy);
    color: #fff;
    border: 3px solid transparent;
}

/* secondary button */
.btn-receipt {
    background-color: var(--purple);
    color: var(--white);
    border: 3px solid transparent;
    text-decoration: none;
}

/* hover */
body.start-online .btn:hover, .btn:hover{
    background-color: var(--purple);
    color: #fff;
    border: 3px solid var(--purple);
    cursor: pointer;
}
.btn:focus{
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
}

/* messages */
body.start-online .status-message {
    margin: 15px auto 0;
    font-weight: 600;
    text-align: center;
    max-width: 860px;
    margin-top: 10px;
}

body.start-online .status-message.success {
	  background-color: #E6F4EA;
    color: #1E7E34;                 /* dark green */
    background: #e8f5e9;             /* light green */
    padding: 10px 14px;
    border-radius: 8px;
    display: block;
}

/* error */
.error-box {
    background-color: #b00020;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* acknowledgements */
body.start-online .ack-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

body.start-online .ack-final {
    text-align: center;
    font-weight: 700;
    margin-top: 10px;
}

/* bottom logo */
body.start-online .logo-bottom {
    text-align: center;
    margin-top: 20px;
}

body.start-online .logo-bottom img {
    max-width: 180px;
    opacity: 0.9;
}

body.start-online .btn:focus-visible, .btn:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
    cursor: pointer;
}











/* =========================
   GETINFO PAGE
========================= */
body.getinfo input[type="number"]:focus,
body.getinfo input[type="password"]:focus,
body.getinfo input[type="text"]:focus,
body.getinfo input[type="email"]:focus,
body.getinfo input[type="tel"]:focus {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

body.getinfo #surcharge {
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding-left: 0;
  font-weight: 600;
  color: #0A1128;
}

.error-box-heading {
  font-weight: bold;
  margin: 0 0 8px;
}

#form-errors-list a.error-link {
  color: #FFFFFF;
  text-decoration: underline;
}

#form-errors-list a.error-link:hover,
#form-errors-list a.error-link:focus {
  color: #fce4e1;
}



/* =========================
   Reduced-motion support
========================= */

@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

    body.index .card {
        width: 95%;
        padding: 20px 15px;
    }

    body.index .button-row {
        grid-template-columns: 1fr;
    }

    body.index .button-grid {
        gap: 6px;
    }

    body.index .button-row {
        gap: 6px;
    }

    body.index .btn {
        width: 100%;
    }

    body.index .btn-receipt {
        width: 100%;
        max-width: none;
    }

    body.index .logo img {
        max-width: 120px;
    }

    body.index h1 {
        font-size: 1.4rem;
    }

    body.start .form-grid {
        grid-template-columns: 1fr;
    }

    body.start .form-grid label {
        text-align: left;
    }

    body.start .form-actions {
        flex-direction: column;
        align-items: center;
    }

    body.start .ack-grid {
        grid-template-columns: 1fr;
    }
    
    body.start-online .form-row-triple {
        grid-template-columns: 1fr;
    }

    body.start-online .form-actions {
        flex-direction: column;
        align-items: center;
    }

    body.start-online .btn,
    body.start-online .btn-receipt {
        width: 100%;
        max-width: 260px;
    }
}

/* =========================
   GETINFO PAYMENT PAGE
========================= */

body.getinfo {
    background: #EDEAF5;
    color: var(--navy);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    margin: 0;
}

body.getinfo main {
    padding: 10px;
}

body.getinfo .card {
    background: var(--lilac);
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    margin: 20px auto;
    max-width: 720px;
    padding: 25px 20px;
    text-align: center;
    width: 100%;
}

body.getinfo h1 {
    font-size: 1.625rem;
    margin: 0 0 10px;
}

body.getinfo .text-header {
    padding: 30px 10px 10px;
    text-align: center;
}

body.getinfo .site-title {
    color: var(--navy);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

body.getinfo .text-header::after {
    background: var(--purple);
    border-radius: 2px;
    content: "";
    display: block;
    height: 4px;
    margin: 12px auto 0;
    width: 60px;
}

body.getinfo .container {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
    margin: 0 auto 12px;
    max-width: 500px;
}

body.getinfo .form-group {
    border: 0;
    margin: 0 0 8px;
    min-width: 0;
    padding: 0;
}

body.getinfo .form-group legend {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 auto 8px;
    padding: 0;
}

body.getinfo .error-box ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

body.getinfo dl.container,
body.getinfo dl.container dd {
    margin-left: 0;
    margin-top: 0;
}

body.getinfo dl.container dd {
    margin-bottom: 0;
}

body.getinfo #btnPay:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

body.getinfo .lbl {
    font-size: 0.875rem;
    font-weight: bold;
    margin-bottom: 2px;
    text-align: right;
}

body.getinfo input,
body.getinfo select,
body.getinfo textarea {
    border: 1px solid var(--navy);
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    min-height: 40px;
    padding: 10px;
    width: 100%;
}

body.getinfo input:focus,
body.getinfo select:focus,
body.getinfo textarea:focus {
    border-color: var(--navy);
    outline: 3px solid var(--navy);
    outline-offset: 2px;
}

/* hover is a distinct, non-focus cue (border thickens; no outline) */
body.getinfo input:hover:not(:focus):not([readonly]),
body.getinfo select:hover:not(:focus),
body.getinfo textarea:hover:not(:focus) {
    border-color: var(--purple);
    border-width: 2px;
    padding: 9px;
}

/* invalid fields (aria-invalid is set by MakePayment and cleared when the user edits the field):
   thicker red border + light tint; the error text itself is in the summary above.
   Placed after the hover rule so it wins at equal specificity. */
body.getinfo input[aria-invalid="true"],
body.getinfo input[aria-invalid="true"]:hover:not(:focus) {
    background-color: #FFF5F5;
    border: 2px solid #B00020;
    padding: 9px;
}

body.getinfo input::placeholder {
    color: #5F6368;
}

body.getinfo #surcharge {
    background-color: transparent;
    border: none;
    box-shadow: none;
    color: #0A1128;
    font-weight: 600;
    padding-left: 0;
}

body.getinfo .logo {
    margin: 10px 0;
    text-align: center;
}

body.getinfo .logo-img {
    height: auto;
    max-width: 120px;
}

body.getinfo .payment-footer {
    margin: 30px auto 20px;
    max-width: 700px;
    padding: 0 15px;
    text-align: center;
}

body.getinfo .g-recaptcha {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

body.getinfo #btnPay {
    background-color: #5A45B5;
    border: none;
    border-radius: 10px;
    color: #FFFFFF;
    cursor: pointer;
    display: block;
    font-size: 1rem;
    margin: 10px auto;
    max-width: 400px;
    padding: 14px;
    width: 100%;
}

body.getinfo #btnPay:hover,
body.getinfo #btnPay:focus-visible {
    background-color: var(--navy);
}

body.getinfo #btnPay:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 2px;
}

body.getinfo .payment-footer p {
    font-size: 0.8125rem;
    line-height: 1.4;
    margin-bottom: 10px;
    text-align: center;
}

body.getinfo .error-box {
    background-color: #FDECEA;
    border: 1px solid #E0A1A1;
    border-left: 5px solid #D93025;
    border-radius: 10px;
    color: #7A1C1C;
    display: block;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 15px auto 20px;
    max-width: 500px;
    padding: 14px 16px;
    text-align: left;
}

body.getinfo .error-box[hidden] {
    display: none;
}

body.getinfo .error-box::before {
    content: "Warning: ";
    font-weight: bold;
}

body.getinfo .error-box br {
    display: block;
    margin-bottom: 6px;
}

body.getinfo footer {
    margin-top: 25px;
    text-align: center;
}

body.getinfo footer img {
    height: auto;
    max-width: 220px;
    opacity: 0.7;
    width: 100%;
}

body.getinfo .visually-hidden {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

@media (max-width: 600px) {
    body.getinfo .container {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    body.getinfo .lbl {
        align-self: flex-start;
        text-align: left;
    }

    body.getinfo .card {
        margin: 10px auto;
        padding: 20px 15px;
    }

    body.getinfo .site-title {
        font-size: 1.75rem;
    }
}