/* ── Contact Us ──────────────────────────────────────────── */
.contactus-section {
  /* === Typography defaults — overridden per-instance by ACF === */
  --atg-section-title-size: clamp(48px, 6vw, 72px);
  --atg-section-title-plain-color: #ffffff;
  --atg-subtitle-size: 17px;
  --atg-subtitle-color: var(--text-muted, #8b949e);
  --atg-label-size: 14px;
  --atg-label-color: #ffffff;
  --atg-input-size: 15px;
  --atg-input-color: #ffffff;
  --atg-button-size: 15px;
  --atg-button-color: #ffffff;
  --atg-footer-note-size: 13px;
  --atg-footer-note-color: var(--text-muted, #8b949e);
  /* (--atg-section-title-accent-color undeclared — accent uses cyan
      gradient by default; PHP emits an inline override when set.) */

  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.contactus-section::before {
  content: "";
  position: absolute;
  width: 661px;
  height: 361px;
  background: #278fb999;
  border-radius: 50%;
  bottom: -10%;
  left: -220px;
  transform: translateY(-50%);
  filter: blur(100px);
  opacity: 0.5;
  pointer-events: none;
}
.contactus-section::after {
  content: "";
  position: absolute;
  width: 661px;
  height: 361px;
  background: #278fb999;
  border-radius: 50%;
  top: 20%;
  right: -220px;
  transform: translateY(-50%);
  filter: blur(100px);
  opacity: 0.5;
  pointer-events: none;
}

/* ── Header ─────────────────────────────────────────────── */
.contactus__header {
  text-align: center;
  margin-bottom: 64px;
}

.contactus__title {
  margin: 0 0 24px;
  font-family: var(--font-heading, "Inter", system-ui, sans-serif);
  font-size: var(--atg-section-title-size);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 20.17%, #278fb9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.contactus__title-plain {
  color: var(--atg-section-title-plain-color);
}
.contactus__title-accent {
  background: linear-gradient(180deg, #aae3e8 0%, #00a8b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.contactus__subtitle {
  max-width: 700px;
  margin: 0 auto 12px;
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
  font-size: var(--atg-subtitle-size);
  line-height: 1.55;
  color: var(--atg-subtitle-color);
}
.contactus__subtitle--2 {
  margin-bottom: 0;
}

/* ── Form wrap ──────────────────────────────────────────── */
.contactus__form-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.contactus__form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Honeypot — visually hidden but in the DOM so bots fill it */
.contactus__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ── Field row layouts ─────────────────────────────────── */
.contactus__row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.contactus__field {
  display: flex;
  flex-direction: column;
}

.contactus__label {
  margin-bottom: 10px;
  font-family: var(--font-heading, "Inter", system-ui, sans-serif);
  font-size: var(--atg-label-size);
  font-weight: 500;
  color: var(--atg-label-color);
}

/* ── Inputs (text, email, textarea, select) ────────────── */
.contactus__input {
  width: 100%;
  background: rgba(15, 25, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px 20px;
  color: var(--atg-input-color);
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
  font-size: var(--atg-input-size);
  line-height: 1.4;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.contactus__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.contactus__input:focus {
  border-color: rgba(0, 195, 208, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 195, 208, 0.08);
}

.contactus__textarea {
  min-height: 140px;
  resize: vertical;
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
}

/* Invalid state set by JS */
.contactus__field--invalid {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

/* ── Project type dual control ─────────────────────────── */
.contactus__project-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.contactus__project-icon {
  flex: 0 0 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(15, 25, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: var(--primary, #00c3d0);
  pointer-events: none;
}
.contactus__project-icon svg {
  width: 18px;
  height: 18px;
}
.contactus__project-icon-chevron {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
}

.contactus__select {
  flex: 1 1 auto;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.55) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.55) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

/* ── Terms + Send button row ───────────────────────────── */
.contactus__terms-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.contactus__terms {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex: 1 1 280px;
  min-width: 0;
}

/* Native checkbox is hidden visually but kept accessible */
.contactus__checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.contactus__checkbox-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(15, 25, 42, 0.6);
  border: 1px solid rgba(0, 195, 208, 0.6);
  border-radius: 4px;
  color: transparent;
  flex-shrink: 0;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.contactus__checkbox-box svg {
  width: 12px;
  height: 12px;
}
.contactus__checkbox:checked + .contactus__checkbox-box {
  background: var(--primary, #00c3d0);
  border-color: var(--primary, #00c3d0);
  color: #ffffff;
}
.contactus__checkbox:focus-visible + .contactus__checkbox-box {
  outline: 2px solid rgba(0, 195, 208, 0.6);
  outline-offset: 2px;
}

.contactus__terms-text {
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-light, #e2e8f0);
}
.contactus__terms-text p {
  margin: 0;
}
.contactus__terms-text a {
  color: var(--primary, #00c3d0);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 195, 208, 0.3);
  transition: border-color 0.2s ease;
}
.contactus__terms-text a:hover {
  border-bottom-color: rgba(0, 195, 208, 0.8);
}

/* ── Send button ───────────────────────────────────────── */
.contactus__submit {
  background: var(--primary, #00c3d0);
  color: var(--atg-button-color);
  font-family: var(--font-heading, "Inter", system-ui, sans-serif);
  font-size: var(--atg-button-size);
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    opacity 0.2s ease;
}
.contactus__submit:hover:not(:disabled) {
  background: #19d2de;
}
.contactus__submit.is-submitting,
.contactus__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Privacy footer note ───────────────────────────────── */
.contactus__footer-note {
  margin-top: 32px;
  font-style: italic;
  font-size: var(--atg-footer-note-size);
  line-height: 1.5;
  color: var(--atg-footer-note-color);
}

/* ── Status messages (success / error) ─────────────────── */
.contactus__status {
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: 10px;
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.5;
}
.contactus__status[hidden] {
  display: none;
}
.contactus__status--success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}
.contactus__status--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* ── Tablet ─────────────────────────────────────────────── */
@media (max-width: 1024px) and (min-width: 768px) {
  .contactus-section {
    padding: 80px 0;
  }
  .contactus__header {
    margin-bottom: 48px;
  }
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 767px) {
  .contactus-section {
    padding: 60px 0;
  }
  .contactus__header {
    margin-bottom: 40px;
  }
  .contactus__row--two {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .contactus__terms-row {
    flex-direction: column;
    align-items: stretch;
  }
  .contactus__submit {
    width: 100%;
  }
}
