/* =========================

   COLOR SYSTEM (WCAG SAFE)

========================= */

:root {

    --navy: #0A1128;

    --purple: #775ED3;

    --lilac: #DACDF2;

    --white: #F7F2F9;

    --yellow: #EFE745;

    --bg: #FAFAED;

    --card: #FFFFFF;

    --border: #E0E0E0;

}



/* =========================

   GLOBAL

========================= */

body {

    background-color: white;

    font-family: Arial, Helvetica, sans-serif;

    margin: 0;

    color: var(--navy);

    line-height: 1.5;

}



/* =========================

   ALL PAGE BUTTON BEHAVIOR

========================= */



.btn {

    display: block;

    padding: 12px 22px;

    font-size: 15px;

    border-radius: 10px;

    text-align: center;

    cursor: pointer;

    text-decoration: none;

    box-sizing: border-box;

}



.btn-primary {

    background-color: var(--navy);

    color: #fff;

}

.btn-primary:hover, .btn-primary:focus-visible {

    background-color: var(--purple);

    color: #fff;

    outline: 3px solid var(--yellow);

    outline-offset: 2px;

}



.btn-secondary {

    background-color: var(--purple);

    color: #fff;


}

.btn-secondary:hover, .btn-secondary:focus-visible {

    background-color: var(--navy);

    color: #fff;

    outline: 3px solid var(--yellow);

    outline-offset: 2px;

}



/* =========================

   ALL BODY AND CARDS

========================= */



body {

    background: #EDEAF5;

}



.card {

    background: #C4B8E0;

    border-radius: 20px;

    padding: 40px 30px;

    max-width: 720px;

    margin: 20px auto;

}



/* =========================

   HEADER

========================= */

header {

    text-align: center;

    padding: 20px 10px 0;

}



/* =========================

   MAIN LAYOUT

========================= */

main {

    padding: 10px;

}



.card {

    background: var(--white);

    border-radius: 18px;

    padding: 25px 20px;

    margin: 20px auto;

    max-width: 720px;

    width: 100%;

    box-shadow: 0 6px 18px rgba(0,0,0,0.08);

    text-align: center;

}



/* =========================

   TYPOGRAPHY

========================= */

h1 {

    font-size: 26px;

    margin-bottom: 10px;

}



h2 {

    font-size: 20px;

    color: var(--purple);

    margin-bottom: 10px;

}



.lbl {

    font-weight: bold;

    margin-bottom: 2px;

    font-size: 14px;

}



/* =========================

   FORM LAYOUT

========================= */

.container {

    display: flex;

    flex-direction: column;

    margin-bottom: 12px;

    max-width: 500px;

    margin-left: auto;

    margin-right: auto;

}







/* =========================

   INPUTS

========================= */

input,

select,

textarea {

    font-size: 16px;

    min-height: 40px;

    padding: 10px;

    border-radius: 8px;

    border: 1px solid var(--border);

    width: 100%;

    box-sizing: border-box;

}



input:focus,

textarea:focus,

select:focus {

    outline: 3px solid var(--lilac);

    border-color: var(--purple);

}



/* =========================

   INDEX BUTTONS

========================= */

nav .container {

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 16px;

}



nav .container .btn,

body.index nav .container .btn {

    width: 220px;

    max-width: 100%;

}



.clsButton {

    display: block;

    width: 100%;

    padding: 12px;

    font-size: 15px;

    background-color: var(--navy);

    color: #fff;

    border-radius: 10px;

    border: none;

    text-align: center;

    cursor: pointer;

}



.clsReceipt {

    display: block;

    width: 220px;

    max-width: 100%;

    padding: 12px 10px;

    font-size: 15px;

    background-color: var(--yellow);

    color: var(--navy);

    border-radius: 10px;

    border: none;

    text-align: center;

    cursor: pointer;

    box-sizing: border-box;

    box-shadow: 0 2px 4px rgba(0,0,0,0.08);

}



/* Hover / Focus */

.clsButton:hover,

.clsButton:focus,

.clsReceipt:hover,

.clsReceipt:focus {

    background-color: var(--purple);

    outline: 3px solid var(--yellow);

    color: #fff;

}



/* =========================

   START PAGE SIZING

========================= */

#startForm .container input {

    flex: 0 0 60%;

    max-width: 60%;

}



/* =========================

   PAYMENT FOOTER

========================= */

.payment-footer {

    max-width: 700px;

    margin: 30px auto 20px;

    text-align: center;

    padding: 0 15px;

}



/* reCAPTCHA */

.g-recaptcha {

    display: flex;

    justify-content: center;

    margin-bottom: 15px;

}



/* Payment Button */

#btnPay {

    display: block;

    width: 100%;

    max-width: 400px;

    margin: 10px auto;

    padding: 14px;

    font-size: 16px;

    border-radius: 10px;

    border: none;

    cursor: pointer;

    background-color: #5A45B5;

    color: #FFFFFF;

}



#btnPay:hover,

#btnPay:focus {

    background-color: var(--navy);

    outline: 3px solid var(--yellow);

}



/* Legal text */

.payment-footer p {

    font-size: 13px;

    line-height: 1.4;

    text-align: center;

    margin-bottom: 10px;

}



/* =========================

   HEADER BRANDING

========================= */

.text-header {

    text-align: center;

    padding: 30px 10px 10px;

}



.site-title {

    font-size: 32px;

    font-weight: 700;

    color: var(--navy);

    letter-spacing: 0.5px;

}



.text-header::after {

    content: "";

    display: block;

    width: 60px;

    height: 4px;

    background: var(--purple);

    margin: 12px auto 0;

    border-radius: 2px;

}



/* =========================

   FOOTER

========================= */

footer {

    text-align: center;

    margin-top: 25px;

}



footer img {

    max-width: 220px;

    width: 100%;

    height: auto;

    opacity: 0.7;

}



/* =========================

   LINKS

========================= */

a {

    color: var(--navy);

}



a:hover {

    text-decoration: underline;

}



/* =========================

   IMAGES

========================= */

img {

    max-width: 100%;

    height: auto;

}



/* =========================

   SKIP LINK (WCAG)

========================= */

.skip-link {

    position: absolute;

    left: -999px;

    top: 0;

    background: #fff;

    color: #000;

    padding: 10px 14px;

    z-index: 1000;

    border-radius: 6px;

    font-weight: bold;

}



.skip-link:focus {

    left: 10px;

    top: 10px;

}



/* =========================

   ACCESSIBLE FOCUS

========================= */

:focus-visible {

    outline: 3px solid var(--yellow);

    outline-offset: 2px;

}



/* =========================

   SCREEN READER ONLY

========================= */

.visually-hidden {

    position: absolute;

    width: 1px;

    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip: rect(0,0,0,0);

    white-space: nowrap;

    border: 0;

}



/* =========================

   ERROR BOX (WCAG)

========================= */

.error-box {

    display: block;

    background-color: #FDECEA;

    color: #7A1C1C;

    border: 1px solid #E0A1A1;

    border-left: 5px solid #D93025;

    padding: 14px 16px;

    margin: 15px auto 20px;

    max-width: 500px;

    text-align: left;

    border-radius: 10px;

    font-size: 15px;

    line-height: 1.5;

}

.error-box[hidden] {

    display: none;

}



.error-box::before {

    content: "⚠ ";

    font-weight: bold;

}



.error-box br {

    display: block;

    margin-bottom: 6px;

}



/* =========================

   CAPTCHA TEXT

========================= */

#captchaHelp {

    text-align: center;

    margin-bottom: 10px;

}



/* =========================

   Below WCAG fix applied

========================= */



a.clsReceipt {

    text-decoration: none;

    color: #000;

}



input::placeholder {

    color: #9CA3AF;

}



/* =========================

   INDEX PAGE (Scoped)

========================= */



body.index {

    background: #EDEAF5; /* soft lavender background like screenshot */

}



/* Card styling refinement */

body.index .card {

    background: #C4B8E0;

    padding: 40px 30px;

    border-radius: 20px;

    box-shadow: 0 6px 18px rgba(0,0,0,0.08);

}



/* Header */

body.index .site-title {

    font-size: 30px;

    font-weight: 700;

}



/* Replace underline accent with tighter style */

body.index .text-header::after {

    width: 40px;

    height: 3px;

    margin-top: 10px;

}



/* Button layout (horizontal grouping like mock) */

body.index nav .container {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 14px;

    flex-wrap: wrap;

    margin-top: 20px;

}



/* Primary buttons */

body.index .btn {

	display: inline-block;

    border-radius: 10px;

    padding: 12px 22px;

    min-width: 160px;

}


/* Footer logo spacing */

body.index footer {

    margin-top: 30px;

}



body.index footer img {

    opacity: 0.5;

    max-width: 180px;

}



/* =========================

   INDEX BUTTON HOVER + FOCUS (FIXED)

========================= */



/* Hover (mouse) */

/*body.index .btn:hover,

body.index .btn-secondary:hover:focus-visible {

    background-color: var(--navy);

    color: #fff;

    outline: 3px solid var(--yellow);

    outline-offset: 2px;

}*/



/* Focus (keyboard) */

/*body.index .btn:focus-visible,

body.index .btn-secondary:hover:focus-visible {

    background-color: var(--purple);

    color: #fff;

    outline: 3px solid var(--yellow);

    outline-offset: 2px;

}*/





/* START PAGE BUTTONS (NEW SYSTEM) */

#startForm .btn {

    display: block;

    width: 100%;

    max-width: 60%;

    margin: 10px auto;

}



/* START PAGE CARD FIX */

body:not(.index) .card {

    background: #C4B8E0;

}



.sr-only {

    position: absolute;

    width: 1px;

    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip: rect(0,0,0,0);

    border: 0;

}



button.btn.PaymentHelp {

    /* MATCH PRIMARY BUTTON DIMENSIONS */

    width: 100%;

    padding: 14px;

    font-size: 1rem;

    border-radius: 8px;

    border: 2px solid transparent;



    /* LAYOUT */

    display: block;

    box-sizing: border-box;

    cursor: pointer;



    /* COLOR (your new help orange) */

    background: #F97316;

    color: var(--navy);



    /* TRANSITION */

    transition: background 0.2s ease, color 0.2s ease;

}



button.btn.PaymentHelp:hover {

    background: var(--purple);

    color: #fff;

}



button.btn.PaymentHelp:focus {

    outline: none;

}



button.btn.PaymentHelp:focus-visible {

    outline: 3px solid var(--purple);

    outline-offset: 3px;

    box-shadow: 0 0 0 2px #fff;

}


input[type="number"]:hover,
input[type="number"]:focus,
input[type="password"]:hover,
input[type="password"]:focus,
input[type="text"]:hover,
input[type="text"]:focus,
input[type="email"]:hover,
input[type="email"]:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

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



















@media (min-width: 768px) {

    .container {

        flex-direction: row;

        align-items: center;

        max-width: 650px;

    }



    .container .lbl {

        width: 180px;

        text-align: right;

        padding-right: 12px;

        margin-bottom: 0;

    }



    .container input,

    .container select,

    .container textarea,

    .container div[id^="cc"] {

        flex: 1;

    }

}