/* Contact page – Figma 2015:1099 */

body.page-contact {
  margin: 0;
  background: #f2f2f6;
}

.page-contact {
  --primary: #ff6562;
  --primary-dark: #e44e4b;
  --primary-20: #ffe0e0;
  --ink: #121517;
  --ink-l2: #171a1d;
  --muted: rgba(23, 26, 29, 0.6);
  --placeholder: rgba(23, 26, 29, 0.4);
  --bg: #f2f2f6;
  --dark-bg: #303030;
  --container: 1400px;
  --font-heading: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'PingFang SC', ui-sans-serif, system-ui, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-contact *,
.page-contact *::before,
.page-contact *::after { box-sizing: border-box; }

.page-contact .container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.page-contact .center { text-align: center; }

.page-contact h1,
.page-contact h2,
.page-contact h3 { margin-top: 0; }

.page-contact .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  box-shadow: none;
  transform: none;
}

.page-contact .btn:hover { transform: none; }

.page-contact .btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.page-contact .btn-primary:hover { background: var(--primary-dark); }

.page-contact .btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.page-contact .btn-outline:hover { background: rgba(255, 101, 98, 0.06); }

.page-contact .btn-sm {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 14px;
}

/* Header */
.page-contact .header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 40px 0 0;
  pointer-events: none;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.page-contact .header-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border-radius: 24px;
  padding: 16px 32px;
  box-shadow: 0 2px 2px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.08);
  position: relative;
}

.page-contact .brand { display: flex; text-decoration: none; flex-shrink: 0; }

.page-contact .brand-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.page-contact .nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 14px;
  color: var(--ink);
}

.page-contact .nav-links a {
  font-weight: 500;
  text-decoration: none;
  color: inherit;
}

.page-contact .nav-links a.active,
.page-contact .nav-links a:hover { color: var(--primary); }

.page-contact .nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.page-contact .nav-contact {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.page-contact .nav-contact.active {
  color: var(--primary);
}

.page-contact .hide-mobile { display: inline-flex; }
.page-contact .nav-mobile-actions { display: none; }

.page-contact .mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
  padding: 4px;
}

/* Hero */
.page-contact .contact-hero {
  position: relative;
  padding: 202px 0 48px;
  overflow: hidden;
}

.page-contact .contact-hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/contract-hero.png") center top/cover no-repeat;
  z-index: 0;
}

.page-contact .contact-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(242, 242, 246, 0.92) 0%, rgba(242, 242, 246, 0.72) 45%, rgba(242, 242, 246, 0.35) 100%);
  pointer-events: none;
}

.page-contact .contact-hero-content {
  position: relative;
  z-index: 1;
}

.page-contact .contact-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 7px 12px;
  border-radius: 28px;
  background: var(--primary-20);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 12px;
}

.page-contact .contact-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 auto 12px;
}

.page-contact .contact-hero .lead {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
  max-width: 720px;
  margin: 0 auto;
}

/* Form section */
.page-contact .contact-form-section {
  padding: 0 0 120px;
  position: relative;
  z-index: 2;
}

.page-contact .contact-form-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px clamp(24px, 10vw, 100px);
  border-radius: 24px;
  border: 1px solid #f2f2f2;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  position: relative;
}

.page-contact .contact-form-card::before {
  content: none;
  display: none;
}

.page-contact .contact-form-header {
  margin-bottom: 32px;
  text-align: left;
}

.page-contact .contact-form-header h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 12px;
}

.page-contact .contact-form-header p {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
  margin: 0;
  max-width: none;
}

.page-contact .contact-form {
  max-width: 800px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-contact .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.page-contact .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-contact .field.full {
  grid-column: 1 / -1;
}

.page-contact .field label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.32px;
  color: var(--ink-l2);
}

.page-contact .field-required {
  color: var(--primary);
  font-weight: 600;
}

.page-contact .field input,
.page-contact .field select,
.page-contact .field textarea {
  width: 100%;
  min-height: 60px;
  padding: 17px 16px 18px;
  border: 1px solid #e7eaf0;
  border-radius: 8px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.36px;
  color: var(--ink);
  outline: none;
  transition: box-shadow 0.2s, border-color 0.2s;
  box-shadow: none;
}

.page-contact .field input::placeholder,
.page-contact .field textarea::placeholder {
  color: var(--placeholder);
}

.page-contact .field input:focus,
.page-contact .field select:focus,
.page-contact .field textarea:focus {
  box-shadow: 0 0 0 2px rgba(255, 101, 98, 0.25);
}

.page-contact .field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 48px;
  background-image: url("../images/select-arrow.png");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 24px 24px;
  cursor: pointer;
}

.page-contact .field textarea {
  min-height: 130px;
  resize: vertical;
}

.page-contact .contact-form .btn-primary {
  width: auto;
  min-width: 280px;
  max-width: 400px;
  margin: 12px 0 0;
  align-self: flex-start;
}

/* Footer */
.page-contact .footer {
  background: var(--dark-bg);
  color: #fff;
  padding: 60px 0;
}

.page-contact .footer-grid {
  display: grid;
  grid-template-columns: minmax(200px, 280px) repeat(5, minmax(0, 1fr));
  gap: 28px 20px;
  align-items: start;
  
}

.page-contact .footer-brand { max-width: 280px; }

.page-contact .footer-logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.page-contact .footer-brand p {
  font-size: 16px;
  line-height: 1.4;
  color: rgba(255,255,255,.6);
  margin: 24px 0 0;
}

.page-contact .footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-contact .footer-col h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #fff;
}

.page-contact .footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  line-height: 1.5;
}

.page-contact .footer-col a:hover { color: #fff; }

.page-contact .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  font-size: 14px;
  color: rgba(255,255,255,.6);
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive */
@media (max-width: 1200px) {
  .page-contact .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-contact .footer-brand { grid-column: 1 / -1; max-width: 420px; }
}

@media (max-width: 980px) {
  .page-contact .header { padding: 12px 0 0; }
  .page-contact .header-inner { padding: 12px 16px; border-radius: 16px; }
  .page-contact .hide-mobile { display: none !important; }
  .page-contact .mobile-toggle { display: block; }

  .page-contact .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid #e7eaf0;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 16px 40px rgba(16,24,40,.12);
    z-index: 200;
  }

  .page-contact .nav-links.open { display: flex; }
  .page-contact .nav-links a { padding: 14px 12px; border-radius: 10px; }
  .page-contact .nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #e7eaf0;
  }
  .page-contact .nav-mobile-actions .btn { width: 100%; }
  .page-contact .nav-actions { margin-left: auto; gap: 8px; }

  .page-contact .contact-hero { padding-top: 150px; }
  .page-contact .form-row { grid-template-columns: 1fr; }
  .page-contact .footer-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .page-contact .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .page-contact .container { width: min(100% - 24px, var(--container)); }
  .page-contact .contact-hero { padding-top: 130px; }
  .page-contact .contact-form-section { padding-bottom: 80px; }
  .page-contact .contact-form-card { padding: 32px 20px; }
  .page-contact .footer-grid { grid-template-columns: 1fr; }
}
