*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

#fcOverlay,
#fcContractOverlay,
#fcPostcodeOverlay {
  --blue: #0CC4B4;
  --blue-light: #E9FFFC;
  --blue-mid: #B8F4EE;
  --blue-dark: #07A89A;
  --navy: #070E1B;
  --navy-light: #EAF1FF;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --surface: #F9FAFB;
  --white: #FFFFFF;
  --success: #059669;
  --success-bg: #ECFDF5;
  --error: #DC2626;
  --error-bg: #FEF2F2;
  --warning-bg: #FFFBEB;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-modal: 0 20px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08);
}

.fc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 50, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  /* GNB·모바일 하단 앱독(1002) 위에 표시 */
  z-index: 10050;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.fc-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.fc-dialog {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.34,1.4,0.64,1);
  overflow: hidden;
}
@supports (height: 100dvh) {
  .fc-dialog {
    max-height: min(calc(100vh - 40px), calc(100dvh - 40px));
  }
}
.fc-overlay.open .fc-dialog { transform: translateY(0) scale(1); }

.fc-header {
  padding: 24px 28px 0;
  flex-shrink: 0;
  background: var(--white);
  position: relative;
}
.fc-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.fc-kicker {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.fc-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.3;
}
.fc-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.fc-meta strong { color: var(--text-primary); }
.fc-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--surface);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background 0.15s;
  margin-top: 2px;
}
.fc-close:hover { background: #E5E7EB; }
.fc-close svg { display: block; }

.fc-steps {
  display: flex;
  gap: 0;
  margin-top: 20px;
  border-bottom: 1px solid var(--border);
}
.fc-step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 14px;
  position: relative;
}
.fc-step-item::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s;
}
.fc-step-item.active::after { background: var(--blue); }
.fc-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s;
}
.fc-step-item.active .fc-step-dot {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.fc-step-item.done .fc-step-dot {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}
.fc-step-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}
.fc-step-item.active .fc-step-label { color: var(--blue); font-weight: 600; }
.fc-step-item.done .fc-step-label { color: var(--success); }

.fc-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 8px;
  scroll-behavior: smooth;
}
.fc-body::-webkit-scrollbar { width: 4px; }
.fc-body::-webkit-scrollbar-track { background: transparent; }
.fc-body::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 4px; }

.fc-section { margin-bottom: 28px; }
.fc-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
}
.fc-section-title::before {
  content: "";
  display: block;
  width: 3px;
  height: 14px;
  background: var(--blue);
  border-radius: 2px;
}

.fc-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.fc-plan-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
  user-select: none;
}
.fc-plan-card:hover { border-color: #93C5FD; background: #FAFBFF; }
.fc-plan-card.selected {
  border-color: var(--blue);
  background: var(--blue-light);
}
.fc-plan-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.fc-plan-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.fc-plan-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  margin-left: 6px;
  background: #F3F4F6;
  color: var(--text-secondary);
  vertical-align: middle;
}
.fc-plan-card.selected .fc-plan-badge {
  background: var(--blue);
  color: #fff;
}
.fc-plan-card.pro .fc-plan-badge {
  background: #EFF6FF;
  color: #1D4ED8;
}
.fc-plan-card.pro.selected .fc-plan-badge {
  background: var(--navy);
  color: #fff;
}
.fc-plan-price {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
}
.fc-plan-price span { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.fc-plan-signup {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.fc-plan-signup strong { color: var(--text-secondary); }
.fc-plan-desc {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.fc-plan-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.fc-plan-card.selected .fc-plan-check { background: var(--blue); }
.fc-plan-check svg { display: none; }
.fc-plan-card.selected .fc-plan-check svg { display: block; }
.fc-plan-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

.fc-banner {
  background: var(--warning-bg);
  border: 1px solid #FDE68A;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12.5px;
  color: #92400E;
  line-height: 1.55;
  margin-bottom: 20px;
}
.fc-banner strong { font-weight: 700; }

.fc-field { margin-bottom: 14px; }
.fc-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}
.fc-label .req { color: var(--error); margin-left: 2px; }
.fc-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 5px;
  line-height: 1.4;
}
.fc-input, .fc-textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.fc-input:hover, .fc-textarea:hover { border-color: #9CA3AF; }
.fc-input:focus, .fc-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33,129,255,0.12);
}
.fc-input.readonly { background: var(--surface); color: var(--text-secondary); cursor: default; }
.fc-textarea { resize: vertical; min-height: 80px; line-height: 1.55; }

.fc-radio-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fc-pay-options {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}
.fc-pay-options .fc-radio-label {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  white-space: nowrap;
}
.fc-radio-label {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.15s;
  user-select: none;
}
.fc-radio-label:hover { border-color: #93C5FD; background: #FAFBFF; }
.fc-radio-label input { display: none; }
.fc-radio-label.checked {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue);
}

.fc-addr-row { display: flex; gap: 6px; margin-bottom: 6px; }
.fc-phone-otp-inline {
  display: flex;
  gap: 6px;
}
.fc-phone-otp-inline .fc-input {
  flex: 1;
}
.fc-btn-zip {
  flex-shrink: 0;
  padding: 10px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.fc-btn-zip:hover { background: #E5E7EB; border-color: #9CA3AF; }

.fc-otp-row { display: flex; gap: 6px; margin-top: 6px; }
.fc-otp-input {
  flex: 1;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-align: center;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.fc-otp-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33,129,255,0.12);
}
.fc-otp-btn {
  flex-shrink: 0;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.fc-otp-btn:hover { background: #004ba0; }
.fc-otp-btn:disabled { background: #9CA3AF; cursor: not-allowed; }
.fc-otp-btn.verify { background: var(--blue); }
.fc-otp-btn.verify:hover { background: var(--blue-dark); }
.fc-otp-timer {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--error);
  padding: 0 6px;
}
.fc-otp-msg {
  font-size: 12px;
  margin-top: 5px;
  line-height: 1.4;
}
.fc-otp-msg.success { color: var(--success); }
.fc-otp-msg.error { color: var(--error); }

.fc-pay-skip {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}
.fc-bank-box {
  background: var(--navy-light);
  border: 1px solid #BFCDE8;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 10px;
}
.fc-bank-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.fc-bank-dl {
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fc-bank-row { display: flex; gap: 8px; }
.fc-bank-dt { color: var(--text-muted); min-width: 60px; font-weight: 500; }
.fc-bank-dd { color: var(--text-primary); font-weight: 600; }
.fc-bank-acct {
  font-family: "Courier New", monospace;
  letter-spacing: 0.04em;
  font-size: 14px;
  color: var(--navy);
}
.fc-bank-note {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 10px;
  margin-bottom: 8px;
  line-height: 1.5;
}
.fc-card-notice {
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13px;
  color: #1E40AF;
  line-height: 1.55;
  margin-top: 10px;
}

.fc-footer {
  padding: 16px 28px 24px;
  flex-shrink: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.fc-btn-secondary {
  padding: 11px 20px;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.fc-btn-secondary:hover { background: var(--surface); border-color: #9CA3AF; }
.fc-btn-primary {
  padding: 11px 24px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: -0.01em;
}
.fc-btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.fc-btn-primary:active { transform: translateY(0); }
.fc-btn-primary:disabled { background: #9CA3AF; cursor: not-allowed; transform: none; }

.fc-step2-lead {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 12px 14px;
  background: var(--blue-light);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--blue);
}

.fc-agree-block {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 10px;
}
.fc-agree-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--white);
  cursor: pointer;
  transition: background 0.15s;
}
.fc-agree-header:hover { background: var(--surface); }
.fc-agree-block.checked .fc-agree-header { background: #F0FDF4; border-bottom-color: #BBF7D0; }
.fc-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  background: var(--white);
}
.fc-agree-block.checked .fc-checkbox {
  background: var(--success);
  border-color: var(--success);
}
.fc-checkbox svg { display: none; }
.fc-agree-block.checked .fc-checkbox svg { display: block; }
.fc-agree-text {
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.45;
}
.fc-agree-block.checked .fc-agree-text { color: #166534; }
.fc-agree-text .req { color: var(--error); margin-left: 2px; }
.fc-agree-expand { color: var(--text-muted); transition: transform 0.2s; }
.fc-agree-block.open .fc-agree-expand { transform: rotate(180deg); }

.fc-agree-content {
  display: none;
  padding: 14px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.fc-agree-block.open .fc-agree-content { display: block; }
.fc-agree-legal {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-wrap;
}
.fc-agree-legal a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fc-agree-btn-contract {
  --fc-contract-shine: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
  padding: 12px 14px 12px 12px;
  background: linear-gradient(145deg, #152a4a 0%, var(--navy) 42%, #050a12 100%);
  color: #f8fafc;
  border: 1px solid rgba(12, 196, 180, 0.35);
  border-radius: var(--radius-md);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  box-shadow:
    0 1px 0 var(--fc-contract-shine) inset,
    0 6px 20px rgba(7, 14, 27, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.18s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
.fc-agree-btn-contract__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(232, 251, 248, 0.95);
  border: 1px solid rgba(12, 196, 180, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}
.fc-agree-btn-contract__icon svg {
  display: block;
}
.fc-agree-btn-contract__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.fc-agree-btn-contract__label {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.fc-agree-btn-contract__hint {
  font-size: 11px;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.72);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.fc-agree-btn-contract__chev {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: rgba(12, 196, 180, 0.95);
  background: rgba(12, 196, 180, 0.12);
  border: 1px solid rgba(12, 196, 180, 0.28);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.fc-agree-btn-contract__chev svg {
  display: block;
}
.fc-agree-btn-contract:hover {
  transform: translateY(-2px);
  border-color: rgba(12, 196, 180, 0.55);
  box-shadow:
    0 1px 0 var(--fc-contract-shine) inset,
    0 10px 28px rgba(7, 14, 27, 0.38),
    0 0 0 1px rgba(12, 196, 180, 0.12);
}
.fc-agree-btn-contract:hover .fc-agree-btn-contract__chev {
  background: rgba(12, 196, 180, 0.22);
  color: #e9fffc;
  transform: translateX(2px);
}
.fc-agree-btn-contract:active {
  transform: translateY(0);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 3px 12px rgba(7, 14, 27, 0.35);
}
.fc-agree-btn-contract:active .fc-agree-btn-contract__chev {
  transform: translateX(0);
}
.fc-agree-btn-contract:focus {
  outline: none;
}
.fc-agree-btn-contract:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.fc-success { text-align: center; padding: 20px 0 16px; }
.fc-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--success-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.fc-success-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.fc-success-lead {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}
.fc-success-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.fc-success-meta strong { color: var(--text-primary); }
.fc-doc-notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-align: left;
  margin-bottom: 16px;
}
.fc-doc-notice-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.fc-doc-notice p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.55;
}
.fc-doc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.fc-doc-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
}
.fc-doc-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.fc-doc-tel {
  font-size: 13px;
  color: var(--text-muted);
}
.fc-doc-tel strong { color: var(--navy); }

.fc-contract-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,20,50,0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10100;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.fc-contract-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.fc-contract-dialog {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.34,1.4,0.64,1);
  overflow: hidden;
}
.fc-contract-overlay.open .fc-contract-dialog { transform: translateY(0) scale(1); }
.fc-contract-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.fc-contract-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.fc-contract-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  background: var(--navy-light);
  color: var(--navy);
  border-radius: 20px;
  letter-spacing: 0.03em;
}
.fc-contract-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
}
.fc-contract-close:hover { color: var(--text-primary); }
.fc-contract-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.75;
}
.fc-contract-scroll::-webkit-scrollbar { width: 4px; }
.fc-contract-scroll::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 4px; }
.fc-contract-article { margin-bottom: 20px; }
.fc-contract-article h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.fc-contract-article p, .fc-contract-article li {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.fc-contract-article ol, .fc-contract-article ul {
  padding-left: 16px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fc-contract-foot {
  padding: 14px 24px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.fc-contract-hint {
  font-size: 12px;
  color: var(--text-muted);
}
.fc-contract-confirm {
  padding: 10px 22px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.fc-contract-confirm:hover { background: var(--blue-dark); }
.fc-contract-confirm:disabled { background: #9CA3AF; cursor: not-allowed; }

.fc-postcode-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 50, 0.6);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10200;
  padding: 16px;
}
.fc-postcode-overlay.open {
  display: flex;
}
.fc-postcode-panel {
  width: 100%;
  max-width: 520px;
  height: min(86vh, 640px);
  min-height: 500px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-modal);
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr);
  overflow: hidden;
}
.fc-postcode-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.fc-postcode-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.fc-postcode-close {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.fc-postcode-close:hover {
  border-color: #9CA3AF;
  background: #F3F4F6;
}
.fc-postcode-embed {
  width: 100%;
  min-height: 360px;
  height: 100%;
  background: var(--white);
}

.fc-scroll-progress {
  height: 2px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.fc-scroll-bar {
  height: 100%;
  background: var(--blue);
  width: 0%;
  transition: width 0.1s;
}

.fc-form-msg {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  display: none;
}
.fc-form-msg.error {
  display: block;
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid #FECACA;
}

/* 인라인 검증 오류(항목 바로 아래) */
.fc-field-error {
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--error);
  line-height: 1.45;
}
.fc-section > .fc-field-error {
  margin-top: 10px;
}
.fc-agree-block > .fc-field-error {
  margin: 0 16px 12px;
  padding-top: 2px;
}
.fc-agree-block.fc-agree-block--error {
  border-color: #fca5a5;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.1);
}

@media (max-width: 768px) {
  .fc-overlay {
    padding: calc(12px + env(safe-area-inset-top, 0px))
      calc(12px + env(safe-area-inset-right, 0px))
      calc(12px + env(safe-area-inset-bottom, 0px))
      calc(12px + env(safe-area-inset-left, 0px));
  }
  .fc-dialog {
    max-height: calc(100vh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }
  .fc-footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}
@supports (height: 100dvh) {
  @media (max-width: 768px) {
    .fc-dialog {
      max-height: min(
        calc(100vh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)),
        calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))
      );
    }
  }
}

@media (max-width: 480px) {
  .fc-dialog { border-radius: var(--radius-lg); }
  .fc-header { padding: 20px 20px 0; }
  .fc-body { padding: 20px 20px 8px; }
  .fc-footer { padding: 14px 20px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .fc-plan-grid { grid-template-columns: 1fr; }
  .fc-plan-badge {
    font-size: 12px;
  }
  .fc-postcode-panel {
    max-width: 100%;
    min-height: 0;
    height: 92vh;
  }
}
