.contact-page {
  --contact-bg: #1e262e;
  --contact-deep: #151d25;
  --contact-card: #27333e;
  --contact-red: #dc3545;
  --contact-red-hover: #f04b5c;
  --contact-white: #ffffff;
  --contact-muted: #aab4bf;
  --contact-light: #f6f7f8;

  width: 100%;
  overflow: hidden;
  background: var(--contact-bg);
  color: var(--contact-white);
}

.contact-page *,
.contact-page *::before,
.contact-page *::after {
  box-sizing: border-box;
}

.contact-page a {
  text-decoration: none;
}

.contact-container {
  width: min(1240px, calc(100% - 80px));
  margin: 0 auto;
}

.contact-page section[id] {
  scroll-margin-top: 105px;
}

/* ==========================================
   SHARED TYPOGRAPHY
========================================== */

.contact-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--contact-muted);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}

.contact-kicker > span:not(.contact-kicker-line) {
  color: var(--contact-red);
}

.contact-kicker-line {
  width: 25px;
  height: 2px;
  background: var(--contact-red);
}

.contact-page h1,
.contact-page h2,
.contact-page h3 {
  font-weight: 400;
}

/* ==========================================
   01 — HERO
========================================== */

.contact-hero {
  position: relative;
  overflow: hidden;
  background:
	radial-gradient(
	  ellipse at 80% 40%,
	  rgba(220, 53, 69, 0.09),
	  transparent 48%
	),
	radial-gradient(
	  ellipse at 10% 100%,
	  rgba(77, 106, 134, 0.13),
	  transparent 55%
	),
	var(--contact-bg);
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
  min-height: 590px;
  padding: 100px 0 65px;
}

.contact-hero-copy {
  position: relative;
  z-index: 2;
}

.contact-hero h1 {
  margin: 28px 0 28px;
  color: white;
  font-size: clamp(4rem, 7.7vw, 8rem);
  line-height: 0.99;
  letter-spacing: -0.045em;
}

.contact-hero h1 span {
  color: var(--contact-red);
}

.contact-hero-description {
  max-width: 530px;
  margin: 0;
  color: #b7c4cf;
  font-size: clamp(0.98rem, 1.3vw, 1.07rem);
  line-height: 1.9;
}

/* Location and availability */

.contact-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 34px;
}

.contact-hero-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #a9b7c3;
  font-size: 0.75rem;
}

.contact-hero-meta i {
  color: var(--contact-red);
  font-size: 0.85rem;
}

/* ==========================================
   HERO — CODE ILLUSTRATION
========================================== */

.contact-hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 370px;
}

.contact-art-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(220, 53, 69, 0.12);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.contact-art-window {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  background: #141b22;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.3);
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
}

.contact-hero-art:hover .contact-art-window {
  transform: rotate(0);
}

/* Browser header */

.contact-art-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #202b35;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #8495a6;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
}

.contact-art-dots {
  display: flex;
  gap: 6px;
}

.contact-art-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #596774;
}

.contact-art-dots span:nth-child(1) {
  background: #dc3545;
}

.contact-art-dots span:nth-child(2) {
  background: #e5ab55;
}

.contact-art-dots span:nth-child(3) {
  background: #5eaf8b;
}

/* Code text */

.contact-art-code {
  min-height: 285px;
  padding: 35px 26px;
  overflow: hidden;
  color: #d0d9e3;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.7rem, 0.98vw, 0.88rem);
  line-height: 2.3;
  white-space: nowrap;
}

.contact-art-code *,
.contact-art-top,
.contact-art-bottom {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.contact-code-indent {
  padding-left: 25px;
}

.contact-code-purple {
  color: #bb9af7;
}

.contact-code-green {
  color: #9ece6a;
}

.contact-code-red {
  color: #f7768e;
}

.contact-code-spacer {
  height: 22px;
}

/* Code window status */

.contact-art-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #889bac;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

.contact-art-status-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  background: #6cbd98;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(108, 189, 152, 0.4);
}

/* Floating label */

.contact-art-floating {
  position: absolute;
  z-index: 2;
  right: -15px;
  bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 19px;
  background: var(--contact-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  color: white;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
}

.contact-art-floating i {
  color: var(--contact-red);
  font-size: 1.2rem;
}

/* Hero footer */

.contact-hero-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0 35px;
  color: #778797;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
}

.contact-scroll-line {
  width: 65px;
  height: 1px;
  background: var(--contact-red);
}

/* ==========================================
   02 — CONTACT SECTION
========================================== */

.contact-section {
  padding: 110px 0 120px;
  background: var(--contact-light);
  color: #17212b;
}

.contact-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 45px;
  margin-bottom: 50px;
}

.contact-section .contact-kicker {
  color: #71808e;
}

.contact-section-heading h2 {
  margin: 22px 0 0;
  color: #17212b;
  font-size: clamp(2.8rem, 4.7vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.contact-section-heading h2 span {
  color: var(--contact-red);
}

.contact-section-heading > p {
  max-width: 385px;
  margin: 0 0 7px;
  color: #687583;
  font-size: 0.96rem;
  line-height: 1.85;
}

/* ==========================================
   MAIN TWO-COLUMN LAYOUT
========================================== */

.contact-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  align-items: stretch;
  gap: 25px;
}

/* ==========================================
   CONTACT FORM CARD
========================================== */

.contact-form-card {
  min-width: 0;
  padding: 40px;
  background: white;
  border: 1px solid #e2e6eb;
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(28, 42, 55, 0.045);
}

.contact-form-intro {
  margin-bottom: 34px;
  padding-bottom: 27px;
  border-bottom: 1px solid #e6e9ed;
}

.contact-form-number {
  color: var(--contact-red);
  font-size: 0.69rem;
  letter-spacing: 0.1em;
}

.contact-form-intro h3 {
  margin: 13px 0 8px;
  color: #17212b;
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  line-height: 1.15;
}

.contact-form-intro p {
  margin: 0;
  color: #75818c;
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ==========================================
   FORM FIELDS
========================================== */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 23px;
}

/* Hidden spam field */

.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 10px;
}

.contact-field label {
  color: #293744;
  font-size: 0.82rem;
  line-height: 1.5;
}

.contact-field label span {
  color: var(--contact-red);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  background: #f8f9fb;
  border: 1px solid #dce2e8;
  border-radius: 9px;
  outline: none;
  color: #23313f;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.6;
  transition:
	border-color 0.25s ease,
	background 0.25s ease,
	box-shadow 0.25s ease;
}

.contact-field input {
  min-height: 52px;
}

.contact-field select {
	height: 35px;
  min-height: 52px;
  cursor: pointer;
}

.contact-field textarea {
  min-height: 165px;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #929eaa;
  opacity: 1;
}

.contact-field input:hover,
.contact-field select:hover,
.contact-field textarea:hover {
  border-color: #bfc9d2;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  background: white;
  border-color: var(--contact-red);
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.08);
}

.contact-field select:invalid {
  color: #929eaa;
}

/* ==========================================
   FORM FOOTER + SUBMIT BUTTON
========================================== */

.contact-form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-top: 8px;
}

.contact-form-bottom > p {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  max-width: 265px;
  margin: 0;
  color: #87939e;
  font-size: 0.72rem;
  line-height: 1.7;
}

.contact-form-bottom > p i {
  margin-top: 4px;
  color: #94a1ad;
  font-size: 0.76rem;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 20px;
  min-height: 54px;
  padding: 15px 23px;
  background: var(--contact-red);
  border: 1px solid var(--contact-red);
  border-radius: 9px;
  color: white;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition:
	background 0.3s ease,
	transform 0.3s ease,
	box-shadow 0.3s ease;
}

.contact-submit:hover {
  background: var(--contact-red-hover);
  border-color: var(--contact-red-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 27px rgba(220, 53, 69, 0.2);
}

.contact-submit i {
  font-size: 0.8rem;
}

.contact-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Form feedback handled by contact.js */

.contact-form-feedback {
  margin: 0;
  padding: 14px 17px;
  background: #f1f4f7;
  border: 1px solid #dce2e8;
  border-radius: 9px;
  color: #435160;
  font-size: 0.81rem;
  line-height: 1.7;
}

.contact-form-feedback[hidden] {
  display: none;
}

.contact-form-feedback.is-success {
  background: #eaf7ef;
  border-color: #bee5cb;
  color: #247449;
}

.contact-form-feedback.is-error {
  background: #fff0f1;
  border-color: #f1c5cb;
  color: #a52b3a;
}

/* ==========================================
   03 — DIRECT CONTACT CARD
========================================== */

.contact-direct-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 40px 32px;
  background:
	radial-gradient(
	  circle at 100% 0%,
	  rgba(220, 53, 69, 0.07),
	  transparent 40%
	),
	#25313c;
  border: 1px solid #34424f;
  border-radius: 18px;
  color: white;
}

.contact-direct-kicker {
  margin: 0;
  color: var(--contact-red);
  font-size: 0.69rem;
  letter-spacing: 0.1em;
}

.contact-direct-card h3 {
  margin: 22px 0 16px;
  font-size: clamp(2rem, 2.7vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.contact-direct-card h3 span {
  color: var(--contact-red);
}

.contact-direct-description {
  max-width: 340px;
  margin: 0;
  color: #acbbc7;
  font-size: 0.9rem;
  line-height: 1.85;
}

/* ==========================================
   CONTACT METHODS
========================================== */

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 33px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  color: white;
  transition:
	background 0.3s ease,
	border-color 0.3s ease,
	transform 0.3s ease;
}

.contact-method:hover {
  background: rgba(220, 53, 69, 0.08);
  border-color: rgba(220, 53, 69, 0.4);
  transform: translateX(4px);
}

.contact-method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.12);
  border-radius: 10px;
  color: var(--contact-red);
  font-size: 1.1rem;
}

.contact-method-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  gap: 6px;
}

.contact-method-details small {
  color: #8fa1b1;
  font-size: 0.61rem;
  letter-spacing: 0.1em;
}

.contact-method-details strong {
  overflow-wrap: anywhere;
  color: #e0e7ed;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.55;
}

.contact-method-arrow {
  flex-shrink: 0;
  color: #8595a4;
  font-size: 0.7rem;
  transition:
	color 0.3s ease,
	transform 0.3s ease;
}

.contact-method:hover .contact-method-arrow {
  color: var(--contact-red);
  transform: translate(2px, -2px);
}

/* ==========================================
   DIRECT CONTACT FOOTER
========================================== */

.contact-direct-footer {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: auto;
  padding-top: 33px;
}

.contact-direct-footer::before {
  content: "";
  position: absolute;
}

.contact-availability-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  background: #69bb94;
  border-radius: 50%;
  box-shadow: 0 0 13px rgba(105, 187, 148, 0.4);
}

.contact-direct-footer p {
  margin: 0;
  color: #899baa;
  font-size: 0.65rem;
  line-height: 1.9;
  letter-spacing: 0.1em;
}

/* ==========================================
   04 — CLOSING SECTION
========================================== */

.contact-closing {
  padding: 100px 0 30px;
  background:
	radial-gradient(
	  circle at 85% 50%,
	  rgba(220, 53, 69, 0.08),
	  transparent 40%
	),
	var(--contact-bg);
}

.contact-closing-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 45px;
}

.contact-closing-inner > div > span {
  color: var(--contact-red);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.contact-closing h2 {
  margin: 24px 0 0;
  color: white;
  font-size: clamp(2.5rem, 4.8vw, 5rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.contact-closing h2 em {
  color: var(--contact-red);
  font-style: normal;
}

.contact-closing-inner > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 15px;
  min-height: 53px;
  padding: 15px 22px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  color: white;
  font-size: 0.86rem;
  transition:
	background 0.3s ease,
	border-color 0.3s ease,
	transform 0.3s ease;
}

.contact-closing-inner > a:hover {
  background: var(--contact-red);
  border-color: var(--contact-red);
  transform: translateY(-3px);
}

.contact-closing-inner > a i {
  font-size: 0.75rem;
}

/* Bottom line */

.contact-bottom-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 90px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #788997;
  font-size: 0.64rem;
  letter-spacing: 0.11em;
}

/* ==========================================
   ACCESSIBILITY
========================================== */

.contact-page a:focus-visible,
.contact-page button:focus-visible {
  outline: 2px solid var(--contact-red);
  outline-offset: 4px;
}

/* ==========================================
   TABLET — 1050px
========================================== */

@media (max-width: 1050px) {
  .contact-hero-grid {
	gap: 35px;
  }

  .contact-hero h1 {
	font-size: clamp(3.8rem, 7vw, 6rem);
  }

  .contact-art-floating {
	right: 0;
	bottom: 10px;
	padding: 13px;
  }

  .contact-main-grid {
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 20px;
  }

  .contact-form-card {
	padding: 30px;
  }

  .contact-direct-card {
	padding: 30px 24px;
  }

  .contact-form-row {
	grid-template-columns: minmax(0, 1fr);
  }

  .contact-form-bottom {
	flex-direction: column;
	align-items: flex-start;
  }

  .contact-form-bottom > p {
	max-width: 100%;
  }
}

/* ==========================================
   SMALL TABLET — 800px
========================================== */

@media (max-width: 800px) {
  .contact-container {
	width: min(100% - 48px, 680px);
  }

  .contact-hero-grid {
	grid-template-columns: minmax(0, 1fr);
	gap: 30px;
	min-height: 0;
	padding: 75px 0 50px;
  }

  .contact-hero h1 {
	font-size: clamp(4rem, 11vw, 6.5rem);
  }

  .contact-hero-art {
	width: min(100%, 500px);
	margin: 0 auto;
  }

  .contact-section {
	padding: 75px 0;
  }

  .contact-section-heading {
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 35px;
  }

  .contact-section-heading > p {
	max-width: 550px;
  }

  .contact-main-grid {
	grid-template-columns: minmax(0, 1fr);
	gap: 25px;
  }

  .contact-form-card {
	padding: 36px;
  }

  .contact-form-row {
	grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form-bottom {
	flex-direction: row;
	align-items: center;
  }

  .contact-direct-card {
	padding: 38px;
  }

  .contact-methods {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-direct-footer {
	margin-top: 15px;
  }

  .contact-closing-inner {
	flex-direction: column;
	align-items: flex-start;
	gap: 30px;
  }

  .contact-bottom-note {
	margin-top: 60px;
  }
}

/* ==========================================
   MOBILE — 600px
========================================== */

@media (max-width: 600px) {
  .contact-container {
	width: calc(100% - 36px);
  }

  .contact-hero-grid {
	padding-top: 55px;
	padding-bottom: 35px;
  }

  .contact-hero h1 {
	margin: 22px 0;
	font-size: clamp(3.3rem, 12vw, 4.7rem);
  }

  .contact-hero-description {
	font-size: 0.94rem;
  }

  .contact-hero-meta {
	flex-direction: column;
	align-items: flex-start;
	gap: 15px;
  }

  .contact-hero-art {
	min-height: 315px;
  }

  .contact-art-window {
	transform: none;
  }

  .contact-art-code {
	min-height: 235px;
	padding: 25px 18px;
	font-size: 0.68rem;
	line-height: 2.1;
  }

  .contact-code-indent {
	padding-left: 15px;
  }

  .contact-art-floating {
	right: 0;
	bottom: 0;
	padding: 12px;
	font-size: 0.55rem;
  }

  .contact-hero-footer {
	flex-wrap: wrap;
	font-size: 0.58rem;
  }

  .contact-section-heading h2 {
	font-size: clamp(2.7rem, 10vw, 3.7rem);
  }

  .contact-form-card {
	padding: 25px 20px;
	border-radius: 14px;
  }

  .contact-form-row {
	grid-template-columns: minmax(0, 1fr);
	gap: 23px;
  }

  .contact-form-bottom {
	flex-direction: column;
	align-items: stretch;
	gap: 20px;
  }

  .contact-submit {
	width: 100%;
  }

  .contact-direct-card {
	padding: 30px 22px;
	border-radius: 14px;
  }

  .contact-direct-card h3 {
	font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .contact-methods {
	grid-template-columns: minmax(0, 1fr);
  }

  .contact-closing {
	padding-top: 75px;
  }

  .contact-closing h2 {
	font-size: clamp(2.5rem, 9.5vw, 3.6rem);
  }

  .contact-bottom-note {
	flex-wrap: wrap;
	gap: 12px;
	font-size: 0.55rem;
  }
}

/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {
  .contact-page *,
  .contact-page *::before,
  .contact-page *::after {
	animation-duration: 0.01ms !important;
	transition-duration: 0.01ms !important;
  }
}
