/* === Global Body & Font === */
body {
  margin: 0;
  font-family: Segoe UI, Trebuchet MS, sans-serif;
  background-color: #e6f0ff;
  color: #1b1b1b;
}

/* === Header === */
#header {
  background-color: #cce5ff;
  border-bottom: 1px solid #99ccff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}
#header img {
  height: 125px;
  margin: 5px;
}

/* === Navigation === */
#nav-container {
  background-color: #99ccff;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid #6699cc;
}
#hamburger {
  display: none;
  font-size: 26px;
  padding: 12px;
  cursor: pointer;
  color: #003366;
}
#nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  flex: 1;
  padding: 12px 0;
}
#nav a {
  color: #003366;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  background-color: #cce0ff;
  transition: background 0.3s ease, transform 0.2s ease;
}
#nav a:hover {
  background-color: #d8ecff;
  box-shadow: 0 0 10px rgba(0, 102, 204, 0.4);
  transform: scale(1.08);
}

/* === Main Content === */
#main {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
#main h2 {
  font-size: 32px;
  color: #003366;
  margin-top: 0;
  margin-bottom: 10px;
}
#main p {
  font-size: 16px;
}

/* === Service Table === */
table.services-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: #e9f1fb;
  color: #000;
}
table.services-table th,
table.services-table td {
  padding: 12px 15px;
  border: 1px solid #ccc;
  text-align: left;
}
table.services-table thead {
  background-color: #005baa;
  color: #fff;
}
table.services-table tbody tr:nth-child(even) {
  background-color: #f3f8fd;
}
table.services-table tbody tr:hover {
  background-color: #dceeff;
}

/* === Form Fields === */
form {
  margin-top: 30px;
}
.form-wrapper {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

form p {
  margin-bottom: 25px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
form label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
form div {
  margin-bottom: 25px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.full-width-input {
  width: 100%;
  max-width: 500px;
  background-color: #f4f9ff;
  border: 1px solid #99ccff;
  border-radius: 10px;
  padding: 12px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.full-width-input:focus {
  border-color: #3399ff;
  box-shadow: 0 0 6px rgba(0, 119, 255, 0.3);
  outline: none;
}
textarea.full-width-input {
  resize: vertical;
}

/* === Fieldsets & Grouped Controls === */
fieldset {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
}
legend {
  font-weight: bold;
  padding: 0 8px;
  font-size: 16px;
  color: #003366;
}
fieldset label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: normal;
}
input[type="checkbox"],
input[type="radio"] {
  transform: scale(1.2);
  accent-color: #3399ff;
}

/* === Submit Button === */
#main button {
  background: linear-gradient(to right, #3399ff, #0055cc);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 85, 204, 0.3);
}
#main button:hover {
  background: linear-gradient(to right, #0077ff, #003399);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 51, 153, 0.4);
}

/* === Footer === */
#footer {
  background-color: #003366;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  font-size: 13px;
  border-top: 1px solid #002244;
}

/* === Mobile Adjustments === */
@media (max-width: 600px) {
  #hamburger {
    display: block;
  }
  #nav-container {
    flex-direction: column;
    align-items: flex-start;
  }
  #nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding-left: 10px;
  }
  #nav.show {
    display: flex;
  }
  #nav a {
    width: 100%;
    padding: 10px;
    background-color: #cce0ff;
    border-bottom: 1px solid #dddddd;
  }
  #nav a:hover {
    background-color: #d8ecff;
    box-shadow: 0 0 8px rgba(0, 102, 204, 0.3);
  }

  form input.full-width-input,
  form textarea.full-width-input,
  button[type="submit"] {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px;
  }

  fieldset {
    padding: 16px;
    margin-top: 20px;
  }

  fieldset label {
    font-size: 16px;
    line-height: 1.6;
  }

  legend {
    font-size: 17px;
  }

  button[type="submit"] {
    font-size: 18px;
    padding: 14px 0;
  }
}
