*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  height: 100vh;
  background-color: #f5ede0;
}

.container {
  width: min(100% - 2rem, 47rem);
  margin: 5% auto;
  padding: 3rem 3.5rem;
  border-radius: 1.5rem;
  border: 1px solid #dbb89e;
  background: #fffcf5;
  box-shadow: 0 12px 28px 0 rgba(64, 33, 20, 0.12);
  font-family: "Inter", sans-serif;
}

.terracotta-accent {
  width: 4.5rem;
  margin-bottom: 1.5rem;
  height: 0.5rem;
  border-radius: 0.25rem;
  background: #ba4f38;
}

.title {
  margin-bottom: 0.56rem;
  color: #381f14;
  font-size: 2rem;
  font-weight: 700;
}

.subtitle {
  margin-bottom: 2.1rem;
  color: #634d40;
  font-size: 0.9rem;
  font-weight: 400;
}

form label,
.availability-legend {
  color: #45291c;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: normal;
}

label:not(.full-time-label, .part-time-label, .flexible-label) {
  display: block;
}

form div:has(.name-label, .email-label) {
  width: 48%;
  display: inline-block;
}

form div:nth-of-type(2) {
  margin-left: 1.2rem;
  margin-bottom: 1.75rem;
}

form div > input {
  margin-top: 0.56rem;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #c7a894;
  background: #fcf5e5;
  padding: 1rem;
  color: #381f14;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 400;
}

:is(input, select, textarea):focus {
  border-color: #ba4f38;
}

:is(input, select, textarea, .submit-btn):focus-visible {
  outline: 2px solid #ba4f38;
  outline-offset: 2px;
}
:is(input, select):valid {
  border-color: green;
}

:is(input, select, textarea):user-invalid {
  border-color: red;
}

:is(input[id="full-name"], input[id="email"], textarea)::placeholder {
  color: #7a6357;
}


form select {
  appearance: none;
  width: 100%;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #c7a894;
  background: #fcf5e5;

  color: #7a6357;
  font-family: inherit;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

select:valid,
select:open {
  color: #381f14;
}

.radio-group {
  margin-top: 1.75rem;
  border: none;
}
.radio-group section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: 0.87rem;
  border: 1px solid #dbb89e;
  background: #faf0de;
}


.radio-group input[type="radio"] {
  appearance: none;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  border: 2px solid #a68c7d;
  background-color: #fffcf5;
  vertical-align: bottom;
}


.radio-group input[type="radio"]::before {
  display: block;
  content: "";
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  transition: all 0.3s ease-in;
}

.radio-group input[type="radio"]:checked::before {
  transform: translate(1px, 1px);
  background-color: #ba4f38;
}

.radio-group input[type="radio"]:checked {
  border: none;
  background-color: #ba4f38;
  box-shadow: 1px 2px 8px currentColor;
}

.radio-group input[type="radio"]:checked + label {
  color: #ba4f38;
  font-size: 0.875rem;
}

form textarea {
  width: 100%;
  height: 7.25rem;
  margin-bottom: 1.75rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #c7a894;
  background: #fcf5e5;
  color: #381f14;
}

form textarea:user-valid {
  border-color: green;
}

.submit-btn {
  display: block;
  width: 95%;
  margin: auto;
  padding: 1rem;
  border: none;
  border-radius: 0.75rem;
  background: #ba4f38;

  color: #fffcf5;
  font-family: inherit;
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.submit-btn:hover {
  background-color: #9c3b29;
}

.mt-2 {
  margin-top: 0.56rem;
}
.mb-2 {
  margin-bottom: 0.56rem;
}

.mr-16 {
  margin-right: 4.6rem;
}

@media (max-width: 735px) {
  form div:nth-of-type(2) {
    display: block;
    margin-left: 0;
    margin-top: 0.56rem;
  }
}
