body {
  font-family: "Segoe UI", sans-serif;
  background: #f8fafc;
  margin: 0;
  padding: 0;
  color: #222;
}

header {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  color: white;
}

main {
  max-width: 800px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

h2 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: #005f73;
}
.my-2 { margin-top:12px; margin-bottom:12px; }
.fpl-section {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 1rem;
}

input, select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

label {
  display: block;
  margin-bottom: 4px;
  align-items: center;
  gap: 8px; /* spacing between checkbox and text */
  font-size: 16px;
  line-height: 1.4;
}
.iconed_label {
  display: inline-flex; 
}
.info-icon {
  display: block;    /* 🪄 the key */
  width: 22px;
  height: 17px;
  margin-left: 0.4em;
  cursor: pointer;
  fill: #0078d7;
}
.info-icon:hover {
  transform: scale(1.1);
  filter: brightness(0.85);
}
textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  resize: vertical; /* allows vertical resizing only */
  line-height: 1.5; /* matches input text spacing */
  box-sizing: border-box;
}

label + textarea {
  vertical-align: top;
}

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.bottom_align {
  align-items: end;
}

.hint {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.actions {
  text-align: center;
  margin-top: 2rem;
}

button {
  background: #0077b6;
  color: white;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #023e8a;
}

footer {
  text-align: center;
  color: #777;
  margin: 1rem 0;
  font-size: 0.9rem;
}
select option[title] {
  cursor: help;
}
input[type="checkbox"] {
  width: 22px;       /* Double the default ~16px */
  height: 22px;
  accent-color: #005f73; /* Modern way to color checkboxes */
  vertical-align: middle;
}
.speciCheckboxDiv {
    display: flex;
    flex-direction: column;      /* Stack label above checkbox */
    justify-content: center;     /* Vertical centering */
    align-items: center;         /* Horizontal centering */
  }

  .speciCheckboxLabel {
    margin-bottom: 10px;         /* Space between label and checkbox */
    font-size: 16px;
  }
  .form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 1rem;
}



/* Lightbox (modal) */
.info-modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.6);
}

.info-modal-content {
  background: #fff;
  margin: 15% auto;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  max-width: 400px;
  line-height: 1.6;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.info-close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #888;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
}
.info-close:hover {
  color: #000;
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr; /* single column */
  }
  .thumbnail_img {
    height: 75px;
  }
}