/* ============================================================
   Contact page — dark glass form matching the index aesthetic
   ============================================================ */

/* Vignette tweak so the form card stays readable */
.vignette--contact {
  background:
    radial-gradient(ellipse 85% 75% at 50% 55%, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.5) 40%, transparent 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, transparent 20%, transparent 78%, rgba(0, 0, 0, 0.85) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.55) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.55) 100%);
}

/* ── Page shell ────────────────────────────────────────────── */
.contact-page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 120px 20px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-container {
  width: 100%;
  max-width: 560px;
  animation: contactFadeIn 0.55s ease-out both;
}

@keyframes contactFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Card ──────────────────────────────────────────────────── */
.contact-card {
  padding: 40px 36px 36px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 15, 15, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

/* ── Header ────────────────────────────────────────────────── */
.contact-header {
  text-align: center;
  margin-bottom: 28px;
}

.contact-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 5px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  background: rgba(20, 20, 20, 0.5);
  margin-bottom: 18px;
}

.contact-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 10px;
}

.contact-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

/* ── Form ──────────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.form-field label .required-mark {
  color: rgba(255, 255, 255, 0.9);
  margin-left: 2px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14.5px;
  color: #ffffff;
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-field input:hover,
.form-field textarea:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(25, 25, 25, 0.85);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: rgba(255, 95, 95, 0.55);
}

.form-error {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #ff8080;
}

/* ── Consent checkboxes ───────────────────────────────────── */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(20, 20, 20, 0.4);
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-consent:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(25, 25, 25, 0.55);
}

.form-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.form-consent input[type="checkbox"]:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.form-consent input[type="checkbox"]:checked {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.95);
}

.form-consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-consent input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.form-consent a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.form-consent a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.9);
}

.form-consent.has-error {
  border-color: rgba(255, 95, 95, 0.55);
}

/* ── Submit button ────────────────────────────────────────── */
.contact-submit {
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  border: none;
  border-radius: 9999px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow:
    0 0 15px rgba(255, 255, 255, 0.18),
    0 0 35px rgba(255, 255, 255, 0.08);
}

.contact-submit:hover {
  background: #ffffff;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.35),
    0 0 45px rgba(255, 255, 255, 0.18),
    0 0 80px rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.contact-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.contact-submit:active {
  transform: translateY(0);
}

/* ── Success state ────────────────────────────────────────── */
.contact-success {
  text-align: center;
  padding: 20px 4px 10px;
}

.contact-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow:
    0 0 25px rgba(255, 255, 255, 0.18),
    0 0 55px rgba(255, 255, 255, 0.08);
}

.contact-success-icon svg {
  width: 28px;
  height: 28px;
}

.contact-success-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 12px;
}

.contact-success-body {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto 28px;
}

.contact-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.contact-back-home:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

/* ── logo ────────────────────────────────────────────── */
.contact-logo-dim {
  opacity: 0.35;
  filter: grayscale(0.3);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 560px) {
  .contact-page {
    padding: 100px 16px 60px;
  }

  .contact-card {
    padding: 32px 22px 28px;
    border-radius: 18px;
  }

  .contact-title {
    font-size: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .contact-container {
    animation: none;
  }
  .contact-submit:hover {
    transform: none;
  }
}
