/* Contact actions inherit the approved page palette and existing geometry. */
button.footer-contact,
button.dialog-telegram,
.contact-text-action {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  color: #9eb5c6;
  cursor: pointer;
}
.contact-text-action {
  font: inherit;
}
button.footer-contact:hover,
.contact-text-action:hover {
  color: #b7c9d5;
}
.contact-text-action:focus-visible,
button.footer-contact:focus-visible {
  outline: 2px solid #9eb5c6;
  outline-offset: 6px;
}

.request-dialog {
  width: min(720px, calc(100% - 40px));
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-color: #30434e;
  scrollbar-color: #617c8c #0c181d;
}
.request-dialog [hidden] {
  display: none !important;
}
.request-dialog-header {
  position: relative;
  padding: 32px 36px 23px;
}
.request-dialog .dialog-close {
  right: 12px;
  top: 12px;
  z-index: 2;
}
.request-dialog .eyebrow {
  color: #9eb5c6;
  margin-bottom: 10px;
  font-size: 12px;
}
.request-dialog h2 {
  font-size: 32px;
  line-height: 1.15;
  padding-right: 22px;
  margin-bottom: 12px;
}
.request-intro {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 570px;
}
.request-form {
  padding: 0 36px 32px;
}
.request-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.request-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.request-field-wide {
  grid-column: 1 / -1;
}
.request-field label {
  color: #eef3f5;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 550;
}
.request-field label span {
  color: #9eafb8;
  font-size: 12px;
  font-weight: 400;
}
.request-field input,
.request-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #38505d;
  border-radius: 6px;
  background: #071216;
  color: #f7f8f9;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  padding: 11px 12px;
  min-height: 46px;
}
.request-field textarea {
  min-height: 112px;
  resize: vertical;
}
.request-field input::placeholder,
.request-field textarea::placeholder {
  color: #889da9;
  opacity: 1;
}
.request-field input:focus-visible,
.request-field textarea:focus-visible {
  outline: 2px solid #9eb5c6;
  outline-offset: 2px;
  border-color: #9eb5c6;
}
.request-field [aria-invalid="true"] {
  border-color: #e5a6a6;
}
.request-field .field-error {
  color: #f1b5b5;
  font-size: 13px;
  line-height: 1.4;
}
.request-privacy {
  margin-top: 18px;
  color: #a9bac4;
  font-size: 12px;
  line-height: 1.55;
}
.request-form-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 21px;
}
.request-form-actions .button {
  min-height: 48px;
  padding: 14px 24px;
  font-size: 14px;
}
.request-submit {
  min-width: 170px;
}
.request-submit:disabled {
  cursor: wait;
  opacity: 0.75;
  transform: none;
}
.request-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid #06121555;
  border-top-color: #061215;
  border-radius: 50%;
  animation: request-spin 0.8s linear infinite;
}
@keyframes request-spin {
  to {
    transform: rotate(360deg);
  }
}
.request-feedback {
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid #5f484d;
  border-radius: 6px;
  background: #231a20;
  color: #f1c1c1;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.request-feedback[data-state="loading"] {
  border-color: #3a5260;
  background: #12232b;
  color: #c1d1da;
}
.request-success {
  padding: 0 36px 34px;
  color: var(--muted);
}
.request-success h3 {
  color: #d6e9e7;
  font-size: 23px;
  margin-bottom: 12px;
}
.request-success p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 15px;
}
.request-reference {
  font-size: 12px !important;
  overflow-wrap: anywhere;
  color: #a9bac4;
}
.request-success .button {
  margin-top: 6px;
}
.request-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .request-dialog {
    width: calc(100% - 28px);
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
  }
  .request-dialog-header {
    padding: 27px 22px 21px;
  }
  .request-dialog h2 {
    font-size: 27px;
  }
  .request-intro {
    font-size: 14px;
  }
  .request-form {
    padding: 0 22px 25px;
  }
  .request-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .request-field-wide {
    grid-column: auto;
  }
  .request-form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .request-form-actions .button {
    width: 100%;
  }
  .request-success {
    padding: 0 22px 27px;
  }
}
@media (max-width: 360px) {
  .request-dialog-header {
    padding-inline: 18px;
  }
  .request-form,
  .request-success {
    padding-inline: 18px;
  }
  .request-dialog h2 {
    font-size: 25px;
  }
}
