/* ========================================
   Layout
======================================== */
.agendamento {
  background: #f4f6f8;
  border-top: 1px solid #d7dde3;
  border-bottom: 1px solid #d7dde3;
  padding: 72px 0 96px;
}

.agendamento-title {
  margin-bottom: 32px;
}

.agendamento-title h2 {
  font-family: 'Bebas Neue', 'Arimo', sans-serif;
  font-weight: 400;
  font-size: clamp(3.4rem, 5vw, 5.6rem);
  letter-spacing: 0;
  line-height: .92;
  text-transform: uppercase;
  color: #101828;
}

.agendamento-title h2 span {
  color: #E87B2A;
}

.agendamento-title p {
  max-width: 620px;
  margin: 12px auto 0;
  color: #4a5565;
  font-size: 16px;
  line-height: 1.6;
}

.agend-wrap {
  max-width: 710px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1px solid #d7dde3;
  border-radius: 8px;
  padding: 36px;
  box-shadow: 2px 2px 5px rgba(9,31,54,.10);
}

/* ========================================
   Form
======================================== */
.agend-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agend-form-row {
  display: flex;
  gap: 10px;
  width: 100%;
}
.agend-form-row-center {
  justify-content: center;
}

.agend-form-field {
  flex: 1;
}
.agend-form-field-full {
  flex: 1 1 100%;
}
.agend-form-field-half {
  flex: 0 0 350px;
}

.agend-form-input {
  width: 100%;
  background: rgba(1, 2, 3, 0.05);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(1, 2, 3, 0.9);
  outline: none;
  box-shadow: inset 1px 1px 3px rgba(9,31,54,.09), inset -1px -1px 3px rgba(255,255,255,.52);
  transition: border-color .15s, background .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.agend-form-input::placeholder {
  color: rgba(1, 2, 3, 0.6);
}
.agend-form-input:hover {
  background: rgba(1, 2, 3, 0.055);
}
.agend-form-input:focus {
  background: rgba(1, 2, 3, 0.025);
  border-color: transparent;
}

.agend-form-textarea {
  height: 110px;
  resize: none;
  padding: 12px 14px;
  vertical-align: top;
}

.agend-form-select-wrap {
  position: relative;
  width: 100%;
}
.agend-form-select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: calc(50% - 2px);
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(1,2,3,.72);
  border-bottom: 2px solid rgba(1,2,3,.72);
  transform: rotate(45deg);
  transform-origin: center;
  pointer-events: none;
  transition: border-color .15s, transform .15s;
}
.agend-form-select-wrap:focus-within::after {
  border-color: #E87B2A;
  transform: rotate(225deg);
}
.agend-form-select {
  cursor: pointer;
  padding-right: 36px;
}

.agend-form-or {
  font-family: 'Arimo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #4a5565;
  text-align: center;
  width: 100%;
  padding: 2px 0;
}

/* ========================================
   Calendar
======================================== */
.cal {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  padding: 34px 0 54px;
}

.cal-header {
  display: grid;
  grid-template-columns: repeat(7, 30px);
  gap: 62px;
}
.cal-day-name {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 25px;
  color: #000;
  text-align: center;
  line-height: 1;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 30px);
  gap: 25px 62px;
}

.cal-day {
  width: 30px;
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  border-radius: 8px;
  transition: background .15s, box-shadow .15s, color .15s, transform .15s;
}

.cal-num {
  font-family: 'Roboto', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  line-height: 1;
  display: block;
}

.cal-dot {
  width: 4px;
  height: 4px;
  border-radius: var(--radius-pill);
  display: block;
  flex-shrink: 0;
}

.cal-day-closed          { cursor: default; }
.cal-day-closed .cal-num { color: #808080; }
.cal-day-closed .cal-dot { background: #808080; }

.cal-day-few .cal-num   { color: var(--text-dark); }
.cal-day-few .cal-dot   { background: var(--yellow); }
.cal-day-few:hover .cal-num { color: var(--yellow-dark); }

.cal-day-open .cal-num  { color: var(--text-dark); }
.cal-day-open .cal-dot  { background: var(--text-dark); }
.cal-day-open:hover .cal-num { color: var(--yellow); }

.cal-day-other           { cursor: default; }
.cal-day-other .cal-num { color: #808080; }

.cal-day:not(.cal-day-closed):not(.cal-day-other) {
    cursor: pointer;
    background: rgba(1, 2, 3, 0.035);
    box-shadow: 2px 2px 5px rgba(9,31,54,.10), -2px -2px 5px rgba(255,255,255,.85);
}

.cal-day:not(.cal-day-closed):not(.cal-day-other):hover {
    transform: translateY(-1px);
    box-shadow: 3px 3px 7px rgba(9,31,54,.12), -3px -3px 7px rgba(255,255,255,.9);
}

.cal-day-selected {
    background-color: #E87B2A;
    border-radius: 8px;
    box-shadow: inset 2px 2px 4px rgba(104,48,12,.28), inset -2px -2px 4px rgba(255,188,128,.22);
    transform: none;
}
.cal-day-selected .cal-num {
    color: #ffffff;
    font-weight: 700;
}
.cal-day-selected .cal-dot {
    background: rgba(255, 255, 255, 0.7);
}

.agendamento-submit {
  display: flex;
  justify-content: center;
  width: 100%;
}

.agend-submit-btn {
  width: 100%;
  max-width: 500px;
  background: #E87B2A;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 32px;
  font-family: 'Arimo', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
  transition: background .18s, box-shadow .18s, transform .18s;
}
.agend-submit-btn:hover {
  background: #C4611A;
  box-shadow: 0 8px 18px rgba(9,31,54,.16);
  transform: translateY(-2px);
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 768px) {
  .agendamento {
    padding: 52px 0 76px;
  }

  .agendamento-title h2 {
    font-size: 3.8rem;
  }

  .agend-wrap {
    padding: 26px;
  }

  .agend-form-row {
    flex-direction: column;
  }

  .agend-form-field-half {
    flex-basis: auto;
    width: 100%;
  }
}
