/* Contact page V27 — scoped to the existing Hussain Ahmad portfolio theme. */
body.contact-page {
  background: var(--paper, #fff8e8);
}
.contact-page main {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(242,190,34,.10), transparent 28%),
    var(--paper, #fff8e8);
}
.contact-hero-v27 {
  padding: clamp(132px, 14vw, 190px) 0 clamp(72px, 8vw, 118px);
  background:
    linear-gradient(90deg, transparent 0 72%, rgba(116,20,44,.045) 72% 100%),
    #fff;
  border-bottom: 1px solid var(--line, #d9c7aa);
}
.contact-breadcrumb-v27 { margin-bottom: clamp(42px, 6vw, 78px); }
.contact-hero-grid-v27 {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  align-items: end;
  gap: clamp(44px, 7vw, 110px);
}
.contact-hero-copy-v27 h1 {
  max-width: 900px;
  margin: 20px 0 0;
  color: var(--ink, #120c0e);
  font-size: clamp(58px, 8.1vw, 132px);
  line-height: .88;
  letter-spacing: -.075em;
}
.contact-hero-copy-v27 h1 br + * { color: var(--red, #74142c); }
.contact-hero-note-v27 {
  padding: 28px 0 4px;
  border-top: 5px solid var(--green, #f2be22);
}
.contact-hero-note-v27 p {
  margin: 0 0 24px;
  color: var(--muted, #6f5f62);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
}
.contact-hero-note-v27 > span {
  display: block;
  color: var(--red, #74142c);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.contact-main-v27 { padding: clamp(70px, 9vw, 132px) 0; }
.contact-layout-v27 {
  display: grid;
  grid-template-columns: minmax(300px, .76fr) minmax(0, 1.24fr);
  align-items: start;
  gap: clamp(22px, 3vw, 44px);
}
.contact-info-card-v27,
.contact-form-card-v27 {
  border-radius: 28px;
  box-shadow: 0 22px 65px rgba(44,12,22,.13);
}
.contact-info-card-v27 {
  position: sticky;
  top: 112px;
  padding: clamp(34px, 4vw, 54px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 94% 8%, rgba(242,190,34,.19), transparent 27%),
    linear-gradient(145deg, #79172f, #4f0a1d 72%);
}
.contact-info-card-v27::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 42px solid rgba(242,190,34,.12);
  border-radius: 50%;
  pointer-events: none;
}
.contact-card-kicker-v27 {
  display: inline-flex;
  margin-bottom: 30px;
  padding: 9px 13px;
  color: #111;
  background: var(--green, #f2be22);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .12em;
}
.contact-info-card-v27 h2 {
  max-width: 460px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(34px, 4vw, 57px);
  line-height: .98;
  letter-spacing: -.055em;
}
.contact-info-card-v27 > p {
  max-width: 520px;
  margin: 0;
  color: #e7d6db;
  font-size: 15px;
  line-height: 1.65;
}
.contact-direct-list-v27 {
  position: relative;
  z-index: 1;
  display: grid;
  margin-top: 42px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.contact-direct-list-v27 > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.contact-direct-list-v27 small {
  padding-top: 3px;
  color: var(--green, #f2be22);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.contact-direct-list-v27 a,
.contact-direct-list-v27 span {
  min-width: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.contact-direct-list-v27 a:hover { color: var(--green, #f2be22); }
.contact-card-note-v27 {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  margin-top: 36px;
  padding: 22px;
  color: #170c10;
  background: var(--green, #f2be22);
  border-radius: 18px;
}
.contact-card-note-v27 b { margin-bottom: 4px; font-size: 13px; }
.contact-card-note-v27 span { position: relative; padding-left: 17px; font-size: 12px; font-weight: 700; line-height: 1.45; }
.contact-card-note-v27 span::before { content: "↗"; position: absolute; left: 0; top: 0; }
.contact-form-card-v27 {
  padding: clamp(30px, 4.8vw, 64px);
  background: #fff;
  border: 1px solid rgba(116,20,44,.12);
}
.contact-form-head-v27 {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line, #d9c7aa);
}
.contact-form-index-v27 {
  display: grid;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  place-items: center;
  color: #111;
  background: var(--green, #f2be22);
  border: 2px solid #111;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 950;
}
.contact-form-head-v27 small {
  display: block;
  margin: 4px 0 8px;
  color: var(--red, #74142c);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .13em;
}
.contact-form-head-v27 h2 {
  margin: 0;
  color: var(--ink, #120c0e);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -.055em;
}
.contact-alert-v27 {
  display: grid;
  gap: 5px;
  margin: 0 0 28px;
  padding: 18px 20px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}
.contact-alert-success-v27 { color: #1b1404; background: #fff0b2; border: 1px solid #e1aa00; }
.contact-alert-error-v27 { color: #fff; background: var(--red, #74142c); border: 1px solid var(--red-dark, #4f0a1d); }
.contact-fields-v27 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.contact-fields-v27 label { display: grid; gap: 9px; min-width: 0; }
.contact-fields-v27 label > span {
  color: var(--ink, #120c0e);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.contact-fields-v27 input,
.contact-fields-v27 select,
.contact-fields-v27 textarea {
  width: 100%;
  min-width: 0;
  color: var(--ink, #120c0e);
  background: var(--paper, #fff8e8);
  border: 1px solid var(--line, #d9c7aa);
  border-radius: 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-fields-v27 input,
.contact-fields-v27 select { min-height: 54px; padding: 0 16px; }
.contact-fields-v27 textarea { min-height: 178px; padding: 16px; resize: vertical; line-height: 1.6; }
.contact-fields-v27 input::placeholder,
.contact-fields-v27 textarea::placeholder { color: #978589; }
.contact-fields-v27 input:focus,
.contact-fields-v27 select:focus,
.contact-fields-v27 textarea:focus {
  background: #fff;
  border-color: var(--red, #74142c);
  box-shadow: 0 0 0 4px rgba(116,20,44,.10);
}
.contact-field-full-v27 { grid-column: 1 / -1; }
.contact-submit-row-v27 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line, #d9c7aa);
}
.contact-submit-row-v27 p {
  max-width: 290px;
  margin: 0;
  color: var(--muted, #6f5f62);
  font-size: 12px;
  line-height: 1.55;
}
.contact-submit-row-v27 .btn { flex: 0 0 auto; }
.contact-honeypot-v27 {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.contact-bottom-strip-v27 {
  color: #111;
  background: var(--green, #f2be22);
  border-top: 6px solid var(--red, #74142c);
  border-bottom: 1px solid #111;
}
.contact-bottom-strip-v27 .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  min-height: 88px;
}
.contact-bottom-strip-v27 span {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-bottom-strip-v27 i { width: 7px; height: 7px; background: var(--red, #74142c); border-radius: 50%; }
@media (max-width: 1050px) {
  .contact-layout-v27 { grid-template-columns: 1fr; }
  .contact-info-card-v27 { position: relative; top: auto; }
  .contact-direct-list-v27 { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; gap: 12px; }
  .contact-direct-list-v27 > div { grid-template-columns: 1fr; align-content: start; padding: 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; }
}
@media (max-width: 760px) {
  .contact-hero-v27 { padding-top: 110px; }
  .contact-hero-grid-v27 { grid-template-columns: 1fr; gap: 34px; }
  .contact-hero-copy-v27 h1 { font-size: clamp(50px, 15vw, 82px); }
  .contact-hero-note-v27 { max-width: 560px; }
  .contact-direct-list-v27 { grid-template-columns: 1fr; }
  .contact-fields-v27 { grid-template-columns: 1fr; }
  .contact-field-full-v27 { grid-column: auto; }
  .contact-submit-row-v27 { align-items: stretch; flex-direction: column; }
  .contact-submit-row-v27 .btn { width: 100%; }
  .contact-bottom-strip-v27 .container { justify-content: flex-start; padding-top: 24px; padding-bottom: 24px; }
}
@media (max-width: 520px) {
  .contact-info-card-v27,
  .contact-form-card-v27 { border-radius: 20px; }
  .contact-info-card-v27 { padding: 30px 24px; }
  .contact-form-card-v27 { padding: 28px 20px; }
  .contact-form-head-v27 { gap: 14px; }
  .contact-form-index-v27 { width: 42px; height: 42px; flex-basis: 42px; }
  .contact-form-head-v27 h2 { font-size: 36px; }
}
