/* Base styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Smooth fade between light/dark themes */
    transition: background-color 0.35s ease, color 0.35s ease;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: #111111;
    background-color: #f4f4f4;
    transition: background-color 0.35s ease, color 0.35s ease;
}

a {
    color: #140D6D;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    transition: filter 0.35s ease;
}

/* Layout */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background-color: #ffffff;
    color: #000000;
    padding: 8px 16px;
    z-index: 1000;
}

.skip-link:focus {
    left: 8px;
    top: 8px;
    outline: 2px solid #140D6D;
}

/* =========================
   PayPal Donate Button
========================= */

.paypal-donate-btn {
    position: absolute;
    top: 10px;
    right: 12px;

    background: #ffc439;
    color: #111;
    font-weight: 700;
    padding: 8px 14px;

    border-radius: 6px;
    border: 2px solid #003087;

    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.2;
    z-index: 1000;
}

.paypal-donate-btn:hover,
.paypal-donate-btn:focus {
    background: #003087;
    color: #ffffff;

    outline: 3px solid #ffc439;
    outline-offset: 2px;
}

.paypal-donate-btn:active {
    transform: translateY(1px);
}

/* Header & navigation */
.site-header {
    background-color: #140D6D;
    color: #ffffff;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-square {
    width: 65px;
    height: auto;
    border-radius: 8px;
    background-color: #ffffff;
    color: #140D6D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.main-nav a {
    color: #ffffff;
    font-weight: 600;
}

.main-nav a:focus,
.main-nav a:hover {
    text-decoration: underline;
}

/* Search button */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-button {
    border: 1px solid #ffffff;
    background: transparent;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.search-button:focus {
    outline: 2px solid #ffffff;
}

/* MOBILE MENU */
.mobile-menu-btn,
#mobile-menu-button {
    display: none;
    border: 1px solid #ffffff;
    background: transparent;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
}

.mobile-menu-btn:focus,
#mobile-menu-button:focus {
    outline: 2px solid #ffffff;
}

@media (max-width: 768px) {
    .mobile-menu-btn,
    #mobile-menu-button {
        display: inline-block;
    }

    .main-nav {
        display: none !important;
    }
}

/* Backdrop */
#mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    z-index: 9999;
}

#mobile-menu-backdrop[hidden] {
    display: none;
}

/* Dialog panel */
/* Dialog panel */
#mobile-menu-dialog {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    padding: 20px;
    outline: none;

    /* FIX: make the dialog itself scroll on small screens */
    max-height: calc(100vh - 120px); /* 80px top padding + a little breathing room */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Close button */
#mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    float: right;
    cursor: pointer;
    color: #140D6D;
}

#mobile-menu-close:focus {
    outline: 2px solid #140D6D;
}

/* Menu list */
.mobile-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.mobile-menu-nav a {
    display: block;
    padding: 14px 0;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 1px solid #dddddd;
    color: #140D6D;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a:focus {
    background: #f0f0ff;
    text-decoration: none;
}

/* SEARCH DIALOG */
.search-dialog-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1500;
}

.search-dialog {
    background-color: #ffffff;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    border-radius: 8px;
}

/* Content layout */
.page-section {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 16px 24px 16px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    transition: background-color 0.35s ease, color 0.35s ease;
}
.page-section h1 {
    margin-top: 0;
    padding-top: 16px;
}

/* Card layout */
.item-list {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
}

.item {
    border-top: 1px solid #dddddd;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 10px;
    padding: 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.item-title a,
.item-image a {
    text-decoration: none !important;
}

.item-layout {
    gap: 20px !important;
}

.item-image img {
    border-radius: 6px;
}

.item-summary,
.item-meta {
    margin-bottom: 12px !important;
}

/* Focus visible */
:focus-visible {
    outline: 3px solid #ff9900 !important;
    outline-offset: 4px !important;
    border-radius: 6px;
}

/* BLOG matching */
.page-section ul.item-list .read-more {
    padding: 8px 14px;
    font-size: 18px;
}

/* SEARCH results matching */
.search-results .item {
    border-radius: 10px;
    padding: 20px !important;
}

/* ============================================================
   DARK MODE — TOGGLE + SMOOTH TRANSITION
   ============================================================ */

.dark-mode body,
.dark-mode .page-section,
.dark-mode .item,
.dark-mode input,
.dark-mode textarea,
.dark-mode select {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.dark-mode body {
    background-color: #121212;
    color: #f2f2f2;
}

.dark-mode .page-section {
    background-color: #1c1c1c;
    color: #ffffff;
}

.dark-mode .item {
    background-color: #1a1a1a;
    border-color: #333333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.dark-mode a {
    color: #9db7ff;
}

.dark-mode .item-summary,
.dark-mode .item-meta {
    color: #dddddd;
}

.dark-mode input,
.dark-mode textarea,
.dark-mode select {
    background-color: #1d1d1d;
    color: #ffffff;
    border-color: #444444;
}

.dark-mode .site-header {
    background-color: #111133;
}

.dark-mode .site-footer {
    background-color: #000000;
    color: #dddddd;
}

/* Dark pagination */
.dark-mode .pagination a {
    background-color: #222222;
    color: #ffffff;
}

.dark-mode .pagination a[aria-current="page"] {
    background-color: #140D6D;
    color: #ffffff !important;
}

/* Search + dialogs */
.dark-mode .search-dialog {
    background-color: #1c1c1c;
    color: #ffffff;
}

.dark-mode .search-dialog input {
    background-color: #0f0f0f;
    color: #ffffff;
    border-color: #444444;
}

/* ============================================================
   DARK MODE TOGGLE BUTTON (DESKTOP)
   ============================================================ */

#dark-mode-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    background-color: #140D6D;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

#dark-mode-toggle:hover,
#dark-mode-toggle:focus {
    background-color: #5557a0;
    outline: 3px solid #ff9900;
    outline-offset: 3px;
}

.dark-mode #dark-mode-toggle {
    background-color: #f0f0f0;
    color: #111111;
}

/* ============================================================
   MOBILE DARK MODE LINK (inline)
   ============================================================ */

#dark-mode-mobile-link {
    display: none;
    color: #ffffff;
    font-size: 16px;
    margin-left: 12px;
    text-decoration: underline;
}

#dark-mode-mobile-link:hover,
#dark-mode-mobile-link:focus {
    text-decoration: none;
    outline: 2px solid #ff9900;
    outline-offset: 3px;
}

.dark-mode #dark-mode-mobile-link {
    color: #9db7ff;
}

@media (max-width: 768px) {
    #dark-mode-toggle {
        display: none !important;
    }
    #dark-mode-mobile-link {
        display: inline-block !important;
    }
}


/* =========================
   Resources Page
   ========================= */

/* Layout */
.resource-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-end;
}

.resource-filters label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 0.95rem;
}

.resource-filters input,
.resource-filters select {
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #999;
    background: #fff;
    color: #000;
}

.resource-filters button {
    padding: 0.55rem 1rem;
    border-radius: 6px;
    border: none;
    background: #5a4db2; /* accessible purple */
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.resource-filters button:focus,
.resource-filters input:focus,
.resource-filters select:focus {
    outline: 3px solid #000;
    outline-offset: 2px;
}

/* Resource list */
.resource-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.resource-item {
    padding: 1.25rem;
    border-radius: 10px;
    background: #f5f5f7;
    border: 1px solid #ddd;
}

.resource-item h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.resource-item p {
    margin: 0.5rem 0;
    line-height: 1.5;
}

.resource-item a {
    color: #333365;
    font-weight: 600;
}

.resource-item a:focus {
    outline: 3px solid #000;
    outline-offset: 2px;
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a {
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #999;
    text-decoration: none;
    background: #fff;
    color: #000;
}

.pagination a.active {
    background: #5a4db2;
    color: #fff;
    border-color: #5a4db2;
}

.pagination a:focus {
    outline: 3px solid #000;
    outline-offset: 2px;
}

/* =========================
   Dark Mode Support
   ========================= */

/* Manual toggle support */
body.dark-mode .resource-item,
[data-theme="dark"] .resource-item {
    background: #1f1f24;
    border-color: #444;
}

body.dark-mode .resource-filters input,
body.dark-mode .resource-filters select,
[data-theme="dark"] .resource-filters input,
[data-theme="dark"] .resource-filters select {
    background: #121216;
    color: #fff;
    border-color: #555;
}

body.dark-mode .resource-filters button,
[data-theme="dark"] .resource-filters button {
    background: #7a6cff;
}

body.dark-mode .resource-item a,
[data-theme="dark"] .resource-item a {
    color: #9fa8ff;
}

body.dark-mode .pagination a,
[data-theme="dark"] .pagination a {
    background: #121216;
    color: #fff;
    border-color: #555;
}

body.dark-mode .pagination a.active,
[data-theme="dark"] .pagination a.active {
    background: #7a6cff;
    border-color: #7a6cff;
}

/* System preference fallback */
@media (prefers-color-scheme: dark) {
    body:not(.light-mode) .resource-item {
        background: #1f1f24;
        border-color: #444;
    }
}

/* ============================================================
   Calendar (Month View Layout Fixes) — add to END of stylesheet
   ============================================================ */

.calendar-wrap {
    width: 75%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Ensure lists/cards align cleanly inside the centered container */
.calendar-wrap .item-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.calendar-wrap .item {
    margin: 0 0 12px;
}

.calendar-wrap .calendar-item {
    width: 100%;
}

/* Keep the bar and bottom nav inside the same centered width */
.calendar-wrap .cal-bar,
.calendar-wrap .cal-bottom-nav {
    width: 100%;
}

/* Mobile: full width */
@media (max-width: 768px) {
    .calendar-wrap {
        width: 100%;
        max-width: 100%;
    }
}


/* Base styles for the More Info section */
.more-info-section {
    background-color: #1a1a1a; /* Dark background for dark mode */
    padding: 1rem;
    color: #ffffff; /* Default text color for dark mode */
}

.more-info-section .more-info-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;           /* Horizontal by default for desktop */
    flex-direction: row;     /* Ensure horizontal layout */
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.more-info-section .more-info-nav li h4 {
    margin: 0;
    font-size: 1rem;
    color: #ffffff; /* Ensure heading is visible in dark mode */
}

.more-info-section .more-info-nav li a {
    text-decoration: none;
    color: #ffffff; /* Default link color for dark mode */
    padding: 0.25rem 0.5rem;
    transition: color 0.3s ease;
}

.more-info-section .more-info-nav li a:hover,
.more-info-section .more-info-nav li a:focus {
    color: #00bfff; /* Accent color on hover/focus */
    outline: 2px solid #00bfff; /* Accessibility focus outline */
    outline-offset: 2px;
}

/* Mobile/Small Screen: Vertical navigation */
@media (max-width: 768px) {
    .more-info-section .more-info-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .more-info-section .more-info-nav li {
        margin-bottom: 0.5rem;
    }
    .more-info-section .more-info-nav ul {
list-style-type: none;
}
}

/* Optional: Dark mode toggle using prefers-color-scheme */
@media (prefers-color-scheme: dark) {
    .more-info-section {
        background-color: #1a1a1a;
        color: #ffffff;
    }

    .more-info-section .more-info-nav li a {
        color: #ffffff;
    }

    .more-info-section .more-info-nav li a:hover,
    .more-info-section .more-info-nav li a:focus {
        color: #00bfff;
    }
}

@media (prefers-color-scheme: light) {
    .more-info-section {
        background-color: #f5f5f5;
        color: #333333;
    }

    .more-info-section .more-info-nav li a {
        color: #333333;
    }

    .more-info-section .more-info-nav li a:hover,
    .more-info-section .more-info-nav li a:focus {
        color: #0066cc;
    }
}
.home-video-wrap {
  width: 75%;
  margin-left: auto;
  margin-right: auto;
}

.home-video {
  width: 100%;
  height: auto;
  display: block;
}
.card-video-wrap {
    width: 75%;
    margin: 0 auto;
}

.card-video {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================
   Slideshow (clean + accessible, video-style sizing)
   ========================= */

.slideshow-card .skip-slideshow {
  display: inline-block;
  margin-bottom: 0.75rem;
  text-decoration: underline;
}

/* Slideshow media area */
.slide-figure {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  padding: 0.75rem 0;
  border-radius: 6px;
  overflow: hidden;
  min-height: 260px;
}

/* Slideshow image sized like your video card: ~75% of card */
.slide-image {
  display: block;
  width: 75%;
  max-width: 1000px;
  max-height: 70vh;
  height: auto;
  object-fit: contain;
}

/* One control bar under the slideshow */
.slideshow-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.75rem;
}

/* Optional fallback block if JS disabled */
.ss-noscript {
  margin-top: 1rem;
}

/* Screen-reader-only helper (ONLY keep if you don't already have it) */
.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;
}

/* =========================
   Slideshow: keep SR text accessible but not visible
   ========================= */

.slideshow-card .ss-status,
.slideshow-card .ss-hint {
  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;
}

/* =========================
   Slideshow: screen-reader browseable image strip (hidden visually)
   ========================= */

.ss-a11y-strip {
  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;
}

.ss-a11y-strip ul,
.ss-a11y-strip li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Slideshow live region: hide visually, keep for screen readers */
.slideshow-card .ss-live {
  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;
}
/* Base styles for the Social Section */
.social-section {
    padding: 1rem;
    background-color: #1a1a1a; /* Dark mode background default */
    color: #ffffff; /* Text color for dark mode */
}

.social-section .social-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row; /* Horizontal layout for desktop */
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.social-section .social-nav li h4 {
    margin: 0;
    font-size: 1rem;
    color: #ffffff; /* Heading visible in dark mode */
}

.social-section .social-nav li a {
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: #ffffff; /* Default fallback text */
    transition: all 0.3s ease;
}

/* Brand Colors */
.social-section .social-nav li a.facebook {
    background-color: #1877f2; /* Facebook Blue */
    color: #ffffff;
}

.social-section .social-nav li a.instagram {
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
    color: #ffffff;
}

.social-section .social-nav li a.blog {
    background-color: #333365; /* Site brand color for blog */
    color: #ffffff;
}

/* Hover/Focus effects for accessibility */
.social-section .social-nav li a:hover,
.social-section .social-nav li a:focus {
    opacity: 0.8;
    outline: 2px solid #00bfff;
    outline-offset: 2px;
}

/* Mobile/Small Screen: Vertical layout */
@media (max-width: 768px) {
    .social-section .social-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-section .social-nav li {
        margin-bottom: 0.5rem;
    }
}

/* Optional: Respect system dark/light mode */
@media (prefers-color-scheme: light) {
    .social-section {
        background-color: #f5f5f5;
        color: #333333;
    }

    .social-section .social-nav li a.blog {
        background-color: #333365; /* Keep blog brand color */
        color: #ffffff;
    }

    /* Make Facebook a lighter shade on light mode for contrast */
    .social-section .social-nav li a.facebook {
        background-color: #3b5998;
        color: #ffffff;
    }

    /* Instagram gradient remains visually appealing on light mode */
    .social-section .social-nav li a.instagram {
        background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
        color: #ffffff;
    }
}

/* =========================
   Montana Map Section
========================= */

.mobile-image { display: none; }
.mt-image { display: none; }
.montana-map-section {
  max-width: 800px;
  margin: 0 auto;
}

/* Base map container */
.map-list {
  position: relative;
  list-style: disc;
  padding-left: 1.5rem;

  background-image: url('/images/map/montana.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;

  min-height: 500px;
}


/* Position each city (desktop/tablet) */
.map-list li {
  position: absolute;
}

/* Link styling */
.map-list a {
  
  color: #333365;
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.map-list a:hover,
.map-list a:focus {
  outline: 2px solid #000;
}

/* City positions */
.great-falls { top: 22%; left: 38%; }
.lewistown  { top: 24%; left: 58%; }
.missoula   { top: 47%; left: 23%; }
.helena     { top: 50%; left: 38%; }
.butte      { top: 60%; left: 42%; }
.bozeman    { top: 62%; left: 60%; }
.at-large   { top: 72%; left: 40%; }
.billings   { top: 68%; left: 75%; }
.laurel     { top: 76%; left: 73%; }

/* =========================
   Mobile Layout (Accessible)
========================= */

@media (max-width: 768px) {
.mobile-image {
width: 100%: height: auto;
}
.mt-image {
margin-left: auto; margin-right: auto;
height: 400px;
width: auto;
}
  .map-list {
    position: relative;
  }

  .map-list li {
    position: static;
    margin-bottom: 0.5rem;
  }
  .map-list a {
    display: inline-block;
    background: none;
    padding: 0;
  }
}

.scholarship-form-wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.5rem;
  background: #ffffff;
  color: #1f2933;
  border: 0.125rem solid #d6dce5;
  border-radius: 0.75rem;
}

.scholarship-form-wrap h2,
.scholarship-form-wrap h3 {
  color: #333365;
  line-height: 1.3;
}

.scholarship-form-wrap h2 {
  margin: 0 0 1rem;
}

.scholarship-form-wrap h3 {
  margin: 2rem 0 1rem;
}

.scholarship-form-wrap p {
  margin: 0 0 1rem;
}

.scholarship-form fieldset {
  margin: 0 0 1.5rem;
  padding: 1rem;
  border: 0.125rem solid #c7d2e0;
  border-radius: 0.75rem;
}

.scholarship-form legend {
  padding: 0 0.5rem;
  font-weight: 700;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label,
.checkbox-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-field input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

.scholarship-form input[type="text"],
.scholarship-form input[type="email"],
.scholarship-form input[type="tel"],
.scholarship-form input[type="date"],
.scholarship-form input[type="file"],
.scholarship-form select,
.scholarship-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 0.125rem solid #7b8794;
  border-radius: 0.5rem;
  font: inherit;
  line-height: 1.4;
  background: #ffffff;
  color: #111827;
  box-sizing: border-box;
}

.scholarship-form textarea {
  resize: vertical;
  min-height: 7rem;
}

.scholarship-form input:focus,
.scholarship-form select:focus,
.scholarship-form textarea:focus,
.scholarship-form button:focus {
  outline: 0.1875rem solid #0f62fe;
  outline-offset: 0.125rem;
  border-color: #0f62fe;
}

.field-help {
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.form-actions {
  margin-top: 1.5rem;
}

.scholarship-form button {
  display: inline-block;
  padding: 0.875rem 1.25rem;
  border: 0.125rem solid #333365;
  border-radius: 0.5rem;
  background: #333365;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.scholarship-form button:hover,
.scholarship-form button:active {
  background: #252549;
  border-color: #252549;
}

.form-security-trap {
  position: absolute !important;
  left: -9999rem !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.form-status,
.form-errors {
  margin: 0 0 1.5rem;
  padding: 1rem;
  border-radius: 0.75rem;
}

.form-status {
  background: #eefbf0;
  border: 0.125rem solid #2e7d32;
}

.form-errors {
  background: #fff4f4;
  border: 0.125rem solid #b3261e;
}

.form-errors h2,
.form-status h2 {
  margin-top: 0;
}

.form-errors ul {
  margin: 0.5rem 0 0;
  padding-left: 1.5rem;
}

@media (max-width: 48rem) {
  .scholarship-form-wrap {
    padding: 1rem;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto;
  }
}

.form-container {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

h2 {
  margin-top: 0;
  color: #003366;
  border-bottom: 2px solid #003366;
  padding-bottom: 10px;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  color: #333;
}

input[type="text"], 
input[type="email"], 
select {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
select:focus {
  border-color: #0056b3;
  outline: none;
}

.radio-group label {
  display: inline-block;
  font-weight: normal;
  margin-right: 18px;
  cursor: pointer;
}

.conditional-box {
  margin-left: 20px;
  padding: 14px;
  border-left: 4px solid #0056b3;
  background-color: #f0f4f8;
  border-radius: 0 4px 4px 0;
}

/* Anti-bot Honeypot Field - Hidden completely via CSS */
.website-field {
  display: none !important;
  visibility: hidden !important;
}

.btn-submit {
  background-color: #0056b3;
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-submit:hover {
  background-color: #003d80;
}

.btn-secondary {
  background-color: #e2e8f0;
  color: #2d3748;
  padding: 6px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  margin-top: 6px;
}

.btn-secondary:hover {
  background-color: #cbd5e0;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 12px;
  border-radius: 4px;
  font-weight: bold;
  margin-bottom: 20px;
}

hr {
  border: 0;
  height: 1px;
  background: #e0e0e0;
  margin: 25px 0;
}
