/* ══════════════════════════════════════════════════════════════
   EatCrayons – Contact Page
   © Rise Marketing Co., LLC – EatCrayons. 2026.
   ══════════════════════════════════════════════════════════════ */

/* ── PAGE SHELL ── */
body.contact-light {
  background: #f5f5f7;
}

.contact-page {
  min-height: 100vh;
  padding: 140px 48px 120px;
}

.contact-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 100px;
  align-items: start;
}

/* ── LEFT COLUMN ── */
.contact-left-sticky {
  position: sticky;
  top: 120px;
}

.contact-eyebrow {
  font-family: var(--font-body);
  color: rgba(0,0,0,0.35);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: rgba(0,0,0,0.25);
}

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.contact-sub {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(0,0,0,0.45);
  line-height: 1.70;
  margin-bottom: 52px;
}

/* ── ASIDE CONTENT ── */
.contact-aside-content {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 36px;
}

.aside-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.30);
  margin-bottom: 20px;
  display: block;
}

.aside-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.aside-checklist li {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(0,0,0,0.50);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.aside-checklist li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--blue);
  font-size: 8px;
  opacity: 0.8;
}

.aside-quote {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(0,0,0,0.60);
  line-height: 1.58;
  letter-spacing: -0.015em;
  border-left: 2px solid rgba(68, 140, 247, 0.5);
  padding-left: 16px;
  margin-bottom: 28px;
}

.aside-direct {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(0,0,0,0.35);
  text-decoration: none;
  transition: color 250ms ease;
}

.aside-direct:hover { color: var(--blue); }

/* ── QUIZ CONTEXT BADGE ── */
.cf-quiz-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 50px;
  padding: 8px 16px;
  margin-bottom: 48px;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(0,0,0,0.5);
  line-height: 1;
}

.cf-quiz-badge-pip {
  font-size: 10px;
  color: rgba(0,0,0,0.3);
}

/* ── FORM FIELD ENTER ANIMATION ── */
.cf-field-enter {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 540ms ease, transform 640ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cf-field-enter.entered {
  opacity: 1;
  transform: translateY(0);
}

/* ── FIELD STRUCTURE ── */
.cf-field {
  margin-bottom: 72px;
}

.cf-num {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.20);
  margin-bottom: 10px;
  user-select: none;
}

.cf-label {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: rgba(0,0,0,0.85);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 18px;
  cursor: pointer;
}

.cf-sublabel {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(0,0,0,0.35);
  margin-top: -10px;
  margin-bottom: 18px;
}

/* ── INPUT ── */
.cf-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(0,0,0,0.12);
  padding: 12px 0 16px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--dark);
  caret-color: var(--blue);
  outline: none;
  transition: border-color 280ms ease;
  -webkit-appearance: none;
  border-radius: 0;
}

.cf-input::placeholder {
  color: rgba(0,0,0,0.18);
}

.cf-input:focus {
  border-bottom-color: var(--blue);
}

.cf-textarea {
  resize: none;
  height: 120px;
  overflow-y: auto;
  line-height: 1.65;
}

/* ── SERVICE OPTION TILES ── */
.cf-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.cf-option {
  background: white;
  border: 1.5px solid rgba(0,0,0,0.07);
  border-radius: 14px;
  padding: 20px 18px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 260ms ease,
    background 260ms ease,
    transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 260ms ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cf-option:hover {
  border-color: rgba(68, 140, 247, 0.35);
  background: rgba(68, 140, 247, 0.04);
  transform: translateY(-2px);
}

.cf-option:active {
  transform: scale(0.97) translateY(0);
  transition-duration: 80ms;
}

.cf-option.selected {
  border-color: var(--blue);
  background: rgba(68, 140, 247, 0.07);
  box-shadow: 0 0 0 1px rgba(68, 140, 247, 0.20), 0 4px 20px rgba(68, 140, 247, 0.08);
}

.cf-opt-icon {
  font-size: 16px;
  color: rgba(0,0,0,0.25);
  margin-bottom: 8px;
  display: block;
  transition: color 260ms ease;
}

.cf-option.selected .cf-opt-icon {
  color: var(--blue);
}

.cf-opt-name {
  display: block;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: rgba(0,0,0,0.85);
  letter-spacing: -0.015em;
  transition: color 260ms ease;
}

.cf-opt-desc {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(0,0,0,0.38);
  line-height: 1.4;
  transition: color 260ms ease;
}

.cf-option.selected .cf-opt-desc {
  color: rgba(68, 140, 247, 0.65);
}

/* ── FGE AUTO-UPGRADE ANIMATION ── */
@keyframes fge-upgrade {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(68,140,247,0); border-color: rgba(0,0,0,0.07); background: white; }
  25%  { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(68,140,247,0.10); border-color: var(--blue); background: rgba(68,140,247,0.07); }
  55%  { transform: scale(0.98); box-shadow: 0 0 0 4px rgba(68,140,247,0.06); }
  80%  { transform: scale(1.01); }
  100% { transform: scale(1);    box-shadow: 0 0 0 1px rgba(68,140,247,0.20), 0 4px 20px rgba(68,140,247,0.08); border-color: var(--blue); background: rgba(68,140,247,0.07); }
}

.cf-option.is-upgrading {
  animation: fge-upgrade 560ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  pointer-events: none;
}

.cf-option.is-upgrading .cf-opt-icon { color: var(--blue); }
.cf-option.is-upgrading .cf-opt-desc { color: rgba(68, 140, 247, 0.65); }

@media (prefers-reduced-motion: reduce) {
  .cf-option.is-upgrading { animation-duration: 0.01ms !important; }
}

/* ── SUBMIT ── */
.cf-submit {
  margin-top: -8px;
}

.cf-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--dark);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 16px 28px 16px 36px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition:
    transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 280ms ease;
}

.cf-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}

.cf-btn:active {
  transform: scale(0.97);
  transition-duration: 70ms;
}

.cf-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.cf-btn-arrow {
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cf-btn:hover:not(:disabled) .cf-btn-arrow {
  transform: translateX(5px);
}

.cf-legal {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(0,0,0,0.28);
  line-height: 1.5;
}

/* ── SUCCESS STATE ── */
.contact-success {
  padding: 40px 0 80px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-success.visible {
  opacity: 1;
  transform: translateY(0);
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(68, 140, 247, 0.09);
  border: 1.5px solid rgba(68, 140, 247, 0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 28px;
}

.success-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 14px;
}

.success-body {
  font-family: var(--font-body);
  font-size: 17px;
  color: rgba(0,0,0,0.50);
  line-height: 1.65;
  max-width: 380px;
  margin-bottom: 36px;
}

.success-back {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(0,0,0,0.35);
  text-decoration: none;
  transition: color 250ms ease;
}

.success-back:hover { color: var(--dark); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .contact-inner {
    grid-template-columns: 360px 1fr;
    gap: 72px;
  }
}

@media (max-width: 860px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-left-sticky {
    position: static;
  }
  .contact-page {
    padding: 120px 32px 100px;
  }
}

@media (max-width: 560px) {
  .contact-page { padding: 110px 20px 80px; }
  .cf-options   { grid-template-columns: 1fr; }
  .cf-field     { margin-bottom: 56px; }
  .cf-btn       { width: 100%; justify-content: center; }
}

/* ── ACTIVE NAV STATE ── */
.site-nav a[aria-current="page"] {
  opacity: 0.5;
  pointer-events: none;
}

/* ── HEADER — dark on light page ── */
body.contact-light #site-header {
  background:
    linear-gradient(
      135deg,
      rgba(8, 10, 18, 0.98) 0%,
      rgba(14, 18, 38, 0.96) 50%,
      rgba(10, 14, 28, 0.95) 100%
    );
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
