/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #f5f7fa;
    color: #222;
}

/* ===== SKIP LINK (UNTOUCHED) ===== */
.skip-link {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #4da3ff;
    color: #000;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid #fff;
    z-index: 9999;
    transform: none !important;
    transition: none !important;
}

.skip-link:focus {
    outline: 3px solid #fff;
    background: #003a80;
    color: #fff;
}

/* ===== HEADER (UNTOUCHED) ===== */
header {
    background: #005fcc;
    color: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 9000;
    margin-bottom: 20px;
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.branding {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 60px;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 700;
}

/* ===== NAVIGATION ===== */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    position: relative;
}

nav a:hover,
nav a[aria-current="page"] {
    text-decoration: none;
    border-bottom: 2px solid var(--blue);
}

nav a:focus {
    outline: 3px solid #fff;
    outline-offset: 4px;
    border-radius: 4px;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width .3s ease;
}

nav a:hover::after,
nav a[aria-current="page"]::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(to bottom, rgba(0,60,130,.55), rgba(0,60,130,.25));
    padding: 50px 20px;
    text-align: center;
    color: #fff;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.hero-section + .content-section {
    margin-top: 20px;
}

.hero-section h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .hero-section {
        padding: 60px 18px;
    }
    .hero-section h1 {
        font-size: 1.9rem;
    }
    .hero-section p {
        font-size: 1.05rem;
    }
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 20px 0;
}

.content-box {
    background: #fff;
    padding: 35px;
    margin-bottom: 35px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
    transition: transform .3s ease, box-shadow .3s ease;
}

.content-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 15px rgba(0,0,0,.15);
}

.content-box:hover h2,
.content-box:hover p,
.content-box:hover li {
    transform: translateX(4px);
}

/* ===== FORM STRUCTURE ===== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 22px;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 3px solid #ffbf47;
    border-color: #005fcc;
}

/* ===== INLINE CHECKBOXES (OPTION A) ===== */
.checkbox-inline {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-inline input[type="checkbox"] {
    margin-top: 3px;
}

/* Checkbox groups (postal + declaration container) */
.checkbox-group {
    display: block;
}

/* ===== INLINE CHECKBOXES (OPTION A) ===== */
.checkbox-inline {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-inline input[type="checkbox"] {
    margin-top: 3px;
}

/* Checkbox groups (postal + declaration container) */
.checkbox-group {
    display: block;
}

/* ===== INLINE RADIOS ===== */
.radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 16px;
    cursor: pointer;
}

.radio-inline input[type="radio"] {
    margin: 0;
}

/* Radio groups stay vertical but radios stay inline */
.form-group .radio-inline + .radio-inline {
    margin-left: 10px;
}

/* ===== BUTTONS ===== */
button,
.btn-primary {
    display: block;
    background: #005fcc;
    color: #fff;
    padding: 16px;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 25px;
    text-align: center;
}

button:hover,
.btn-primary:hover {
    background: #003a80;
}

/* ===== AEC DECLARATION BLOCK SPACING ===== */
.form-group + p strong {
    margin-top: 25px;
    display: block;
}

p + h3 {
    margin-top: 10px;
}

h3 + .form-group {
    margin-top: 10px;
}

/* ===== DECLARATION CHECKBOX (FINAL RULE) ===== */
.form-group.checkbox-group label[for="declaration-confirm"] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
    margin: 6px 0;
    white-space: normal;
}

.form-group.checkbox-group label[for="declaration-confirm"] input[type="checkbox"] {
    margin-top: 3px;
}

/* ===== TYPOGRAPHY & HINT TEXT ===== */
.hint {
    font-size: 0.9rem;
    color: #555;
    margin-top: -4px;
}

h2 {
    margin-bottom: 10px;
}

h3 {
    margin-top: 25px;
    margin-bottom: 10px;
}

/* ===== FOOTER ===== */
footer {
    background: #005fcc;
    color: #fff;
    padding: 20px 0;
    margin-top: 40px;
}

footer a {
    color: #ffbf47;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-container {
    text-align: center;
}

/* ===== TRANSITIONS (SAFE) ===== */
*:not(.skip-link) {
    transition: all .25s ease;
}

/* ===== HERO ANIMATION ===== */
.hero {
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,.15);
    animation: fadeInHero .6s ease;
}

@keyframes fadeInHero {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SCREEN READER ONLY ===== */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


.checkbox-inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}
.radio-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px; /* reduces space between circle and text */
  margin-right: 20px; /* spacing between Yes / No */
}

.radio-inline input[type="radio"] {
  margin: 0; /* removes browser default spacing */
}
/* Fix eligibility radio alignment */
.radio-inline {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 6px;
  margin-right: 16px;
  width: auto !important;
}

/* Make sure the input doesn't get pushed away */
.radio-inline input[type="radio"] {
  margin: 0;
  flex: 0 0 auto;
}
/* FORCE radio labels to behave normally */
.form-group .radio-inline {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: auto !important;
  gap: 6px !important;
  padding: 0 !important;
  margin: 0 16px 0 0 !important;
}

/* Stop the label text from being pushed away */
.form-group .radio-inline input[type="radio"] {
  margin: 0 !important;
  flex: 0 0 auto !important;
}
/* Force eligibility radios to align left */
.radio-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 20px !important;
  width: auto !important;
}

/* Fix spacing between radio and text */
.radio-inline {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}

/* Prevent radio button from being pushed away */
.radio-inline input[type="radio"] {
  margin: 0 !important;
  flex: 0 0 auto !important;
}
.main-nav ul {
    display: flex;
    flex-wrap: wrap;
}
@media (max-width: 600px) {
    .header-container {
        flex-wrap: wrap;
    }

    .main-nav ul {
        justify-content: center;
        gap: 10px;
    }

    .main-nav a {
        padding: 6px 10px;
        font-size: 14px;
    }
}
