/* =========================
   Request form
========================= */

.request-section {
  padding-left: 0;
  padding-right: 0;
  background: #f9f7ff;
}

.request-box {
  width: auto;
  max-width: none;
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 26px;
  margin-left: 78px;
  margin-right: 78px;
  padding: 40px;
  overflow: visible;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}

.request-text p {
  max-width: 360px;
  margin: 18px 0 0;
  color: #666666;
  font-size: 15px;
  line-height: 1.65;
}

.request-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.request-form input,
.request-form textarea {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  background: #ffffff;
  color: #222222;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.request-form input {
  height: 50px;
  padding: 0 17px;
}

.request-form input[name="phone"]::placeholder {
  color: #777777;
}

.request-form textarea {
  min-height: 92px;
  grid-column: 1 / -1;
  padding: 13px 17px;
  resize: vertical;
}

.request-form input:focus,
.request-form textarea:focus,
.custom-select-trigger:focus,
.custom-select-trigger:hover,
.custom-select.is-open .custom-select-trigger {
  border-color: #e5e5e5;
  outline: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.custom-select {
  position: relative;
}

.custom-select.full {
  grid-column: 1 / -1;
}

.custom-select-trigger {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  background: #ffffff;
  color: #222222;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.custom-select-trigger span {
  color: #999999;
}

.custom-select.has-value .custom-select-trigger span {
  color: #222222;
}

.custom-select-trigger em {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #6f657f;
  font-size: 0;
  font-style: normal;
}

.custom-select-trigger em::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform 0.18s ease, top 0.18s ease;
}

.custom-select.is-open {
  z-index: 60;
}

.custom-select.is-open .custom-select-trigger em::before {
  top: 54%;
  transform: translate(-50%, -50%) rotate(225deg);
}

.custom-select.is-disabled .custom-select-trigger {
  cursor: not-allowed;
  background: #f3f3f3;
  color: #999999;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.02);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  display: none;
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.custom-select.is-open .custom-select-menu {
  display: block;
}

.custom-select-menu button {
  width: 100%;
  display: block;
  padding: 12px 17px;
  border: 0;
  background: #ffffff;
  color: #444444;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.custom-select-menu button:first-child,
.custom-select-menu button:hover {
  background: #f9f7ff;
}

.privacy-check {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  color: #666666;
  font-size: 12px;
  line-height: 1.45;
}

.privacy-check input {
  width: auto;
  height: auto;
  margin-top: 2px;
  box-shadow: none;
}

.submit-button {
  grid-column: 1 / -1;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.submit-button:hover {
  background: #f9f7ff;
  color: #222222;
  box-shadow: inset 0 0 0 1px #e4dcff;
}

.request-form-status {
  min-height: 22px;
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.4;
}

.request-form-status.is-success {
  color: #1f8f4d;
}

.request-form-status.is-error {
  color: #d93025;
}

.request-form button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.request-form input.is-field-error,
.request-form textarea.is-field-error,
.request-form .custom-select.is-field-error .custom-select-trigger {
  border-color: #d93025;
  box-shadow: 0 0 0 2px rgba(217, 48, 37, 0.12);
}

.request-form .privacy-check input.is-field-error + span {
  color: #d93025;
}

@media (max-width: 640px) {
  .custom-select-menu {
    max-height: 220px;
  }
}
