@charset "UTF-8";

/* ── Base ── */
body.sub-form-page {
  display: block !important;
  justify-content: initial !important;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 15px;
  color: #1a1a2e;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 140, 0, 0.12), transparent),
    #f4f6f9;
  -webkit-font-smoothing: antialiased;
}

.sf-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

@media (min-width: 640px) {
  .sf-wrap { max-width: 560px; padding-top: 32px; }
}

/* ── Card ── */
.sf-card {
  background: #fff;
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 8px 32px rgba(15, 23, 42, 0.06),
    0 24px 48px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

/* ── Hero header ── */
.sf-hero {
  text-align: center;
  padding: 36px 28px 28px;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  border-bottom: 1px solid #eef0f4;
}

.sf-logo {
  display: block;
  width: min(300px, 88vw);
  height: auto;
  margin: 0 auto 20px;
  object-fit: contain;
}

.sf-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
  line-height: 1.35;
}

/* button_hover_style.css h1:first-letter 밑줄 제거 */
.sub-form-page h1::first-letter,
.sub-form-page .sf-title::first-letter {
  color: inherit;
  border-bottom: none;
}

.sf-subtitle {
  margin: 8px 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.5;
}

/* ── Body & panels ── */
.sf-body {
  padding: 8px 24px 28px;
}

@media (max-width: 480px) {
  .sf-body { padding-left: 18px; padding-right: 18px; }
}

.sf-panel {
  background: #fafbfc;
  border: 1px solid #eef0f4;
  border-radius: 18px;
  padding: 22px 20px;
  margin-bottom: 16px;
}

.sf-panel-head {
  margin: 0 0 18px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
  padding-bottom: 12px;
  border-bottom: 2px solid #ff8c00;
  display: inline-block;
  min-width: 100%;
}

.sf-panel-head.optional {
  border-bottom-color: #d1d5db;
  color: #374151;
}

.sf-panel-head.optional::after {
  content: '선택';
  margin-left: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #9ca3af;
  vertical-align: middle;
}

/* ── Segmented control (신규/납부방식/계좌 등) ── */
.sf-segment {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px;
  background: #e8ecf1;
  border-radius: 16px;
}

.sf-segment-2 {
  grid-template-columns: repeat(2, 1fr);
}

.sf-segment-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sf-segment-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 8px;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  border: 2px solid transparent;
}

.sf-segment-item:hover {
  color: #334155;
  background: rgba(255, 255, 255, 0.5);
}

.sf-segment-input:checked + .sf-segment-item {
  background: #fff;
  color: #111827;
  font-weight: 700;
  border-color: #ff8c00;
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.18);
}

.sf-segment-input:focus-visible + .sf-segment-item {
  outline: 2px solid #ff8c00;
  outline-offset: 2px;
}

.sf-segment-input:disabled + .sf-segment-item {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Benefit box (약관 페이지) ── */
.sf-benefit-box {
  background: linear-gradient(145deg, #fff9f5 0%, #fff3eb 100%);
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: 18px;
  padding: 20px;
  max-height: 40vh;
  overflow-y: auto;
  margin-bottom: 24px;
}

.sf-badge {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c2410c;
  background: rgba(255, 140, 0, 0.15);
  border-radius: 999px;
}

.sf-benefit-box h2 {
  margin: 0 0 6px;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

.sf-benefit-box p.lead {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  color: #6b7280;
}

.sf-benefit-box p.lead strong {
  color: #ea580c;
  font-weight: 700;
}

.sf-benefit-box .benefit-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #9a3412;
  margin: 0 0 10px;
}

.sf-benefit-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sf-benefit-box li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #374151;
}

.sf-benefit-box li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff8c00;
}

/* ── Terms checkboxes ── */
.sub-form-page .terms_table {
  margin: 0 0 8px;
}

.sub-form-page .form-check.check-line {
  margin: 0 0 8px;
  padding-left: 0;
  min-height: auto;
}

.sub-form-page .sf-check-row.form-check {
  padding-left: 0;
}

.sub-form-page .sf-check-row .form-check-input,
.sub-form-page .sf-check-all .form-check-input {
  float: none;
  margin-left: 0 !important;
  margin-top: 0 !important;
}

.sub-form-page .sf-check-row .left {
  gap: 12px;
  padding-left: 4px;
}

.sf-check-all {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 2px solid #fdba74;
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.sf-check-all:has(input:checked) {
  border-color: #ff8c00;
  background: linear-gradient(135deg, #fff7ed, #fed7aa);
}

.sf-check-all span {
  font-size: 1rem;
  font-weight: 700;
  color: #9a3412;
}

.sf-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sf-check-row:has(input:checked) {
  border-color: #ff8c00;
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.sf-check-row .left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding-left: 4px;
}

.sf-check-row .form-check-input {
  width: 1.2em;
  height: 1.2em;
  margin: 0 14px 0 0;
  flex-shrink: 0;
  border-color: #d1d5db;
}

.sf-check-row .form-check-input:checked {
  background-color: #ff8c00;
  border-color: #ff8c00;
}

.sf-check-row label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  margin: 0;
  line-height: 1.4;
}

.sf-link-btn {
  flex-shrink: 0;
  padding: 4px 9px;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.2;
  color: #c2410c !important;
  background: #fff7ed !important;
  border: 1px solid #fdba74 !important;
  border-radius: 7px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

.sf-link-btn:hover,
.sf-link-btn:focus {
  background: #ffedd5 !important;
  border-color: #ff8c00 !important;
  color: #9a3412 !important;
  text-decoration: none !important;
}

.sub-form-page a.a_lnk_terms,
.sub-form-page a.sf-link-btn {
  color: #c2410c !important;
  text-decoration: none !important;
}

.sub-form-page a.a_lnk_terms:hover,
.sub-form-page a.sf-link-btn:hover {
  color: #9a3412 !important;
}

.sf-divider {
  border: none;
  height: 1px;
  background: #e5e7eb;
  margin: 20px 0;
}

/* ── Form fields ── */
.sf-field {
  margin-bottom: 18px;
}

.sf-field:last-child {
  margin-bottom: 0;
}

.sf-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4b5563;
  letter-spacing: -0.01em;
}

.sf-label .req {
  color: #ef4444;
  margin-right: 2px;
}

.sub-form-page .form-control,
.sub-form-page .form-select,
.sub-form-page textarea {
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.9375rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sub-form-page .form-control:focus,
.sub-form-page .form-select:focus,
.sub-form-page textarea:focus {
  border-color: #ff8c00;
  box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.12);
  outline: none;
}

.sub-form-page .form-control[readonly] {
  background: #f3f4f6;
  color: #6b7280;
}

.sf-phone-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sf-phone-row .sep {
  color: #d1d5db;
  font-weight: 300;
}

.sf-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: #ff8c00;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.sf-icon-btn:hover {
  background: #ea7800;
  transform: scale(1.03);
}

/* ── Contract notice ── */
.sf-contract-box {
  margin-bottom: 18px;
  padding: 18px;
  background: #fff;
  border: 1px dashed #fdba74;
  border-radius: 14px;
}

.sf-contract-notice {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.55;
  color: #b45309;
  background: #fffbeb;
  border-radius: 10px;
}

/* ── ARS box ── */
.sf-ars-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 20px 0;
  padding: 20px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border: 1px solid #c7d2fe;
  border-radius: 16px;
}

.sf-ars-box .sf-label {
  color: #3730a3;
  font-size: 0.9375rem;
}

.sf-ars-box p.desc {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #4338ca;
}

.sf-btn-ars {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.sf-btn-ars:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* ── CTA buttons ── */
.sf-btn-wrap {
  margin-top: 8px;
  padding-top: 8px;
}

.sf-btn-primary {
  display: block;
  width: 100%;
  padding: 18px 24px;
  border: none;
  border-radius: 16px;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  cursor: pointer;
  text-align: center;
  background: linear-gradient(135deg, #ff8c00 0%, #f97316 50%, #ea580c 100%);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sf-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.4);
  color: #fff;
}

.sf-btn-primary:active {
  transform: translateY(0);
}

.sf-btn-primary-dark {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.25);
}

.sf-btn-primary-dark:hover {
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.3);
}

/* ── Footer ── */
.sf-footer {
  padding: 20px 24px;
  text-align: center;
  font-size: 0.6875rem;
  line-height: 1.7;
  color: #9ca3af;
  background: #fafbfc;
  border-top: 1px solid #eef0f4;
}

/* ── Amount & busu ── */
.sf-amount-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sf-amount-wrap .form-control.sf-amount {
  max-width: 200px;
}

.sub-form-page select {
  height: auto !important;
  min-height: 46px;
}

.sub-form-page .sf-busu-select {
  display: block;
  width: 108px;
  min-width: 108px;
  height: auto !important;
  min-height: 46px;
  padding: 11px 36px 11px 14px !important;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9375rem !important;
  font-weight: 700;
  line-height: 1.5;
  color: #111827 !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sub-form-page .sf-busu-select:focus {
  border-color: #ff8c00;
  box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.12);
  outline: none;
}

.sub-form-page .sf-saup-input {
  width: 100%;
  max-width: 200px;
}

.sub-form-page .sf-field-select {
  width: 100%;
  height: auto !important;
  min-height: 46px;
  padding: 11px 36px 11px 14px !important;
  font-size: 0.9375rem !important;
  color: #111827 !important;
  background-color: #fff !important;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
}

.sf-file-hint {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: #ef4444;
}

.sub-form-page .sf-file-input {
  font-size: 0.875rem;
}

.sub-form-page .sf-saup-input.is-corp {
  max-width: 100%;
}

.sf-bank-autocomplete {
  position: relative;
  max-width: 100%;
}

.sf-bank-autocomplete .form-control {
  padding-left: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.1a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}

.sf-bank-select-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sf-bank-suggest {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.sf-bank-suggest-item {
  padding: 10px 14px 10px 36px;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
}

.sf-bank-suggest-item:hover,
.sf-bank-suggest-item.is-active {
  background: #fff7ed;
  color: #c2410c;
  font-weight: 600;
}

/* ── Amount highlight ── */
.sf-amount {
  max-width: 200px;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #ea580c !important;
  background: #fff7ed !important;
  border-color: #fed7aa !important;
}

/* ── Modal ── */
.sub-form-page .modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
}

.sub-form-page .modal-header {
  border-bottom: 1px solid #eef0f4;
  padding: 18px 24px;
}

.sub-form-page .modal-body {
  padding: 20px 24px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #374151;
}

/* ── Legacy compat ── */
.terms_table { margin: 0; }
.sub-form-page .terms_out {
  border: none;
  padding: 0;
  overflow: visible;
  margin: 0;
}
.check-line { margin: 0; }
