@import url('/css/ai.css');

.request {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 8vw;
  align-items: start;
  padding: 80px 4.2vw 110px;
  background: #f7f6f2;
  min-height: calc(100svh - 140px);
}

.request-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  color: #ff2a67;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.request-kicker img {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

.request h1 {
  font-size: clamp(44px, 5.5vw, 84px);
  font-weight: 550;
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin: 0 0 24px;
  color: #18181b;
}

.request-intro > p:not(.eyebrow):not(.request-kicker) {
  font-size: 16px;
  line-height: 1.65;
  color: #52525b;
  max-width: 440px;
}

.request-intro .telegram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #18181b;
  border-radius: 999px;
  padding: 14px 24px;
  margin-top: 32px;
  font-weight: 650;
  font-size: 14px;
  color: #18181b;
  text-decoration: none;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: all 0.22s ease;
}

.request-intro .telegram-link:hover {
  background: #18181b;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.request-intro .request-hint {
  font-size: 12.5px !important;
  max-width: 340px;
  color: #71717a;
  margin-top: 18px;
  line-height: 1.5;
}

/* Form */
.request-form {
  display: grid;
  gap: 25px;
  padding: 0 0 0 3vw;
  border-left: 1px solid #d4cdc5;
}

.request-form label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #52525b;
  line-height: 1.5;
}

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

.request-form input:not([type=checkbox]),
.request-form select,
.request-form textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid #9c9289;
  background: transparent;
  padding: 12px 0;
  font: inherit;
  font-size: 14.5px;
  color: #18181b;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.request-form textarea {
  resize: vertical;
  min-height: 90px;
}

.request-form input:not([type=checkbox]):focus,
.request-form textarea:focus {
  outline: none;
  border-bottom-color: #ff2a67;
  box-shadow: 0 2px 0 #ff2a67;
  background: rgba(255, 42, 103, 0.03);
}

.form-notice {
  font-size: 11.5px;
  line-height: 1.5;
  background: transparent;
  border-left: 2px solid #ff2a67;
  padding: 0 0 0 14px;
  color: #71717a;
  margin: 0;
}

.request-form .check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  line-height: 1.4;
  color: #52525b;
  cursor: pointer;
  min-height: 34px;
}

.check-row input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 1px solid #a69890;
  border-radius: 6px;
  background: #fdfcfb;
  display: grid;
  place-content: center;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.check-row input[type=checkbox]:checked {
  background: #ff2a67;
  border-color: #ff2a67;
}

.check-row input[type=checkbox]:after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform 0.15s ease;
}

.check-row input[type=checkbox]:checked:after {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.check-row a {
  text-decoration: underline;
  color: inherit;
}

.check-row:has([name=meeting]) {
  padding: 14px 16px;
  background: #ebe6df;
  border-radius: 10px;
}

.check-row:has([name=meeting]:checked) {
  background: #f4dce3;
}

.request-form fieldset {
  background: #ebe6df;
  border: 0;
  border-radius: 12px;
  padding: 20px;
  margin: 0;
  min-width: 0;
}

.request-form fieldset[hidden] {
  display: none;
}

.request-form fieldset > p {
  font-size: 12px;
  line-height: 1.6;
  color: #655952;
  margin: 0 0 16px;
}

.request-form legend {
  font-size: 13.5px;
  font-weight: 700;
  padding: 0 6px;
  color: #262421;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.request-form .solid-button {
  width: 100%;
  min-height: 56px;
  font-size: 15px;
  background: #ff2a67;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(255, 42, 103, 0.28);
}

.request-form .solid-button:hover:not(:disabled) {
  background: #ff477e;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255, 42, 103, 0.38);
}

.request-form button:disabled {
  opacity: 0.55;
  cursor: wait;
}

#form-result:not(:empty) {
  padding: 16px 20px;
  border-left: 3px solid #10b981;
  background: #e6f7ef;
  font-size: 13.5px;
  line-height: 1.5;
  border-radius: 6px;
}

#form-result[data-error=true] {
  border-color: #ef4444;
  background: #fee2e2;
  color: #991b1b;
}

/* Custom Selects */
.select-field {
  min-width: 0;
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #52525b;
  line-height: 1.5;
}

.styled-select {
  position: relative;
  min-width: 0;
}

.select-trigger {
  font: inherit;
  font-size: 14.5px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #9c9289;
  background: transparent;
  color: #18181b;
  text-align: left;
  cursor: pointer;
}

.select-trigger:after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  transform: rotate(45deg);
  margin-right: 4px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.select-trigger[aria-expanded=true]:after {
  transform: rotate(225deg);
}

.select-trigger:focus-visible,
.select-trigger[aria-expanded=true] {
  outline: 0;
  border-color: #ff2a67;
  box-shadow: 0 2px 0 #ff2a67;
}

.select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  background: #fbf8f3;
  border: 1px solid #dbcec7;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  max-height: 260px;
  overflow-y: auto;
}

.select-options[hidden] {
  display: none;
}

.select-option {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 14px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 7px;
  padding: 11px 12px;
  cursor: pointer;
  color: #282421;
}

.select-option:hover,
.select-option:focus {
  outline: 0;
  background: #f5e4ea;
}

.select-option[aria-selected=true] {
  background: #fed7e2;
  color: #831843;
  font-weight: 600;
}

.request-form .select-field:has(.select-trigger[aria-expanded=true]) {
  position: relative;
  z-index: 31;
}

/* Responsive */
@media (max-width: 860px) {
  .request {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 50px 22px 75px;
  }

  .request-form {
    border-left: 0;
    border-top: 1px solid #d4cdc5;
    padding: 36px 0 0;
  }

  .form-pair {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .request h1 {
    font-size: clamp(38px, 9vw, 56px);
  }

  .request-form input,
  .request-form textarea,
  .request-form select,
  .select-trigger,
  .select-option {
    font-size: 16px !important;
  }
}
