* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: #f5f7fa;
  line-height: 1.6;
  color: #1e293b;
}

.form-container {
  max-width: 1000px;
  margin: 50px auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(0, 34, 68, 0.15);
  padding: 40px;
  border: 1px solid #e9edf2;
}

.form-header {
  margin-bottom: 35px;
  padding-bottom: 20px;
  border-bottom: 2px solid #eef2f6;
}

.form-header h2 {
  color: #0b3954;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.form-header p {
  color: #5e6f88;
  font-size: 15px;
}

.flex-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.flex-col {
  flex: 1;
  min-width: 180px;
}

.flex-col-2 {
  flex: 2;
  min-width: 250px;
}

.flex-col-3 {
  flex: 3;
  min-width: 300px;
}

hr {
  margin: 35px 0;
  border: 0;
  border-top: 1px solid #e6eaf0;
}

label {
  font-weight: 500;
  font-size: 14px;
  color: #34495e;
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-size: 12px;
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background-color: #ffffff;
  transition: all 0.2s ease;
  color: #1e293b;
}

input:hover, select:hover, textarea:hover {
  border-color: #b0c4de;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #0b5e8a;
  box-shadow: 0 0 0 4px rgba(11, 94, 138, 0.08);
}

input[type="radio"], input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  accent-color: #0b5e8a;
}

.form-group {
  background: #fafcff;
  border: 1px solid #e9ecf2;
  border-radius: 16px;
  padding: 24px;
  margin: 25px 0;
}

.form-group h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0b3954;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: #0b5e8a;
  border-radius: 4px;
}

.form-group h4 {
  font-size: 16px;
  font-weight: 500;
  color: #2c3e50;
  margin: 20px 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px dashed #d0dbea;
}

.note-box {
  background: #f0f7ff;
  border: 1px solid #b8d1f0;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 20px 0 25px 0;
  border-left: 4px solid #0b5e8a;
}

.note-box p {
  margin: 0;
  color: #1e3a6b;
  font-size: 14px;
  line-height: 1.6;
}

.note-box strong {
  color: #0b3954;
  font-weight: 600;
}

.checkbox-group, .radio-group {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  padding: 18px;
  margin: 15px 0;
}

.checkbox-group p, .radio-group p {
  font-weight: 500;
  color: #34495e;
  margin-bottom: 12px;
  font-size: 14px;
}

.checkbox-group label, .radio-group label {
  display: inline-flex;
  align-items: center;
  margin-right: 25px;
  margin-bottom: 10px;
  font-weight: 400;
  text-transform: none;
  font-size: 14px;
  color: #2c3e50;
  cursor: pointer;
}

.checkbox-group label input, .radio-group label input {
  margin-right: 6px;
}

.required-field::after {
  content: " *";
  color: #c0392b;
  font-weight: 600;
  font-size: 14px;
}

.submit-btn {
  text-align: center;
  margin-top: 40px;
  padding-top: 25px;
  border-top: 2px solid #eef2f6;
}

.submit-btn input[type="submit"] {
  background: #0b5e8a;
  color: white;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 42px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  width: auto;
  min-width: 280px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 8px 16px -4px rgba(11, 94, 138, 0.25);
  transition: all 0.2s ease;
}

.submit-btn input[type="submit"]:hover {
  background: #094b72;
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -6px rgba(11, 94, 138, 0.35);
}

.submit-btn input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px -2px rgba(11, 94, 138, 0.25);
}

.service-category {
  background: #f8fafd;
  border-radius: 12px;
  padding: 20px;
  margin: 15px 0;
  border: 1px solid #e2eaf2;
}

.service-category h5 {
  font-size: 15px;
  font-weight: 600;
  color: #0b3954;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* RESPONSIVE FIXES */
@media (max-width: 768px) {
  .form-container {
    padding: 20px;
    margin: 15px;
  }
  
  .form-header h2 {
    font-size: 20px;
  }
  
  .flex-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .flex-col, .flex-col-2, .flex-col-3 {
    width: 100%;
    min-width: 100%;
  }
  
  .checkbox-group label, .radio-group label {
    display: flex;
    width: 100%;
    margin-right: 0;
    margin-bottom: 12px;
  }
  
  .checkbox-group, .radio-group {
    padding: 15px;
  }
  
  .note-box {
    padding: 15px;
  }
  
  .form-group {
    padding: 20px;
  }
  
  /* IMPROVED BUTTON STYLING FOR MOBILE */
  .submit-btn input[type="submit"] {
    width: 100%;
    min-width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    white-space: normal;
    word-wrap: break-word;
    height: auto;
    line-height: 1.4;
    border-radius: 40px;
    box-shadow: 0 4px 10px rgba(11, 94, 138, 0.2);
  }
  
  .radio-group label, .checkbox-group label {
    display: flex !important;
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
    font-size: 15px;
  }
  
  .radio-group label input, .checkbox-group label input {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
  
  /* Improve touch targets */
  input, select, textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 14px;
  }
  
  /* Better spacing for mobile */
  .note-box p {
    font-size: 14px;
  }
  
  h3 {
    font-size: 18px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .form-container {
    padding: 15px;
    margin: 10px;
  }
  
  .form-header h2 {
    font-size: 18px;
    line-height: 1.3;
  }
  
  .form-header p {
    font-size: 13px;
  }
  
  label {
    font-size: 11px;
  }
  
  input, select, textarea {
    padding: 12px;
    font-size: 15px;
  }
  
  .note-box p {
    font-size: 13px;
  }
  
  /* Even better button for very small screens */
  .submit-btn input[type="submit"] {
    font-size: 15px;
    padding: 14px 16px;
    border-radius: 30px;
    letter-spacing: 0.3px;
  }
  
  /* Make checkboxes and radios easier to tap */
  .checkbox-group label, .radio-group label {
    margin-bottom: 15px;
    font-size: 14px;
  }
  
  .checkbox-group label input, .radio-group label input {
    width: 22px;
    height: 22px;
  }
}

/* Add hover effect for better UX on touch devices */
@media (hover: hover) {
  .submit-btn input[type="submit"]:hover {
    background: #094b72;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -6px rgba(11, 94, 138, 0.35);
  }
}

/* Ensure button is always tappable */
.submit-btn {
  margin-top: 30px;
  padding-top: 20px;
}

.submit-btn input[type="submit"] {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: all 0.2s ease;
}

/* Active state for touch feedback */
.submit-btn input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(11, 94, 138, 0.3);
  background: #063b5a;
}