/* Job Application Form Styles */

body {
  background-color: #adb886;
}

.application-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.form-wrapper {
  background-color: #f9f9f9;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-wrapper h1 {
  color: #333;
  margin-bottom: 10px;
  font-size: 2.5em;
  text-align: center;
}

.form-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 1.1em;
}

/* Fieldsets */
fieldset {
  border: none;
  border-top: 2px solid #e0e0e0;
  padding: 30px 0 20px 0;
  margin-bottom: 30px;
}

fieldset:first-of-type {
  border-top: none;
  padding-top: 0;
}

legend {
  font-size: 1.4em;
  font-weight: 600;
  color: #333;
  padding: 0 10px 15px 0;
  width: 100%;
}

/* Form Layout */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row.full {
  grid-template-columns: 1fr;
}

/* Labels and Inputs */
label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
  font-size: 0.95em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1em;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 1.5em;
  padding-right: 40px;
}

/* Checkboxes */
.checkbox-group label {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
  cursor: pointer;
  accent-color: #4CAF50;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
}

.btn-submit,
.btn-reset {
  padding: 12px 40px;
  font-size: 1.05em;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit {
  background-color: #4CAF50;
  color: white;
}

.btn-submit:hover {
  background-color: #45a049;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-reset {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
}

.btn-reset:hover {
  background-color: #e0e0e0;
}

.form-footer {
  text-align: center;
  color: #999;
  font-size: 0.9em;
  margin-top: 20px;
}

/* Required Field Indicator */
label::after {
  content: attr(data-required);
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-wrapper {
    padding: 30px 20px;
  }

  .form-wrapper h1 {
    font-size: 2em;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-submit,
  .btn-reset {
    width: 100%;
  }

  fieldset {
    padding: 20px 0 15px 0;
  }

  legend {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .application-container {
    padding: 10px;
    margin: 20px auto;
  }

  .form-wrapper {
    padding: 20px 15px;
  }

  .form-wrapper h1 {
    font-size: 1.7em;
  }

  .form-subtitle {
    font-size: 1em;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}
