:root {
  --ink: #0f1117;
  --paper: #f8f6f1;
  --cream: #eee9df;
  --accent: #d35233;
  --accent-light: #f0a68e;
  --accent-glow: rgba(211, 82, 51, 0.12);
  --teal: #1a7a6d;
  --teal-light: #a3d9cf;
  --teal-glow: rgba(26, 122, 109, 0.1);
  --slate: #4a4e5a;
  --muted: #8a8d96;
  --card-bg: #fff;
  --border: #e2ddd4;
  --radius: 14px;
  --shadow-sm:
    0 1px 3px rgba(15, 17, 23, 0.04), 0 1px 2px rgba(15, 17, 23, 0.06);
  --shadow-md:
    0 4px 16px rgba(15, 17, 23, 0.06), 0 2px 4px rgba(15, 17, 23, 0.04);
  --shadow-lg:
    0 12px 40px rgba(15, 17, 23, 0.08), 0 4px 12px rgba(15, 17, 23, 0.04);
  --danger: #dc2626;
  --success: #16a34a;
  --success-bg: #d1fae5;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  font-family: "Outfit", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ===== PAGE ===== */
.page {
  min-height: 100vh;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.blob-1 {
  top: -200px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    ellipse at 40% 40%,
    var(--accent-glow) 0%,
    transparent 65%
  );
  animation: drift 10s ease-in-out infinite;
}
.blob-2 {
  bottom: -180px;
  left: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    ellipse at 60% 60%,
    rgba(26, 122, 109, 0.06) 0%,
    transparent 65%
  );
  animation: drift 12s ease-in-out infinite reverse;
}
@keyframes drift {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-25px) scale(1.03);
  }
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  background: rgba(248, 246, 241, 0.85);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled {
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  font-family: "JetBrains Mono", monospace;
}
.logo-text {
  font-family: "DM Serif Display", serif;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--slate);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-cta {
  background: var(--ink) !important;
  color: var(--paper) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition:
    transform 0.2s,
    box-shadow 0.2s !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ===== CONTENT ===== */
.content-wrap {
  width: 100%;
  max-width: 720px;
  position: relative;
  z-index: 1;
  margin-top: 100px;
}

/* Header */
.page-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 140px 2rem 80px;
  animation: fadeInUp 0.6s ease both;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
  margin-bottom: 1rem;
}
.section-label .dot {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}
.page-header h1 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}
.page-header h1 .highlight {
  color: var(--accent);
  position: relative;
}
.page-header h1 .highlight::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-light);
  border-radius: 2px;
}
.page-header p {
  font-size: 1rem;
  color: var(--slate);
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== CONTACT GRID ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.info-card:hover::before {
  transform: scaleX(1);
}
.info-card:nth-child(1)::before {
  background: var(--accent);
}
.info-card:nth-child(2)::before {
  background: var(--teal);
}
.info-card:nth-child(3)::before {
  background: #6366f1;
}
.info-card:nth-child(4)::before {
  background: #f59e0b;
}

.info-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}
.ic-orange {
  background: var(--accent-glow);
}
.ic-teal {
  background: var(--teal-glow);
}
.ic-purple {
  background: rgba(99, 102, 241, 0.1);
}
.ic-yellow {
  background: rgba(245, 158, 11, 0.1);
}

.info-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.info-card p {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.5;
}
.info-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.82rem;
  transition: color 0.2s;
}
.info-card a:hover {
  color: var(--ink);
}

/* ===== FORM CARD ===== */
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease 0.2s both;
}
.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}
.form-card-body {
  padding: 2.5rem;
}

.form-title {
  font-family: "DM Serif Display", serif;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
}
.form-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 2rem;
}

/* Fields */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field {
  margin-bottom: 1.25rem;
}
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.field label .required {
  color: var(--accent);
  margin-left: 2px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
  transition: color 0.2s;
}
.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%;
  padding: 12px 14px 12px 44px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--card-bg);
  outline: none;
  transition: all 0.25s;
}
.input-wrap textarea {
  padding: 12px 14px;
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}
.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
  color: var(--muted);
  font-weight: 300;
}
.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.input-wrap input:focus ~ .input-icon {
  color: var(--accent);
}

.input-wrap select {
  appearance: none;
  cursor: pointer;
  padding-left: 44px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8d96' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field.error .input-wrap input,
.field.error .input-wrap textarea,
.field.error .input-wrap select {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}
.field-error {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 5px;
  display: none;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.field.error .field-error {
  display: flex;
}

.char-count {
  text-align: right;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 300;
}
.char-count.near-limit {
  color: var(--accent);
}
.char-count.at-limit {
  color: var(--danger);
}

/* Submit */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}
.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-submit {
  padding: 14px 32px;
  border: none;
  border-radius: 10px;
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.btn-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), #b83a1f);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-submit:hover::before {
  opacity: 1;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15, 17, 23, 0.15);
}
.btn-submit:active {
  transform: translateY(0);
}
.btn-submit span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-submit.loading span {
  opacity: 0;
}
.btn-submit.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(248, 246, 241, 0.3);
  border-top-color: var(--paper);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  z-index: 1;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== SUCCESS STATE ===== */
.step {
  display: none;
}
.step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.success-title {
  font-family: "DM Serif Display", serif;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 0.4rem;
}
.success-text {
  font-size: 0.9rem;
  color: var(--slate);
  font-weight: 300;
  text-align: center;
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto 2rem;
}
.success-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--cream);
  border-radius: 10px;
  margin-bottom: 1.5rem;
}
.success-detail-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.success-detail-text {
  font-size: 0.82rem;
  color: var(--slate);
  font-weight: 300;
  line-height: 1.5;
}
.success-detail-text strong {
  font-weight: 600;
  color: var(--ink);
}

.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
  width: 100%;
}
.btn-back:hover {
  border-color: var(--accent-light);
  background: var(--accent-glow);
}
.btn-back svg {
  transition: transform 0.2s;
}
.btn-back:hover svg {
  transform: translateX(-3px);
}

/* ===== FOOTER ===== */
.page-footer {
  margin-top: auto;
  padding-top: 3rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 300;
  text-align: center;
  position: relative;
  z-index: 1;
}
.page-footer strong {
  font-weight: 600;
  color: var(--slate);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .page {
    padding: 1.5rem;
  }
  .content-wrap {
    margin-top: 84px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .form-card-body {
    padding: 1.75rem;
  }
  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .btn-submit {
    width: 100%;
    justify-content: center;
  }
  .form-note {
    justify-content: center;
  }
  .nav-links {
    display: none;
  }
}
