* {
    box-sizing: border-box;
}

:root {
    --brand: #48b9e3;
    --ink: #343434;
    --muted: #64748b;
    --bg: #f7f7fb;
    --card: #ffffff;
    --warn: #fff3cd;
    --placeholder: #a7a7a7;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1; /* pushes footer down */
}

.container {
    max-width: 860px;
    margin: 20px auto;
    padding: 10px 30px;
    background: var(--card);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.brand {
    color: var(--brand);
}

h1 {
    font-size: 2rem;
    margin: 0 0 8px;
}

h2 {
    font-size: 1.25rem;
    margin: 0 0 8px;
    color: var(--muted);
    font-weight: 500;
}

h3 {
    margin-top: 24px;
}

h4 {
    margin-top: 24px;
}

a {
    color: var(--brand);
}

.lead {
    color: var(--muted);
    margin: 8px 0 0;
    padding-bottom: 20px;
}

.hero {
    text-align: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.cta {
    margin-top: 16px;
}

.field {
    /*margin-top: 16px;*/
}

.req {
    color: #e11d48;
}

input, select, textarea {
    width: 100%;
    padding: 12px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: box-shadow .15s ease, border-color .15s ease;
    background: #fff;
    height: 50px;
    font-size: 17px;
    font-family: inherit;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* Universal placeholder styling */
::placeholder {
    color: var(--placeholder);
    opacity: 1; /* ensures exact color, especially in Firefox */
}

/* Safari & older WebKit */
::-webkit-input-placeholder {
    color: var(--placeholder);
}

/* Firefox */
::-moz-placeholder {
    color: var(--placeholder);
}

/* Internet Explorer */
:-ms-input-placeholder {
    color: var(--placeholder);
}

/* Edge Legacy */
::-ms-input-placeholder {
    color: var(--placeholder);
}

/* Force selected real options to use normal color */
select {
    color: var(--ink);
}

.pl {
    color: red;
}

.hint {
    color: var(--muted);
    display: block;
}

.error {
    color: #b91c1c;
    display: block;
    min-height: 1em;
}

.notice {
    padding-top: 12px;
    padding-bottom: 12px;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-top: 20px;
}

.btn {
    margin-top: 20px;
    width: 100%;
    padding: 14px 16px;
    background: var(--brand);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
}

.btn:hover {
    filter: brightness(0.95);
}

/* Disabled button styling */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner for submit button */
.btn.loading {
    position: relative;
    color: transparent !important; /* Hide text */
}

.btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 3px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.status {
    margin-top: 12px;
    font-size: 0.95rem;
}

footer {
    margin-top: 24px;
    text-align: center;
    color: var(--muted);
}

footer a {
    color: var(--brand);
    text-decoration: none;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.global-consent {
    font-size: 13px;
    line-height: 13px;
    color: var(--muted);
    margin-top: 6px;
    letter-spacing: 0;
    text-align: justify;
    text-justify: inter-word;
}

.fine-print {
    text-align: justify;
    text-justify: inter-word;
    padding-top: 20px;
}

@media (min-width: 680px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Full Width Header --- */
.full-header {
    width: 100%;
    background: #e4f2fe;
    padding-top: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.header-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.logo-large {
    width: 300px;
    max-width: 85%;
    margin: 0 auto 20px;
    display: block;
}

/* --- Full Width Footer --- */
.full-footer {
    width: 100%;
    background: #343434;
    padding: 28px 20px;
    color: #ffffff;
    margin-top: 40px;
}

.footer-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.full-footer a {
    color: #9ac6ff;
    text-decoration: none;
}

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

.consent-inline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.consent-inline input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 3px; /* aligns checkbox with first line */
    flex-shrink: 0;
}

.consent-inline span {
    font-size: 0.95rem;
    line-height: 1.45;
    display: block;
}

.dob-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
.dob-grid select {
    height: 50px;
    font-size: 17px;
    border-radius: 10px;
}


/* --- MOBILE OPTIMIZATION BREAKPOINTS --- */

/* Phones (max-width: 480px) */
@media (max-width: 480px) {

    body {
        background: #ffffff; /* cleaner mobile look */
    }

    .full-header {
        padding: 20px 10px;
    }

    .header-inner h1 {
        font-size: 1.5rem;
    }

    .header-inner h2 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .lead {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .logo-large {
        width: 200px;
        margin-bottom: 16px;
    }

    .container {
        margin: 5px;
        padding: 16px;
        border-radius: 10px;
        box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    }

    h3 {
        font-size: 1.15rem;
    }

    .field label {
        font-size: 0.95rem;
    }

    input, select {
        height: 46px;
        font-size: 16px; /* better mobile readability */
    }

    .btn {
        font-size: 18px;
        padding: 12px;
    }

    .notice {
        font-size: 0.85rem;
        padding: 10px;
    }

    .fine-print {
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .full-footer {
        padding: 20px 12px;
    }
}


/* Mid-size screens (480px – 680px) */
@media (min-width: 480px) and (max-width: 680px) {

    .container {
        margin: 10px 16px;
        padding: 20px;
    }

    .logo-large {
        width: 250px;
    }

    .full-header {
        padding: 25px 10px;
    }

    input, select {
        font-size: 17px;
        height: 48px;
    }

    .btn {
        padding: 14px;
    }
}


