/*
 * contact.css — Semmble contact page
 * Dark theme matching the waitlist hero
 */

/* Cursor reset */
.contact-page,
.contact-page *,
.contact-page *::before,
.contact-page *::after { cursor: auto; }
.contact-page a,
.contact-page button,
.contact-page [role="button"] { cursor: pointer; }
.contact-page input,
.contact-page textarea { cursor: text; }

:root {
  --ct-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-page {
  background-color: var(--color-primary);
  color: var(--color-bg);
  font-family: 'Jost', system-ui, sans-serif;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Warm radial spotlight */
.contact-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 30%,
    #393934 0%,
    var(--color-primary) 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Dot grid texture */
.contact-page::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(245, 242, 236, 0.042) 1.5px,
    transparent 1.5px
  );
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* ============================
   SHELL
   ============================ */
.ct-shell {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  padding: 40px 28px 80px;
}

/* ============================
   BACK LINK
   ============================ */
.ct-back {
  display: inline-flex;
  align-items: center;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-bg);
  opacity: 0.38;
  text-decoration: none;
  margin-bottom: 56px;
  transition: opacity 0.18s var(--ct-ease);
}

.ct-back:hover { opacity: 1; }

/* ============================
   HERO
   ============================ */
.ct-hero {
  margin-bottom: 44px;
}

.ct-eyebrow {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 16px;
}

.ct-headline {
  font-family: 'Gloock', Georgia, serif;
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--color-bg);
  margin: 0 0 16px;
}

.ct-sub {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-bg);
  opacity: 0.52;
  margin: 0;
}

/* ============================
   FORM
   ============================ */
.ct-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Name + Email side by side */
.ct-field-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.ct-label {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-bg);
  opacity: 0.38;
}

.ct-input {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-bg);
  background: rgba(245, 242, 236, 0.07);
  border: 1.5px solid rgba(245, 242, 236, 0.18);
  border-radius: 2px;
  padding: 15px 16px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.18s var(--ct-ease), background 0.18s var(--ct-ease);
  -webkit-appearance: none;
  appearance: none;
}

.ct-input::placeholder {
  color: var(--color-bg);
  opacity: 0.25;
}

.ct-input:focus {
  border-color: rgba(245, 242, 236, 0.52);
  background: rgba(245, 242, 236, 0.10);
}

.ct-input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.ct-input.is-invalid {
  border-color: var(--color-accent);
}

.ct-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.65;
}

/* ============================
   BUTTON
   ============================ */
.ct-btn {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-accent);
  border: none;
  border-radius: 2px;
  padding: 17px 28px;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  margin-top: 4px;
  transition: background 0.18s var(--ct-ease), transform 0.12s var(--ct-ease);
}

.ct-btn:hover  { background: #7A6449; }
.ct-btn:active { transform: scale(0.975); }
.ct-btn:disabled { opacity: 0.6; pointer-events: none; }

.ct-btn-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(245, 242, 236, 0.22);
  border-top-color: var(--color-bg);
  border-radius: 50%;
  animation: ct-spin 0.65s linear infinite;
  flex-shrink: 0;
}

.ct-btn.is-loading .ct-btn-text    { opacity: 0; }
.ct-btn.is-loading .ct-btn-spinner { display: block; position: absolute; }

@keyframes ct-spin { to { transform: rotate(360deg); } }

.ct-error {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 13px;
  color: var(--color-accent);
  min-height: 18px;
  margin: 0;
}

/* ============================
   SUCCESS STATE
   ============================ */
.ct-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  animation: ct-rise 0.5s var(--ct-ease) forwards;
}

.ct-success[hidden] { display: none; }

@keyframes ct-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ct-check {
  color: var(--color-accent);
  margin-bottom: 6px;
}

.ct-success-head {
  font-family: 'Gloock', Georgia, serif;
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-bg);
  margin: 0;
}

.ct-success-body {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-bg);
  opacity: 0.52;
  margin: 0;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (min-width: 560px) {
  .ct-shell { padding: 48px 48px 100px; }

  .ct-field-row {
    flex-direction: row;
    gap: 12px;
  }

  .ct-field-row .ct-field {
    flex: 1;
  }
}

@media (min-width: 900px) {
  .ct-shell { padding: 64px 0 120px; }
}
