.FormInput:-webkit-autofill,
.FormInput:-webkit-autofill:hover,
.FormInput:-webkit-autofill:focus,
.FormTextarea:-webkit-autofill,
.FormTextarea:-webkit-autofill:hover,
.FormTextarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #000 inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  transition: background-color 5000s ease-in-out 0s;
}

/* ============================================================
   CONTACT PAGE — HERO
   ============================================================ */

.ContactHero {
  background: #000;
  padding: 18vw 7.34% 8vw;
  position: relative;
  overflow: hidden;
}

.ContactHero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 7.34%; right: 7.34%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.ContactHeroInner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: end;
}

.ContactPageHeadline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3.2rem, 7.5vw, 8.5rem);
  line-height: 0.95;
  color: #fff;
  letter-spacing: -0.02em;
}

.ContactPageHeadline em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.35);
}

.ContactHeroRight {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 0.5rem;
}

.ContactHeroDesc {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.5);
  max-width: 38ch;
}

/* ============================================================
   CONTACT PAGE — BODY
   ============================================================ */

.ContactSection {
  background: #000;
  padding: 8vw 7.34% 12vw;
  position: relative;
}

.ContactGrid {
  display: grid;
  grid-template-columns: 36% 1fr;
  gap: 8vw;
  align-items: start;
}

/* ── Left: Info Panel ── */

.ContactInfoPanel {
  position: sticky;
  top: 9rem;
}

.ContactInfoHeadline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 2.4vw, 2.8rem);
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 1.6rem;
}

.ContactInfoHeadline em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.38);
}

.ContactInfoBody {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.82rem, 0.95vw, 0.92rem);
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 3.5rem;
}

.ContactDetails {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  padding-top: 2.5rem;
}

.ContactDetailLabel {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 0.45rem;
}

.ContactDetailValue {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.82rem, 0.95vw, 0.92rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.22s ease;
  display: inline-block;
}

a.ContactDetailValue:hover {
  color: #fff;
}

.ContactResponseNote {
  margin-top: 3rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.ContactResponseDot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c8f542;
  flex-shrink: 0;
  margin-top: 0.45rem;
  box-shadow: 0 0 6px rgba(200, 245, 66, 0.5);
}

.ContactResponseText {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.02em;
}

/* ── Right: Form ── */

.ContactForm {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Row: two fields side by side */
.FormRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 4vw;
}

/* Single field wrapper */
.FormField {
  border: none !important;
  display: flex;
  flex-direction: column;
  padding: 2.2rem 0 0;
  position: relative;
}

.FormField:first-child,
.FormRow:first-child .FormField {
  border-top: none;
  padding-top: 0;
}

.FormRow + .FormRow .FormField,
.FormRow + .FormField {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2.2rem;
}

.FormLabel {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.9rem;
  transition: color 0.2s ease;
}

.FormLabelE {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.9rem;
  transition: color 0.2s ease;
}

.FormField:focus-within .FormLabel {
  color: rgba(255, 255, 255, 0.7);
}

.FormInput,
.FormTextarea,
.FormSelect {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  outline: none;
  width: 100%;
  padding: 0.6rem 0 0.9rem;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.02em;
  transition: border-color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.FormInput::placeholder,
.FormTextarea::placeholder {
  color: rgba(255, 255, 255, 0.18);
}

.FormInput:focus,
.FormTextarea:focus,
.FormSelect:focus {
  border-bottom-color: rgba(255, 255, 255, 0.55);
}

.FormSelect {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.45);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='rgba(255,255,255,0.35)' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 1.5rem;
}

.FormSelect option {
  background: #111;
  color: #fff;
}

.FormSelect.has-value {
  color: #fff;
}

.FormTextarea {
  resize: none;
  min-height: 120px;
  line-height: 1.75;
}

/* ── Service interest pills ── */

.ServicePills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
}

.ServicePill {
  display: none; /* hide the real checkbox */
}

.ServicePillLabel {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.2s ease,
              border-color 0.2s ease,
              background 0.2s ease;
  user-select: none;
}

.ServicePillLabel:hover {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.3);
}

.ServicePill:checked + .ServicePillLabel {
  color: #000;
  background: #fff;
  border-color: #fff;
}

/* ── Submit area ── */

.FormSubmitRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 3rem;
  margin-top: 2.5rem;
  gap: 2rem;
}

.FormNote {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.04em;
  line-height: 1.6;
  max-width: 30ch;
}

.FormSubmitBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #000;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 0.8rem 1.8rem;
  cursor: pointer;
  transition: background 0.25s ease,
              color 0.25s ease,
              border-color 0.25s ease;
}

.FormSubmitBtn:hover {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.FormSubmitBtn svg {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.FormSubmitBtn:hover svg {
  transform: translateX(4px);
}

/* ── Success / error states ── */

.FormStatus {
  display: none;
  margin-top: 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.FormStatus.success {
  display: block;
  color: #c8f542;
}

.FormStatus.error {
  display: block;
  color: rgba(255, 100, 100, 0.8);
}

/* ── Newsletter checkbox ── */

.NewsletterRow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 2rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2.2rem;
  cursor: pointer;
  user-select: none;
}

/* Hide the real input */
.NewsletterInput {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Custom box */
.NewsletterBox {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.NewsletterBox svg {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.NewsletterInput:checked ~ .NewsletterBox {
  background: #fff;
  border-color: #fff;
}

.NewsletterInput:checked ~ .NewsletterBox svg {
  opacity: 1;
}

.NewsletterLabel {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.04em;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.NewsletterRow:hover .NewsletterLabel {
  color: rgba(255, 255, 255, 0.65);
}

.NewsletterRow:hover .NewsletterBox {
  border-color: rgba(255, 255, 255, 0.5);
}

/* ── Button sending state ── */

.FormSubmitBtn.sending {
  opacity: 0.55;
  pointer-events: none;
}

.FormSubmitBtn.sending .BtnText::after {
  content: '…';
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */

@media (max-width: 900px) {
  .ContactHeroInner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .ContactGrid {
    grid-template-columns: 1fr;
    gap: 6vw;
  }

  .ContactInfoPanel {
    position: static;
  }

  .ContactDetails {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem 4rem;
  }

  .FormRow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .FormSubmitRow {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 560px)
   ============================================================ */

@media (max-width: 560px) {
  .ContactHero {
    padding: 22vw 6% 10vw;
  }

  .ContactSection {
    padding: 12vw 6% 14vw;
  }

  .ContactDetails {
    flex-direction: column;
    gap: 2rem;
  }

  .ServicePills {
    gap: 0.4rem;
  }

  .FormLabelE {
  margin-top: 1.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.9rem;
  transition: color 0.2s ease;
}
}
