/* ---------- Request for services (contact form) ---------- */

.abt-contact {
  background-color: #ffffff; /* fallback while the image loads */
  background-image: url("../../assets/why/form.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: clamp(50px, 6vw, 84px) 0;
}

/* Eyebrow above the section heading — matches the pill-free
   uppercase micro-label used across the site sections. */

.abt-req-t1 {
  display: block;
  margin-bottom: 12px;

  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: #1e72d1;
}

.abt-contact-title {
  max-width: 820px;
  margin: 0 0 8px;

  font-family: "Geist", "Inter", sans-serif;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.8px;

  color: #1c1c22;
}

.abt-contact-sub {
  margin: 0 0 26px;

  font-family: "Inter", sans-serif;
  font-size: 17px;
  line-height: 1.6;

  color: #5a5a64;
}

/* ---------- Form card ---------- */

.abt-form {
  position: relative;

  width: 100%;
  max-width: 900px;
  margin-inline: auto;

  overflow: hidden;

  background: #ffffff;
  border: 1px solid rgba(28, 28, 34, 0.06);
  border-radius: 20px;
  padding: clamp(22px, 2.8vw, 40px);

  box-shadow:
    0 24px 60px rgba(23, 40, 90, 0.1),
    0 8px 20px rgba(23, 40, 90, 0.06);
}

/* Gradient hairline along the card top, same blue as the CTA. */

.abt-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;

  background: linear-gradient(90deg, #87ceeb 0%, #1e72d1 100%);
}

/* ---------- Rows ---------- */

.abt-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  margin-bottom: 20px;
}

.abt-form label {
  display: block;
}

/* ---------- Micro labels ---------- */

.abt-label {
  display: block;
  margin-bottom: 8px;

  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: #6b7080;
}

.abt-req {
  color: #1e72d1;
}

/* ---------- Fields ---------- */

.abt-form input[type="text"],
.abt-form input[type="email"],
.abt-form input[type="tel"],
.abt-form textarea {
  display: block;
  width: 100%;
  padding: 13px 15px;

  border: 1px solid #e2e6ef;
  border-radius: 12px;
  background: #f8fafc;

  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.4;

  color: #1c1c22;

  outline: none;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.abt-form textarea {
  resize: vertical;
  min-height: 118px;
}

.abt-form input::placeholder,
.abt-form textarea::placeholder {
  color: #9aa0b0;
}

.abt-form input:focus,
.abt-form textarea:focus {
  background: #ffffff;
  border-color: #1e72d1;
  box-shadow: 0 0 0 3px rgba(30, 114, 209, 0.12);
}

/* Only flags fields the visitor has actually filled in badly,
   so an untouched empty form never looks like an error. */

.abt-form input:user-invalid,
.abt-form textarea:user-invalid {
  border-color: #d14343;
  box-shadow: 0 0 0 3px rgba(209, 67, 67, 0.1);
}

.abt-form-message {
  grid-column: 1 / -1;
}

/* ---------- Checkboxes ---------- */

.abt-form-checks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  margin-bottom: 16px;
}

.abt-form .abt-form-check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;

  font-family: "Inter", sans-serif;
  font-size: 14.5px;
  line-height: 1.4;

  color: #4a4a55;
  cursor: pointer;
}

.abt-form-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;

  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;

  border: 1px solid #c9cfdd;
  border-radius: 5px;
  background: #ffffff;

  cursor: pointer;

  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.abt-form-check input[type="checkbox"]:hover {
  border-color: #1e72d1;
}

.abt-form-check input[type="checkbox"]:checked {
  border-color: #1e72d1;
  background: linear-gradient(135deg, #87ceeb 0%, #1e72d1 100%);
}

.abt-form-check input[type="checkbox"]:checked::after {
  content: "";
  display: block;
  width: 4px;
  height: 9px;
  margin: 2px auto 0;

  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.abt-form-check input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 114, 209, 0.16);
}

/* ---------- Action row ---------- */

.abt-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  margin-top: 24px;
  padding-top: 22px;

  border-top: 1px solid #eef0f5;
}

.abt-form-note {
  margin: 0;
  max-width: 38ch;

  font-family: "Inter", sans-serif;
  font-size: 13.5px;
  line-height: 1.5;

  color: #6b7080;
}

/* ---------- Submit button ---------- */

.abt-form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  flex-shrink: 0;
  margin: 0;
  padding: 14px 30px;

  border: none;
  border-radius: 12px;

  background: linear-gradient(135deg, #87ceeb 0%, #1e72d1 100%);

  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;

  box-shadow: 0 8px 20px rgba(23, 80, 183, 0.35);

  cursor: pointer;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.abt-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(23, 80, 183, 0.45);
}

.abt-form-submit:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(23, 80, 183, 0.28);
  transition-duration: 0.08s;
}

.abt-form-submit svg {
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.abt-form-submit:hover svg {
  transform: rotate(45deg);
}

/* ---------- Status messages ---------- */

.abt-form-msg {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;

  border-radius: 10px;

  font-family: "Inter", sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
}

.abt-form-msg.is-visible {
  display: block;
}

.abt-form-error {
  color: #b3261e;
  background: rgba(209, 67, 67, 0.08);
}

.abt-form-success {
  color: #1e7a3c;
  background: rgba(30, 122, 60, 0.08);
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .abt-form-row {
    grid-template-columns: 1fr 1fr;
  }

  .abt-form-message {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .abt-form-row {
    grid-template-columns: 1fr;
  }

  .abt-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .abt-form-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .abt-form input,
  .abt-form textarea,
  .abt-form-submit,
  .abt-form-submit svg {
    transition: none;
  }
}