/* ── Contact Flow (숨고-style estimator) ── */

.contact-flow {
  position: relative;
  min-height: 100dvh;
  --cf-top-gap: 48px;
}

.cf-screen {
  display: none;
  min-height: 100dvh;
  padding: calc(var(--nav-h) + var(--cf-top-gap)) clamp(20px, 4vw, 48px) clamp(48px, 8vh, 80px);
}

.cf-screen--active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.cf-screen-inner {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.cf-screen-inner--estimate {
  max-width: 640px;
}

/* Landing — full viewport, vertically centered */
.cf-screen--landing.cf-screen--active {
  position: relative;
  overflow: hidden;
  align-items: center;
  padding: 0;
}

.cf-gradient-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(190, 231, 255, 0.55) 0%, var(--bg) 42%, rgba(216, 200, 255, 0.4) 100%);
}

.cf-gradient-bg .hero-gradient {
  position: absolute;
  inset: 0;
}

.cf-landing-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(32px, 5vw, 48px);
}

.cf-landing-tag {
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.cf-landing-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.04em;
  color: var(--text);
  margin-bottom: 16px;
}

.cf-landing-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cf-landing-desc {
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: clamp(32px, 5vh, 48px);
}

.cf-start-btn {
  box-shadow: 0 8px 32px rgba(8, 145, 178, 0.25);
}

/* Screen head */
.cf-step-label {
  font-size: 13px;
  letter-spacing: .15em;
  color: var(--accent-1);
  margin-bottom: 8px;
}

.cf-screen-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.cf-screen-desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: clamp(28px, 4vh, 40px);
}

.cf-screen-head {
  margin-bottom: 0;
}

.cf-screen-head--estimate {
  margin-bottom: clamp(24px, 3vh, 32px);
}

.cf-screen-head--estimate .cf-screen-desc {
  margin-bottom: 0;
}

/* Form */
.cf-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: clamp(32px, 4vh, 48px);
}

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

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

.cf-field-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.cf-field-label em {
  color: var(--accent-1);
  font-style: normal;
}

.cf-input,
.cf-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-md);
  border-radius: 12px;
  background: var(--bg-2);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color .25s, box-shadow .25s;
}

.cf-input:focus,
.cf-textarea:focus {
  outline: none;
  border-color: rgba(8,145,178,.45);
  box-shadow: 0 0 0 3px rgba(8,145,178,.12);
}

.cf-textarea {
  resize: vertical;
  min-height: 100px;
}

.cf-input.cf-input--error {
  border-color: #dc2626;
}

.cf-input.cf-input--date {
  min-height: 48px;
  color-scheme: light;
}

.cf-input.cf-input--date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
}

.cf-input.cf-input--date::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Choices — selectable cards/chips (distinct from nav CTAs) */
.cf-est-panel > .cf-choices {
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cf-choices {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}

.cf-choices--2 { grid-template-columns: 1fr 1fr; }
.cf-choices--4 { grid-template-columns: repeat(2, 1fr); }

.cf-choices--stack,
.cf-choices--multi {
  grid-template-columns: 1fr;
}

/* Unified choice row — square checkbox indicator */
.cf-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 14px 16px;
  border: 1.5px solid var(--border-md);
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color .25s, background .25s, box-shadow .25s;
}

.cf-choice::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-md);
  border-radius: 6px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  transition: background .25s, border-color .25s;
}

.cf-choice:hover {
  border-color: rgba(8, 145, 178, 0.4);
  box-shadow: 0 4px 16px rgba(8, 145, 178, 0.08);
}

.cf-choice--selected,
.cf-choice.cf-choice--on {
  border-color: rgba(8, 145, 178, 0.45);
  background: rgba(8, 145, 178, 0.06);
  color: var(--text);
}

.cf-choice--selected::before,
.cf-choice.cf-choice--on::before {
  content: '✓';
  background: var(--accent-1);
  border-color: var(--accent-1);
}

.cf-tech-extra .cf-choices {
  margin-bottom: 16px;
}

/* Estimate progress */
.cf-estimate-progress {
  height: 4px;
  background: var(--bg-3);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 12px;
}

.cf-estimate-progress-bar {
  height: 100%;
  width: 25%;
  background: var(--gradient);
  border-radius: 100px;
  transition: width .4s var(--ease);
}

.cf-estimate-step-num {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.cf-est-panel {
  animation: cfFadeIn .35s var(--ease);
}

.cf-est-panel .cf-screen-head .cf-screen-title {
  font-size: clamp(22px, 4vw, 28px);
}

.cf-est-panel .cf-screen-head .cf-screen-desc {
  margin-bottom: 20px;
}

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

/* Tech extras */
.cf-tech-extra {
  margin-top: 8px;
  margin-bottom: 24px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(8,145,178,.05);
  border: 1px solid rgba(8,145,178,.15);
}

.cf-extra-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text-dim);
}

.cf-led-dims {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 8px;
}

.cf-led-dim {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.cf-led-dim span {
  font-size: 13px;
  color: var(--text-muted);
}

.cf-led-dim input {
  padding: 12px 14px;
  border: 1px solid var(--border-md);
  border-radius: 10px;
  font-size: 15px;
  width: 100%;
  background: var(--bg-2);
}

.cf-led-x {
  padding-bottom: 12px;
  color: var(--text-muted);
}

.cf-led-area {
  font-size: 14px;
  color: var(--accent-1);
  margin-bottom: 12px;
}

.cf-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
}

.cf-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-1);
}

/* Navigation — step controls (pill CTAs, separate from option cards) */
.cf-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(28px, 4vh, 40px);
  padding-top: 24px;
  border-top: 1px solid var(--border-md);
}

.cf-actions .btn-outline.cf-back-btn {
  flex: 0 0 auto;
  padding: 12px 4px;
  min-height: auto;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  box-shadow: none;
}

.cf-actions .btn-outline.cf-back-btn:hover {
  color: var(--accent-1);
  background: transparent;
  transform: none;
  box-shadow: none;
}

.cf-actions .btn-primary {
  flex: 0 0 auto;
  justify-content: center;
  min-height: 48px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  box-shadow: 0 6px 28px rgba(8, 145, 178, 0.28);
}

.cf-actions .btn-primary:hover {
  box-shadow: 0 10px 36px rgba(8, 145, 178, 0.38);
}

.cf-actions--single .cf-back-btn {
  flex: 0 0 auto;
}

/* Receipt */
.cf-receipt {
  background: var(--bg-2);
  border: 1px solid var(--border-md);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 32px);
  margin-bottom: clamp(32px, 4vh, 48px);
  box-shadow: var(--shadow-md);
}

.cf-receipt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px dashed var(--border-md);
}

.cf-receipt-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cf-receipt-date {
  font-size: 13px;
  color: var(--text-muted);
}

.cf-receipt-section {
  margin-bottom: 20px;
}

.cf-receipt-section-title {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.cf-receipt-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  line-height: 1.5;
  border-bottom: 1px solid rgba(0,0,0,.04);
}

.cf-receipt-line:last-child {
  border-bottom: none;
}

.cf-receipt-line-label {
  color: var(--text-dim);
  flex-shrink: 0;
  min-width: 72px;
}

.cf-receipt-line-value {
  color: var(--text);
  text-align: right;
  flex: 1;
}

.cf-receipt-line-value--consult {
  color: var(--text-muted);
  font-size: 14px;
}

.cf-receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  margin-top: 8px;
  border-top: 2px solid var(--text);
}

.cf-receipt-total span {
  font-size: 15px;
  font-weight: 600;
}

.cf-receipt-total strong {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cf-receipt-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.cf-submit-status {
  text-align: center;
  font-size: 14px;
  color: var(--accent-1);
  margin-top: 16px;
}

.cf-submit-status--error {
  color: #dc2626;
}

.footer--contact {
  margin-top: 0;
}

@media (max-width: 600px) {
  .cf-form {
    grid-template-columns: 1fr;
  }
  .cf-choice {
    min-height: 52px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cf-est-panel {
    animation: none;
  }
}
