@charset "UTF-8";

/* =========================================
   0. Font Configuration (Paperlogy)
   ========================================= */
@font-face {
  font-family: 'Paperlogy';
  src: url('../fonts/Paperlogy-1.000/Paperlogy-1Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('../fonts/Paperlogy-1.000/Paperlogy-2ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('../fonts/Paperlogy-1.000/Paperlogy-3Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('../fonts/Paperlogy-1.000/Paperlogy-4Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('../fonts/Paperlogy-1.000/Paperlogy-5Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('../fonts/Paperlogy-1.000/Paperlogy-6SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('../fonts/Paperlogy-1.000/Paperlogy-7Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('../fonts/Paperlogy-1.000/Paperlogy-8ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'Paperlogy';
  src: url('../fonts/Paperlogy-1.000/Paperlogy-9Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

/* =========================================
   1. 기본 설정 (Variables & Reset)
   ========================================= */
:root {
  /* Light Mode Tokens */
  --p-primary: #2f6286;
  --p-primary-hover: #244d6b;
  --p-secondary: #72bf44;
  --p-secondary-hover: #5ea338;
  --p-text-main: #231f20;
  --p-text-sub: #666666;
  --p-text-ghost: #999999;
  --p-bg-body: #f5f7fa;
  /* Restored for contrast */
  /* Unified with surface color */
  --p-bg-surface: #ffffff;
  --p-border: #eef2f5;
  --p-border-focus: #2f6286;
  --p-shadow: rgba(47, 98, 134, 0.08);
  --p-shadow-hover: rgba(47, 98, 134, 0.15);
  --p-error: #e74c3c;
  --p-success: #72bf44;

  /* Missing var fix */
  --ci-dark: #333333;
  /* Default dark color for light mode */
  --ci-blue: #2f6286;
  /* Map to p-primary */


  /* Shared Tokens */
  --r-radius-sm: 8px;
  --r-radius-md: 12px;
  --r-radius-lg: 20px;
  --t-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Preference handled via JS */


/* Dark Mode Class Override */
html.dark-mode,
body.dark-mode {
  --p-text-main: #f8f9fa;
  --p-text-sub: #b0b0b0;
  --p-text-ghost: #707070;
  --p-bg-body: #121212;
  --p-bg-surface: #1e1e1e;
  --p-border: #555555;
  /* Improved from #444444 for better visibility */
  --p-border-focus: #5d9cbd;
  --p-shadow: rgba(0, 0, 0, 0.3);
  --p-shadow-hover: rgba(0, 0, 0, 0.5);

  /* Fix specific colors for dark mode */
  --ci-dark: #f8f9fa;
  --p-primary: #5d9cbd;
  /* Lighter navy for better contrast in dark mode */
  --p-primary-hover: #7eb6d4;
}

/* Dark Mode Specific Overrides for Hardcoded Colors */
body.dark-mode .terms-row label,
body.dark-mode .sub-text,
body.dark-mode .modal-close,
body.dark-mode .terms-header .agree-all-label {
  color: var(--p-text-main);
}

body.dark-mode .footer-logo img {
  /* Remove inversion filter to preserve original colors */
  filter: none;
  mix-blend-mode: normal;
}

body.dark-mode .terms-container {
  background-color: var(--p-bg-surface);
  border-color: var(--p-border);
}

/* Dark Mode: Fix .btn-search visibility */
body.dark-mode .btn-search {
  background-color: #2a2a2a;
  /* Lighter than surface for contrast */
  border-color: #666666;
  /* More visible border */
}

body.dark-mode .btn-search:hover {
  background-color: #333333;
  border-color: var(--p-secondary);
  color: var(--p-secondary);
}

/* Dark Mode Toggle Button */
.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--p-bg-body);
  color: var(--p-text-main);
  border: 1px solid var(--p-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 10px;
}

.theme-toggle-btn:hover {
  background-color: var(--p-border);
  transform: translateY(-2px);
}

/* Fix for Terms Agreement Text in Dark Mode if it uses hardcoded colors */
/* [Unified modal content color in Section 2] */


body,
html {
  margin: 0;
  padding: 0;
  font-family: 'Paperlogy', sans-serif;
  font-weight: 400;
  /* Default weight */
  background-color: var(--p-bg-body);
  color: var(--p-text-main);
  -webkit-user-select: none;
  user-select: none;
  min-height: 100dvh;
  /* Dynamic viewport height for mobile browser compatibility */
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  box-sizing: border-box;
  /* Global box-sizing for predictable layout */
}

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

* {
  box-sizing: border-box;
}

/* =========================================
   2. 공통 컴포넌트 (Modal, Loading, Footer)
   ========================================= */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-box {
  background: var(--p-bg-surface);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  border-radius: var(--r-radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 40px var(--p-shadow);
  transform: translateY(20px);
  animation: modalUp 0.3s forwards cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes modalUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 18px 24px;
  background: var(--p-bg-surface);
  border-bottom: 1px solid var(--p-border);
  font-weight: 700;
  color: var(--p-text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--p-text-ghost);
}

.modal-content {
  padding: 24px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.7;
  color: var(--p-text-main);
  white-space: pre-wrap;
  text-align: left;
  font-family: 'Paperlogy', sans-serif;
}

.modal-footer {
  padding: 15px;
  border-top: 1px solid var(--p-border);
  text-align: center;
}

.modal-btn {
  background: var(--p-primary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--r-radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-family: 'Paperlogy', sans-serif;
  transition: var(--t-transition);
}

.modal-btn:hover {
  background: var(--p-primary-hover);
  transform: scale(1.02);
}

.loading-container {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--ci-blue);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  margin-bottom: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-msg {
  font-size: 13px;
  font-weight: 800;
  color: var(--ci-dark);
}

.wait-msg {
  font-size: 11px;
  color: #666;
  margin-top: 3px;
}

.footer-area {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0 30px;
  gap: 15px;
}

.footer-logo {
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo img {
  width: 70%;
  max-width: 250px;
  height: auto;
  display: block;
}

.footer-cs-info {
  font-size: 13px;
  color: var(--p-text-sub);
  line-height: 1.6;
  text-align: center;
  font-weight: 500;
}

.kakao-consult-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #FEE500;
  color: #3c1e1e;
  padding: 10px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: var(--t-transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 5px;
}

.kakao-consult-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  background-color: #fbdc00;
}

.kakao-icon {
  width: 20px;
  height: 20px;
}

/* =========================================
   3. 메인 & 조회 페이지
   ========================================= */
.main-container {
  width: 100%;
  max-width: 500px;
  margin: 40px auto;
  min-height: calc(100dvh - 80px);
  padding: 50px 30px 30px;
  background-color: var(--p-bg-surface);
  border-radius: var(--r-radius-md);
  box-shadow: 0 10px 30px var(--p-shadow);
  text-align: center;
  border: 1px solid var(--p-border);
  transition: var(--t-transition);
  display: flex;
  flex-direction: column;
}

.main-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--p-text-main);
  margin-bottom: 12px;
  letter-spacing: -0.8px;
}

.sub-title {
  font-size: 14px;
  color: var(--p-text-sub);
  margin-bottom: 30px;
  line-height: 1.6;
}

.terms-btn-box {
  text-align: center;
  margin-bottom: 30px;
}

.terms-btn {
  display: inline-block;
  background-color: var(--p-bg-body);
  color: var(--p-text-sub);
  padding: 10px 20px;
  border-radius: var(--r-radius-lg);
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
  border: 1px solid var(--p-border);
  transition: var(--t-transition);
  cursor: pointer;
  font-family: 'Paperlogy', sans-serif;
}

.terms-btn:hover {
  background-color: var(--p-border);
  transform: translateY(-2px);
}

.menu-btn {
  display: block;
  width: 100%;
  padding: 22px 0;
  margin-bottom: 15px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.btn-register {
  background-color: var(--p-primary);
  color: #fff;
  border: none;
}

.btn-register:hover {
  background-color: var(--p-primary-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--p-shadow-hover);
}

.btn-search {
  background-color: var(--p-bg-surface);
  color: var(--p-text-main);
  border: 1px solid var(--p-border);
}

.btn-search:hover {
  border-color: var(--p-secondary);
  color: var(--p-secondary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--p-shadow-hover);
}

.btn-title {
  display: block;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
}

.btn-desc {
  display: block;
  font-size: 12px;
  opacity: 0.9;
  font-weight: 400;
}

/* [Unified footer styles in Section 2] */

.inquiry-container {
  width: 100%;
  max-width: 500px;
  margin: 40px auto;
  min-height: calc(100dvh - 80px);
  padding: 30px;
  background-color: var(--p-bg-surface);
  border-radius: var(--r-radius-md);
  box-shadow: 0 10px 30px var(--p-shadow);
  border: 1px solid var(--p-border);
  display: flex;
  flex-direction: column;
}

.nav-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  /* True centering for the middle element */
  align-items: center;
  margin-bottom: 20px;
  padding: 5px 0;
  width: 100%;
}

.nav-header>*:nth-child(3) {
  justify-self: end;
}

.back-btn-top {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 5px 0;
  transition: color 0.3s;
  font-family: 'Paperlogy', sans-serif;
}

.back-btn-top:hover {
  color: var(--ci-blue);
}

.back-btn-top::before {
  content: '←';
  margin-right: 5px;
  font-size: 16px;
}

.home-btn {
  text-decoration: none;
  font-size: 13px;
  color: #888;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: color 0.3s;
}

.home-btn:hover {
  color: var(--p-primary);
}

.inquiry-container h2 {
  text-align: center;
  margin-bottom: 10px;
  color: var(--ci-dark);
  font-size: 24px;
  font-weight: 900;
}

.sub-text {
  text-align: center;
  margin-bottom: 25px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.kakao-btn-box {
  text-align: center;
  margin-bottom: 25px;
}

.kakao-btn {
  display: inline-block;
  background-color: #FEE500;
  color: #3c1e1e;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.kakao-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

body.dark-mode .kakao-btn {
  background-color: #f7e600;
  /* Slightly brighter for dark mode */
  color: #3b1e1e;
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--p-text-sub);
}

.input-group input {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--p-border);
  border-radius: var(--r-radius-sm);
  background-color: var(--p-bg-body);
  color: var(--p-text-main);
  font-size: 15px;
  box-sizing: border-box;
  transition: var(--t-transition);
}

.input-group input:focus {
  border-color: var(--p-border-focus);
  outline: none;
  background-color: var(--p-bg-surface);
  box-shadow: 0 0 0 4px var(--p-shadow);
}

.search-btn {
  width: 100%;
  padding: 16px;
  background-color: var(--p-primary);
  color: #fff;
  border: none;
  border-radius: var(--r-radius-sm);
  font-weight: 900;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
  transition: var(--t-transition);
}

.search-btn:hover {
  background-color: var(--p-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--p-shadow-hover);
}

#resultContainer {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.result-card {
  background-color: var(--p-bg-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--r-radius-md);
  padding: 24px;
  box-shadow: 0 4px 15px var(--p-shadow);
  position: relative;
  transition: var(--t-transition);
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px var(--p-shadow-hover);
  border-color: var(--p-primary);
}

.index-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--p-bg-body);
  color: var(--p-primary);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 900;
  border: 1px solid var(--p-border);
}

.status-badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--p-secondary);
  color: white;
  font-size: 12px;
  font-weight: 900;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px var(--p-shadow);
}

.info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--p-border);
  padding-bottom: 8px;
  font-size: 14px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--p-text-ghost);
  font-weight: 500;
}

.info-value {
  color: var(--p-text-main);
  font-weight: 700;
  text-align: right;
}

/* [Inherited from common footer-area] */

.warranty-section {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--p-border);
}

.warranty-title {
  font-size: 15px;
  font-weight: 900;
  color: var(--p-text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.year-badge {
  font-size: 11px;
  background-color: var(--p-text-main);
  color: var(--p-bg-surface);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
}

.warranty-box {
  background-color: var(--p-bg-body);
  border: 1px solid var(--p-border);
  border-radius: 8px;
  padding: 16px;
}

.warranty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 13px;
}

.w-item strong {
  color: var(--p-primary);
}

.receipt-note {
  grid-column: span 2;
  font-size: 11px;
  color: var(--p-primary);
  font-weight: 700;
  margin-top: 8px;
  border-top: 1px solid var(--p-border);
  padding-top: 8px;
  text-align: center;
}

.marketing-section {
  display: none;
}

.promo-link {
  display: block;
  margin-top: 15px;
  padding: 12px;
  background-color: #e67e22;
  color: white;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(230, 126, 34, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(230, 126, 34, 0);
  }
}

.message-box {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 14px;
  display: none;
  margin-top: 10px;
}

.error-text {
  color: #e74c3c;
  font-weight: 800;
}

.count-msg {
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  color: var(--p-text-main);
  /* Changed from ci-dark */
  margin-bottom: 10px;
  display: none;
  padding: 10px;
  background-color: var(--p-bg-body);
  /* Changed from hardcoded #f0f4f8 */
  border: 1px solid var(--p-border);
  border-radius: 8px;
}

/* =========================================
   5. 등록 페이지 (product_regist.html)
   ========================================= */
.regist-container {
  width: 100%;
  max-width: 600px;
  margin: 40px auto;
  min-height: calc(100dvh - 80px);
  padding: 40px;
  /* Bottom padding reduced */
  background-color: var(--p-bg-surface);
  border-radius: var(--r-radius-md);
  box-shadow: 0 10px 30px var(--p-shadow);
  position: relative;
  border: 1px solid var(--p-border);
  display: flex;
  flex-direction: column;
}

/* [Inherited from common footer-area] */

.required-mark {
  color: #e74c3c;
  margin-left: 3px;
  font-weight: 800;
}

.optional-mark {
  color: #888;
  font-weight: normal;
  font-size: 12px;
  margin-left: 5px;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
  position: relative;
}

.form-group {
  margin-bottom: 15px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 13px;
  color: #555;
}

input[type="text"],
select,
input[type="file"] {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--p-border);
  border-radius: var(--r-radius-sm);
  background-color: var(--p-bg-body);
  color: var(--p-text-main);
  font-size: 15px;
  box-sizing: border-box;
  transition: var(--t-transition);
  font-family: 'Paperlogy', sans-serif;
}

input:focus,
select:focus {
  border-color: var(--p-border-focus);
  outline: none;
  background-color: var(--p-bg-surface);
  box-shadow: 0 0 0 4px var(--p-shadow);
}

.submit-btn {
  width: 100%;
  padding: 18px;
  background-color: var(--p-primary);
  color: #fff;
  border: none;
  border-radius: var(--r-radius-sm);
  font-size: 17px;
  cursor: pointer;
  margin-top: 15px;
  font-weight: 900;
  transition: var(--t-transition);
  box-shadow: 0 4px 6px var(--p-shadow);
}

.submit-btn:hover {
  background-color: var(--p-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px var(--p-shadow-hover);
}

.submit-btn:disabled {
  background-color: var(--p-border);
  color: var(--p-text-ghost);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* [NEW] 통합 약관 박스 스타일 */
.terms-container {
  border: 1px solid var(--p-border);
  /* Changed from #ddd */
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 25px;
  background-color: var(--p-bg-surface);
  /* Changed from #fff */
}

/* 전체 동의 헤더 */
.terms-header {
  background-color: var(--p-bg-body);
  /* Changed from hardcoded #f8f9fa */
  padding: 15px 20px;
  border-bottom: 1px solid var(--p-border);
  /* Changed from #eee */
}

.terms-header .agree-all-label {
  font-size: 16px;
  color: var(--ci-dark);
  margin: 0;
  width: auto;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.terms-header input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  accent-color: var(--ci-blue);
  cursor: pointer;
}

/* 약관 리스트 영역 */
.terms-body {
  padding: 10px 20px;
}

.terms-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--p-border);
  /* Changed from #eee */
}

.terms-row:last-child {
  border-bottom: none;
}

.terms-row label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--p-text-main);
  /* Changed from #555 */
  cursor: pointer;
  margin: 0;
  flex: 1;
}

.terms-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  accent-color: var(--ci-blue);
  cursor: pointer;
}

/* 내용보기 버튼 */
.btn-view-term {
  font-size: 12px;
  color: var(--p-text-sub);
  /* Changed from #999 */
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 0 5px;
  white-space: nowrap;
}

.btn-view-term:hover {
  color: var(--ci-blue);
}

/* 필수/선택 배지 */
.badge-req {
  color: #e74c3c;
  font-weight: 800;
  font-size: 11px;
  margin-left: 4px;
}

.badge-opt {
  color: #888;
  font-size: 11px;
  margin-left: 4px;
}

/* [NEW] Stepper UI */
.stepper-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: 8px;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--p-bg-body);
  border: 2px solid var(--p-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: var(--p-text-ghost);
  transition: var(--t-transition);
}

.step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--p-text-ghost);
  transition: var(--t-transition);
}

.step-item.active .step-circle {
  background-color: var(--p-primary);
  border-color: var(--p-primary);
  color: #fff;
  box-shadow: 0 0 0 4px var(--p-shadow);
}

.step-item.active .step-label {
  color: var(--p-primary);
}

.step-item.complete .step-circle {
  background-color: var(--p-secondary);
  border-color: var(--p-secondary);
  color: #fff;
}

.step-line {
  flex: 1;
  height: 2px;
  background-color: var(--p-border);
  margin: 0 10px;
  margin-top: -20px;
}

.form-step {
  display: none;
  animation: fadeInRight 0.4s ease forwards;
}

.form-step.active {
  display: block;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--p-text-main);
  margin-bottom: 25px;
  line-height: 1.4;
}

.step-btns {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

/* [수정] 버튼 스타일 개선 */
.next-btn,
.back-btn {
  flex: 1;
  padding: 16px;
  border-radius: var(--r-radius-sm);
  font-weight: 900;
  cursor: pointer;
  transition: var(--t-transition);
  font-size: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.next-btn {
  background-color: var(--p-primary);
  color: #fff;
  border: none;
  width: 100%;
  /* Ensure full width */
}

.next-btn:hover {
  background-color: var(--p-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px var(--p-shadow-hover);
}

.next-btn:disabled {
  background-color: var(--p-border);
  color: var(--p-text-ghost);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.back-btn {
  background-color: #fff;
  color: var(--p-text-sub);
  border: 1px solid var(--p-border);
  flex: 1;
  max-width: 100px;
}

.back-btn:hover {
  background-color: #f0f0f0;
  border-color: #ccc;
  color: var(--p-text-main);
}

/* [수정] 버튼 텍스트 줄바꿈 방지 및 최소 너비 확보 */
.back-btn {
  min-width: 80px;
  white-space: nowrap;
}

/* 차대번호 가이드 & 입력창 */
.serial-guide-box {
  background-color: var(--p-bg-body);
  border: 1px solid var(--p-border);
  border-radius: var(--r-radius-sm);
  padding: 16px;
  margin-bottom: 15px;
  text-align: center;
}

.serial-guide-box img {
  max-width: 100%;
  border-radius: 4px;
  border: 1px solid var(--p-border);
  margin-bottom: 8px;
}

.serial-guide-text {
  font-size: 13px;
  color: var(--p-primary);
  margin-top: 5px;
  font-weight: 700;
}

.error-msg {
  font-size: 12px;
  margin-top: 8px;
  font-weight: 900;
  min-height: 18px;
}

/* [NEW] 이미지 미리보기 & 확인 버튼 */
#imgPreview {
  max-width: 100%;
  max-height: 200px;
  display: none;
  margin-top: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  object-fit: contain;
  background-color: #f8f8f8;
}

/* [수정] 입력창과 버튼을 감싸는 컨테이너 */
.input-wrapper {
  position: relative;
  display: block;
  /* Flex 대신 Block으로 전환 */
}

.input-wrapper input {
  width: 100%;
  padding-right: 90px;
  /* 버튼 공간 확보 */
}

/* [수정] 조회 버튼 (입력창 내부 우측 배치) */
.check-btn {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 70px;
  height: 36px;
  background-color: var(--p-primary);
  /* CI Color: Navy */
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--t-transition);
  font-size: 14px;
  z-index: 5;
}

.check-btn:hover {
  background-color: var(--p-primary-hover);
}

.check-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.store-info-display {
  font-size: 13px;
  color: var(--p-text-main);
  background-color: var(--p-bg-body);
  padding: 14px;
  border-radius: var(--r-radius-sm);
  margin-top: 10px;
  display: none;
  line-height: 1.6;
  border-left: 4px solid var(--p-secondary);
}

.suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background: var(--p-bg-surface);
  border: 1px solid var(--p-border);
  border-radius: 0 0 var(--r-radius-sm) var(--r-radius-sm);
  z-index: 1000;
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  box-shadow: 0 10px 20px var(--p-shadow);
}

.suggestions-list li {
  padding: 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--p-border);
  font-size: 14px;
  color: var(--p-text-main);
}

.suggestions-list li:hover {
  background-color: var(--p-bg-body);
  color: var(--p-primary);
}

@keyframes attention-pulse {
  0% {
    box-shadow: 0 0 0 0 var(--p-shadow);
    border-color: var(--p-primary);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(47, 98, 134, 0);
    border-color: var(--p-primary);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(47, 98, 134, 0);
  }
}

.highlight-input {
  animation: attention-pulse 2s infinite;
}

/* [수정] 뱃지 스타일 (CI 컬러 반영, 위치 하단으로 이동) */
.step-badge {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  /* 우측 정렬 유지 */
  background-color: var(--p-primary);
  /* CI Color: Navy */
  color: white;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(47, 98, 134, 0.3);
  animation: float-badge 1s ease-in-out infinite alternate;
  z-index: 10;
  white-space: nowrap;
}

/* 말풍선 꼬리 방향 수정 (위쪽을 가리키도록) */
.step-badge::after {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 20px;
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent var(--p-primary) transparent;
}

@keyframes float-badge {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(5px);
  }
}

@media (max-width: 500px) {

  .main-container,
  .inquiry-container,
  .regist-container {
    margin: 0 auto;
    padding: 30px 20px;
    border-radius: 0;
    width: 100%;
    min-height: 100dvh;
    /* Use dynamic height for full-screen feel */
    border: none;
    box-shadow: none;
  }

  .footer-logo {
    margin: 30px auto 0 !important;
    /* 모바일 하단 여백 정규화 */
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .step-btns {
    flex-direction: column;
  }

  .stepper-wrapper {
    margin-bottom: 30px;
  }

  .step-label {
    display: none;
  }

  .step-line {
    margin-top: -8px;
  }

  /* 모바일에서 뱃지 위치 조정 */
  .step-badge {
    right: 0;
    font-size: 11px;
  }
}