/* ==========================================================================
   Avanzata AirWork LLC / Airport Planners Master Stylesheet
   Path: /css/master.css
   ========================================================================== */

/* Base Layout & Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f4f6f8;
  color: #2d3748;
  margin: 0;
  padding: 20px 15px;
  line-height: 1.5;
}

/* Form Container Card */
.container {
  max-width: 960px;
  margin: 0 auto 30px auto;
  background: #ffffff;
  padding: 35px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

/* Headings & Subtitles */
h1 {
  color: #1a365d;
  font-size: 2.1rem;
  margin-top: 0;
  margin-bottom: 8px;
  border-bottom: 3px solid #2b6cb0;
  padding-bottom: 12px;
  font-weight: 700;
}

.subtitle {
  color: #4a5568;
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 25px;
  font-style: italic;
}

/* Fieldsets & Grouping */
fieldset {
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  padding: 20px 22px;
  margin-bottom: 25px;
  background-color: #fafafa;
}

legend {
  font-weight: 700;
  font-size: 1.1rem;
  color: #2b6cb0;
  padding: 0 10px;
  background-color: #ffffff;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
}

/* Responsive Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px 20px;
}

/* Form Labels & Inputs */
label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2d3748;
}

/* Special handling for Checkbox labels */
label:has(input[type="checkbox"]),
label input[type="checkbox"] + span {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0 6px 0 0;
  cursor: pointer;
  accent-color: #2b6cb0;
  vertical-align: middle;
}

/* Text Inputs, Select Dropdowns & Textarea */
input[type="text"],
input[type="email"],
select,
textarea,
input[type="file"] {
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  font-size: 0.95rem;
  background-color: #ffffff;
  color: #1a202c;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: #3182ce;
  outline: none;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

textarea {
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
}

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%234A5568%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 12px top 50%;
  background-size: 10px auto;
  padding-right: 30px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

optgroup {
  font-weight: 700;
  color: #2b6cb0;
}

/* Action Buttons */
button[type="submit"],
button[type="reset"] {
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-right: 12px;
  margin-top: 10px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

button[type="submit"] {
  background-color: #2b6cb0;
  color: #ffffff;
}

button[type="submit"]:hover {
  background-color: #1c4ed8;
}

button[type="reset"] {
  background-color: #718096;
  color: #ffffff;
}

button[type="reset"]:hover {
  background-color: #4a5568;
}

/* Multi-Domain Links Footer Table */
#WebSiteGroup {
  width: 100%;
  max-width: 960px;
  margin: 25px auto 0 auto;
  border-top: 1px solid #cbd5e0;
  padding-top: 15px;
  text-align: center;
}

#WebSiteGroup td {
  padding: 6px 12px;
}

#WebSiteGroup h6 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

#WebSiteGroup a {
  color: #2b6cb0;
  text-decoration: none;
}

#WebSiteGroup a:hover {
  text-decoration: underline;
  color: #1a365d;
}

/* Responsive Mobile Tweaks */
@media (max-width: 600px) {
  .container {
    padding: 20px 15px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  button[type="submit"],
  button[type="reset"] {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }
}