/* ==============================
   Base & Page Styling
================================= */

body {
  background-color: #217E52;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
}

/* Container */
.container {
  background-color: #ffffff;
  border-radius: 1em;
  padding: 1.5em;
  margin: 1em auto;
  max-width: 1100px;
}

/* Responsive images */
.img-responsive {
  max-width: 100%;
  height: auto;
}

/* Text alignment helper */
.text-center {
  text-align: center;
}

/* ==============================
   Skip Link (2.4.1)
================================= */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000000;
  color: #ffffff;
  padding: 0.75em 1em;
  z-index: 1000;
  font-weight: bold;
  text-decoration: none;
}

.skip-link:focus {
  left: 1em;
  top: 1em;
  border-radius: 0.5em;
}

/* ==============================
   Headings
================================= */

h1, h2, h3, h4 {
  color: #063057;
  font-family: Arial, Helvetica, sans-serif;
  margin-top: 0;
}

/* ==============================
   Table Styling
================================= */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
}

th {
  text-align: center;
  padding: 0.75em;
  border: 1px solid #000000;
  background-color: #063057;
  color: #ffffff;
}

td {
  padding: 0.75em;
  border: 1px solid #000000;
}

/* Improve row readability */
tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* ==============================
   Fieldsets & Forms
================================= */

fieldset {
  margin-bottom: 1.5em;
  background-color: #063057;
  border: 5px solid #82C1DB;
  padding: 1.5em;
  color: #ffffff;
  border-radius: 0.5em;
}

legend {
  background-color: #82C1DB;
  padding: 0.5em 0.75em;
  text-transform: uppercase;
  color: #063057;
  font-weight: bold;
  border-radius: 0.3em;
}

label {
  display: inline-block;
  margin-bottom: 0.25em;
  font-weight: bold;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  max-width: 320px;
  padding: 0.5em;
  border-radius: 0.3em;
  border: 2px solid #cccccc;
  font-size: 1rem;
}

/* Radio & Checkbox spacing */
input[type="radio"],
input[type="checkbox"] {
  margin-right: 0.5em;
}

/* ==============================
   Flexible Form Layout
================================= */

.form-flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1em;
}

.form-flex div {
  flex: 1 1 250px;
}

/* ==============================
   Speaker Section
================================= */

#speakers {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 2em;
}

#speakers img {
  border-radius: 50%;
  border: 3px solid #063057;
}

/* ==============================
   Button (Accessible Target Size)
================================= */

.btn {
  background-color: #063057;
  color: #ffffff;
  padding: 0.75em 1.5em;
  border-radius: 0.4em;
  text-transform: uppercase;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  min-height: 44px; /* Exceeds 24x24 requirement */
  min-width: 120px;
}

.btn:hover {
  background-color: #0a4b85;
}

.btn:focus {
  outline: 3px solid #82C1DB;
  outline-offset: 3px;
}

/* ==============================
   Global Focus Visibility (2.4.7)
================================= */

:focus-visible {
  outline: 3px solid #82C1DB;
  outline-offset: 2px;
}

/* ==============================
   Responsive Behavior (1.4.10)
================================= */

@media (max-width: 768px) {
  .form-flex {
    flex-direction: column;
  }

  #speakers {
    flex-direction: column;
    align-items: center;
  }

  table {
    font-size: 0.9rem;
  }
}