* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #24302f;
  background: #f1f3f0;
}

.container {
  width: min(760px, 92%);
  margin: 28px auto;
}

h1,
h2 {
  margin-top: 0;
}

h1 {
  font-size: 28px;
  margin-bottom: 6px;
}

h2 {
  font-size: 19px;
  margin-bottom: 16px;
}

.intro {
  color: #66716f;
  margin-bottom: 22px;
}

form,
section {
  background: #fff;
  border: 1px solid #d9dfdc;
  border-radius: 8px;
}

form {
  padding: 18px;
}

section {
  padding: 16px;
  margin-bottom: 16px;
}

.fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="number"],
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 9px;
  border: 1px solid #cbd4d0;
  border-radius: 5px;
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 88px;
}

.full-width {
  grid-column: 1 / -1;
}

.concerns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.concerns label {
  padding: 10px;
  border: 1px solid #d9dfdc;
  border-radius: 5px;
  font-weight: 400;
}

.concerns span {
  display: block;
  margin-top: 4px;
  margin-left: 22px;
  color: #687572;
  font-size: 13px;
}

button {
  border: 0;
  border-radius: 5px;
  padding: 10px 16px;
  background: #147d65;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #0d654f;
}

.schedule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.calendar,
.times {
  border: 1px solid #d9dfdc;
  border-radius: 6px;
  padding: 14px;
}

.calendar h3,
.times h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  text-align: center;
}

.weekdays {
  color: #687572;
  font-size: 12px;
  margin-bottom: 6px;
}

.days span,
.day {
  min-height: 30px;
}

.day {
  padding: 5px;
  background: #fff;
  color: #24302f;
  font-size: 13px;
  font-weight: 400;
}

.day.selected,
.time-slot.selected {
  background: #147d65;
  color: #fff;
}

.times p {
  margin: 0 0 10px;
  color: #687572;
  font-size: 13px;
}

.time-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.time-slot {
  padding: 8px 5px;
  background: #fff;
  color: #24302f;
  border: 1px solid #d9dfdc;
  font-size: 13px;
  font-weight: 400;
}

.confirmation {
  margin-top: 16px;
  padding: 16px;
}

.confirmation p {
  margin: 8px 0;
}

@media (max-width: 600px) {
  .fields,
  .concerns,
  .schedule {
    grid-template-columns: 1fr;
  }
}
