@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
  background-color: #f0f4f8; /* Light neutral background */
  /* margin: 0;
  padding: 2rem 1rem;
  font-family: 'Roboto', sans-serif;
  color: #1b1b1b;
  display: flex;
  justify-content: center;
  min-height: 100vh; */
}

.container {
  /* background: #ffffff; White clean background */
  /* max-width: 900px;
  width: 100%;
  padding: 3rem 3.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
} */

/* Headings */
h1 {
  color: #0c3c78;  /* Deep blue */
  font-weight: 700;
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 2.2rem;
  letter-spacing: 0.05em;
}

h2 {
  color: #0c3c78;
  border-bottom: 3px solid #c8102e;  /* USA red for borders */
  padding-bottom: 0.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.03em;
}

/* Form styling */
form {
  width: 100%;
}

/* Label styling */
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #1b1b1b;
  font-size: 1.05rem;
}

/* Required asterisk */
.required {
  color: #c8102e;
  margin-left: 0.25rem;
}

/* Inputs, selects, textareas */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea,
input[type="file"] {
  width: 100%;
  padding: 0.65rem 1.1rem;
  border: 2px solid #0c3c78; /* primary blue border */
  border-radius: 8px;
  font-size: 1rem;
  outline-offset: 3px;
  color: #1b1b1b;
  font-family: 'Roboto', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #ffffff;
  box-shadow: inset 0 2px 4px rgba(12, 60, 120, 0.1);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus,
input[type="file"]:focus {
  border-color: #c8102e;  /* red focus */
  box-shadow: 0 0 8px rgba(200, 16, 46, 0.5);
  background-color: #fff;
}

/* Textarea */
textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

/* Sections with table-like style */
.section {
  margin-bottom: 3rem;
  padding: 1.8rem 2rem;
  border: 2px solid #0c3c78;  /* blue border */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.07); /* subtle red shadow */
  background-color: #f9fbfc; /* very light blue background */
}

/* Grouped fields in tables style */
.table-group {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.9rem;
}

.table-group tr {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(12, 60, 120, 0.1);
  border-radius: 10px;
  display: table-row;
}

.table-group td {
  padding: 0.75rem 1.2rem;
  vertical-align: middle;
  font-size: 1rem;
  border: none;
}

/* Label in table cells */
.table-group label {
  margin-bottom: 0;
  font-weight: 600;
}

/* Inputs in table cells adjust width */
.table-group input,
.table-group select,
.table-group textarea {
  width: 100%;
}

/* Submit button */
button[type="submit"] {
  background-color: #0c3c78;
  color: #ffffff;
  font-weight: 700;
  padding: 1.15rem 2rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  margin-top: 1.5rem;
}

button[type="submit"]:hover,
button[type="submit"]:focus {
  background-color: #c8102e; /* red on hover */
  box-shadow: 0 0 15px rgba(200, 16, 46, 0.7);
  outline: none;
}

/* Checkbox styling */
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  vertical-align: middle;
  margin-right: 0.5rem;
  accent-color: #c8102e;
}

label > input[type="checkbox"] {
  margin-bottom: 0;
  user-select: none;
}

/* Responsive Design */
@media (max-width: 900px) {
  .container {
    padding: 2rem 2rem;
  }
  h1 {
    font-size: 2.4rem;
  }
  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 1.2rem 1rem;
  }
  button[type="submit"] {
    font-size: 1.1rem;
  }
}

@media (max-width: 400px) {
  body {
    padding: 1rem 0.5rem;
  }
}
