
/* =========================
   Global styles
   ========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #1f2933;
  background: linear-gradient(180deg, #f4faff 0%, #fdf7ff 100%);
}

/* =========================
   Navigation
   ========================= */

header {
  background-color: #dbeafe;
  border-bottom: 1px solid #c7d2fe;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: space-around;
  padding: 0;
  margin: 0;
}

.nav-list li a {
  display: block;
  padding: 1rem 1.2rem;
  text-decoration: none;
  font-weight: bold;
  color: #1e3a8a;
}

.nav-list li a:hover,
.nav-list li a:focus {
  background-color: #e0e7ff;
  color: #312e81;
  outline: none;
}

/* =========================
   Main layout
   ========================= */

main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* =========================
   Headings & text
   ========================= */

h1 {
  color: #3730a3;
  margin-top: 0;
}

h2 {
  color: #6d28d9;
  margin-top: 1.8rem;
}

p {
  margin: 1rem 0;
}

/* =========================
   Lists
   ========================= */

ul {
  padding-left: 1.5rem;
}

ul li {
  margin-bottom: 0.5rem;
}

/* =========================
   Links & buttons
   ========================= */

a {
  color: #2563eb;
}

a:hover,
a:focus {
  color: #4f46e5;
  text-decoration: underline;
}

/* =========================
   Hero section (home page)
   ========================= */

.hero {
  background: linear-gradient(135deg, #e0f2fe, #fce7f3);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.hero h1 {
  margin-top: 0;
}

.hero p {
  font-size: 1.1rem;
}

/* =========================
   Map placeholder
   ========================= */

.map-placeholder {
  height: 320px;
  background: linear-gradient(135deg, #e0e7ff, #fbcfe8);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #312e81;
  font-weight: bold;
  margin: 1.5rem 0;
}

/* =========================
   Footer
   ========================= */

footer {
  text-align: center;
  padding: 1.5rem;
  color: #4b5563;
  font-size: 0.9rem;
}

/* =========================
   Accessibility focus styles
   ========================= */

a:focus {
  outline: 3px solid #a5b4fc;
  outline-offset: 3px;
}

/* =========================
   Responsive layout
   ========================= */

@media (max-width: 700px) {
  .nav-list {
    flex-direction: column;
    text-align: center;
  }

  .nav-list li a {
    border-top: 1px solid #c7d2fe;
  }

  main {
    margin: 1rem;
    padding: 1.5rem;
  }
}

/* ===== Card-style sections ===== */
.section-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* ===== Action list / button-style links ===== */
.action-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.action-list li {
  margin: 0.75rem 0;
}

.action-list a {
  display: block;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(135deg, #e0f2fe, #fce7f3);
  border-radius: 8px;
  color: #1f2933;
  font-weight: 600;
  text-decoration: none;
}

.action-list a:hover,
.action-list a:focus {
  background: linear-gradient(135deg, #bae6fd, #fbcfe8);
}

.small-note {
  font-size: 0.9rem;
  color: #555;
}

.hint {
  font-size: 0.85rem;
  color: #666;
  margin-top: -0.5rem;
}

/* ===== Form layout ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
}

/* ===== Amount button options ===== */
.amount-options {
  display: flex;
  gap: 0.75rem;
  margin: 0.5rem 0;
}

.amount-options label {
  border: 2px solid #c7d2fe;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 600;
  color: #3730a3;
}

.amount-options input {
  display: none;
}

.amount-options input:checked + span {
  background-color: #6366f1;
  color: #ffffff;
}

/* fallback for checked state */
.amount-options input:checked ~ label,
.amount-options label:has(input:checked) {
  background-color: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
}

/* ===== Small helper text ===== */
.small-note {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.3rem;
}

/* ===== Navigation as buttons ===== */

.nav-list {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  list-style: none;
  padding: 0.75rem 1rem;
  margin: 0;
}

.nav-list li a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #eef2ff, #fdf2f8);
  border-radius: 999px;
  font-weight: 600;
  color: #1e3a8a;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

/* Hover / focus = button interaction */
.nav-list li a:hover,
.nav-list li a:focus {
  background: linear-gradient(135deg, #c7d2fe, #fbcfe8);
  transform: translateY(-1px);
}

/* Active / current page (optional, recommended) */
.nav-list li a.active {
  background-color: #6366f1;
  color: #ffffff;
}

/* Clickable link-cards */
.link-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.link-card:hover,
.link-card:focus {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.card-hint {
  margin-top: 0.5rem;
  font-weight: 600;
  color: #4f46e5;
}

/* ===== Card reacts when CTA link is hovered ===== */

.section-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-card:hover {

}

.section-card .card-link:hover,
.section-card .card-link:focus {
  text-decoration: underline;
}

.section-card:has(.card-link:hover) {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.map-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.6rem 1.2rem;
  background-color: #6d28d9;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.map-link:hover,
.map-link:focus {
  background-color: #5b21b6;
}
