.contact-main {
  flex: 1;
  display: grid;
  align-items: center;
  padding: 38px 0 58px;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 520px);
  align-items: center;
  gap: 58px;
}

.contact-intro {
  max-width: 590px;
}

.contact-intro h1 {
  max-width: 580px;
  margin: 18px 0 16px;
  font-size: 50px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0;
}

.contact-intro > p {
  max-width: 540px;
  color: var(--body);
  font-size: 17px;
  line-height: 1.65;
}

.contact-channels {
  max-width: 530px;
  display: grid;
  gap: 9px;
  margin-top: 28px;
}

.contact-channel {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 13px;
  padding: 10px 12px;
  border: 1px solid rgba(66, 133, 244, .15);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.contact-channel:hover {
  background: #fff;
  border-color: rgba(66, 133, 244, .32);
  transform: translateX(3px);
}

.contact-channel__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-tint);
  color: var(--brand-blue);
}

.contact-channel__icon svg {
  width: 19px;
  height: 19px;
}

.contact-channel b,
.contact-channel small {
  display: block;
}

.contact-channel b {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
}

.contact-channel small {
  margin-top: 1px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.contact-channel__arrow {
  width: 18px;
  height: 18px;
  color: var(--muted-2);
}

.contact-hours {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  color: #718096;
  font-size: 12.5px;
}

.contact-hours > span {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #09bd81;
  box-shadow: 0 0 0 4px rgba(1, 248, 159, .16);
}

.contact-card {
  width: 100%;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin: 0 0 7px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0;
}

.contact-card > p {
  margin-bottom: 23px;
  color: var(--muted);
  font-size: 14px;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 16px;
}

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

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.contact-field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.contact-field--wide {
  grid-column: 1 / -1;
}

.contact-field label {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #f8fbff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.contact-field input,
.contact-field select {
  min-height: 46px;
  padding: 0 13px;
}

.contact-field textarea {
  min-height: 112px;
  padding: 12px 13px;
  line-height: 1.5;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--muted-2);
}

.contact-field input:hover,
.contact-field select:hover,
.contact-field textarea:hover {
  border-color: #c7d2de;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  background: #fff;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(66, 133, 244, .13);
}

.contact-select {
  position: relative;
}

.contact-select select {
  appearance: none;
  padding-right: 42px;
  cursor: pointer;
}

.contact-select > svg {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.contact-consent {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
  cursor: pointer;
}

.contact-consent input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--brand-blue);
}

.contact-consent a {
  color: var(--blue-dark);
  font-weight: 600;
}

.contact-consent a:hover {
  color: var(--teal);
}

.contact-submit {
  min-height: 48px;
}

.contact-submit svg {
  width: 18px;
  height: 18px;
}

.contact-form__status {
  min-height: 17px;
  color: var(--brand-blue);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.contact-form__feedback {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 500;
}

.contact-form__feedback--success {
  border: 1px solid rgba(9, 189, 129, .25);
  background: rgba(9, 189, 129, .09);
  color: #087451;
}

.contact-form__feedback--error {
  border: 1px solid rgba(206, 38, 38, .2);
  background: #fff5f5;
  color: #a61c1c;
}

@media (max-width: 980px) {
  .contact-main {
    align-items: start;
    padding-top: 28px;
  }

  .contact-shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-intro {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
  }

  .contact-intro h1,
  .contact-intro > p,
  .contact-channels {
    margin-inline: auto;
  }

  .contact-intro h1 {
    font-size: 44px;
  }

  .contact-channels {
    max-width: 560px;
    text-align: left;
  }

  .contact-hours {
    justify-content: center;
  }

  .contact-card {
    max-width: 620px;
    margin-inline: auto;
  }
}

@media (max-width: 620px) {
  .contact-main {
    padding: 22px 0 40px;
  }

  .contact-intro h1 {
    font-size: 34px;
  }

  .contact-intro > p {
    font-size: 15.5px;
  }

  .contact-card {
    padding: 26px 20px;
    border-radius: 18px;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
  }

  .contact-field--wide {
    grid-column: auto;
  }
}

@media (max-width: 380px) {
  .contact-intro h1 {
    font-size: 30px;
  }

  .contact-card {
    padding-inline: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-channel,
  .contact-field input,
  .contact-field select,
  .contact-field textarea {
    transition: none;
  }
}
