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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f5f5;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.signup-wrap {
  background: #fff;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.signup-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}
.signup-header .btn-back {
  position: absolute;
  left: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #333;
}
.signup-header .step-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.signup-body {
  padding: 28px 24px;
  flex: 1;
}
.signup-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}
.signup-body .desc {
  font-size: 14px;
  color: #888;
  margin-bottom: 28px;
}

.form-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  color: #444;
  margin-bottom: 6px;
}
.form-group label .required { color: #e53e3e; margin-left: 2px; }

.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; }

input[type="text"],
input[type="password"],
input[type="tel"],
select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 14px;
  color: #111;
  outline: none;
  transition: border-color 0.2s;
}
input::placeholder { color: #aaa; }
input:focus, select:focus { border-color: #3B6FF5; }
input.error, select.error { border-color: #e53e3e; }

.error-msg {
  font-size: 12px;
  color: #e53e3e;
  margin-top: 4px;
  display: none;
}
.error-msg.show { display: block; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  font-size: 18px;
}

.btn {
  height: 48px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}
.btn-blue { background: #3B6FF5; color: #fff; }
.btn-blue:hover { background: #2d5ce0; }
.btn-outline { background: #fff; color: #555; border: 1px solid #D1D5DB; }
.btn-outline:hover { background: #f9f9f9; }
.btn-gray { background: #9CA3AF; color: #fff; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.email-row { display: flex; gap: 8px; }
.email-row input, .email-row select { flex: 1; min-width: 0; }

.signup-footer { padding: 16px 24px 32px; }
.footer-btn-row { display: flex; gap: 10px; }
.footer-btn-row .btn { flex: 1; }

.step { display: none; }
.step.active { display: block; }

/* ---------- 요금제 카드 ---------- */
.plan-card {
  width: 100%;
  border: 1px solid #D1D5DB;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  text-align: left;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s;
}
.plan-card:hover { border-color: #93AEFF; }
.plan-card.selected { border-color: #3B6FF5; border-width: 2px; }

.plan-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.plan-card-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}
.plan-card-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-block;
}
.plan-card-price {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}
.plan-card-desc {
  font-size: 12px;
  color: #9CA3AF;
  margin-top: 6px;
}
.plan-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.plan-feature-tag {
  font-size: 11px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 3px 8px;
  color: #6B7280;
  background: #F9FAFB;
}

.plan-none-btn {
  width: 100%;
  border: 1px solid #D1D5DB;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s;
}
.plan-none-btn.selected { border-color: #3B6FF5; border-width: 2px; }
.plan-none-btn:hover { border-color: #93AEFF; }

.plan-loading {
  text-align: center;
  color: #9CA3AF;
  padding: 40px 0;
  font-size: 14px;
}

/* ---------- 확인 다이얼로그 ---------- */
.confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.confirm-overlay.open { display: flex; }

.confirm-dialog {
  background: #fff;
  border-radius: 12px;
  width: 320px;
  padding: 20px;
  animation: fadeUp 0.2s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.confirm-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.confirm-dialog-title {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}
.confirm-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #9CA3AF;
  cursor: pointer;
  line-height: 1;
}
.confirm-field { margin-bottom: 12px; }
.confirm-field-label {
  font-size: 12px;
  color: #9CA3AF;
  margin-bottom: 4px;
}
.confirm-field-value {
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #374151;
  background: #F9FAFB;
}
.confirm-notice {
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 12px;
  margin-bottom: 16px;
}
