/* Sell Phone Page - Modern Design */

/* Page Layout */
.sell-phone {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 48px;
}

.page-header h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.page-header h1 i {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 3px 6px rgba(65, 131, 237, 0.4));
  font-size: 3rem;
}

.page-header .subtitle {
  font-size: var(--text-lg);
  color: var(--gray-600);
  font-weight: 500;
}

/* Progress Bar */
.progress-wrapper {
  margin-bottom: 48px;
  padding: 0 20px;
}

.progress-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border-radius: 20px;
  padding: 32px 48px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
  opacity: 0.4;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-step.active {
  opacity: 1;
}

.step-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-circle i {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #9ca3af 0%, #d1d5db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  transition: all 0.4s;
}

.step-circle .step-number {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--gray-400);
  color: var(--white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  border: 3px solid var(--white);
  transition: all 0.4s;
}

.progress-step.active .step-circle {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 4px 20px rgba(65, 131, 237, 0.4), 0 8px 30px rgba(65, 131, 237, 0.2);
  transform: scale(1.1);
}

.progress-step.active .step-circle i {
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.5));
}

.progress-step.active .step-circle .step-number {
  background: var(--white);
  color: var(--primary);
}

.step-label {
  font-size: var(--text-sm);
  color: var(--gray-700);
  font-weight: 600;
  text-align: center;
  transition: all 0.4s;
}

.progress-step.active .step-label {
  color: var(--primary);
  font-weight: 700;
  font-size: var(--text-base);
}

.progress-line {
  flex: 1;
  height: 4px;
  background: var(--gray-200);
  position: relative;
  margin: 0 -20px;
  z-index: 1;
  border-radius: 2px;
}

/* Content Wrapper */
.content-wrapper {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.main-content {
  flex: 1;
  width: 100%;
}

.sidebar {
  width: 380px;
  position: sticky;
  top: 100px;
}

/* Step Section */
.step-section {
  display: none;
  background: var(--white);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  animation: fadeIn 0.5s ease-in-out;
}

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

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

.step-section h2 {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 16px;
}

.step-section h2 i {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 5px rgba(65, 131, 237, 0.35));
}

.step-description {
  color: var(--gray-600);
  font-size: var(--text-base);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Grid Layouts */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Device Card */
.device-card {
  background: var(--white);
  border: 3px solid var(--gray-200);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1;
}

.device-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(65, 131, 237, 0.05) 0%, rgba(65, 131, 237, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.device-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(65, 131, 237, 0.2), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.device-card:hover::before {
  opacity: 1;
}

.device-card.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(65, 131, 237, 0.08) 0%, rgba(65, 131, 237, 0.08) 100%);
  box-shadow: 0 8px 24px rgba(65, 131, 237, 0.25), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.device-card.selected::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(65, 131, 237, 0.4);
}

.device-image {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  /* background: linear-gradient(135deg, #355d85 0%, var(--gray-100) 100%); */
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-height: 0;
}

.device-image img {
  width: 100%;
  height: 120%;
  object-fit: contain;
  transition: transform 0.3s;
  /* padding: 8px; */
}

.device-card:hover .device-image img {
  transform: scale(1.1);
}

.device-card h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

.device-card .storage {
  font-size: var(--text-xs);
  color: var(--gray-600);
  margin-bottom: 0;
  font-weight: 600;
}

.device-card .price {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

/* ========================================
   STEP 5: 상태 체크 UI (시안 디자인)
   ======================================== */

.text-primary {
  color: var(--primary);
  font-weight: 600;
}

/* Condition Card */
.condition-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 20px;
  transition: all 0.3s;
}

.condition-card:hover {
  border-color: var(--gray-300);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.condition-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.condition-header i {
  font-size: 1.3rem;
  color: var(--primary);
}

.condition-header h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
  flex: 1;
}

.badge-multi {
  background: var(--primary);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: var(--text-xs);
  font-weight: 600;
}

/* Option Grid - 여러 컬럼 */
.option-grid {
  display: grid;
  gap: 12px;
}

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

.option-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

/* Option Card */
.option-card {
  position: relative;
  cursor: pointer;
}

.option-card input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.option-content {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 16px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 100px;
  justify-content: center;
}

.option-content i {
  font-size: 1.8rem;
  color: var(--gray-400);
  transition: all 0.25s;
}

.option-content span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-600);
  transition: all 0.25s;
  text-align: center;
}

/* Hover 효과 */
.option-card:hover .option-content {
  border-color: var(--primary);
  background: rgba(65, 131, 237, 0.03);
}

.option-card:hover .option-content i {
  color: var(--primary);
}

/* 선택된 상태 */
.option-card input:checked + .option-content {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(65, 131, 237, 0.25);
}

.option-card input:checked + .option-content i {
  color: var(--white);
  transform: scale(1.1);
}

.option-card input:checked + .option-content span {
  color: var(--white);
  font-weight: 700;
}

/* 매입가격 확인 버튼 */
.btn-check-price {
  width: 100%;
  padding: 20px 32px;
  font-size: var(--text-xl);
  font-weight: 700;
  border-radius: 16px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(65, 131, 237, 0.3);
  transition: all 0.3s;
}

.btn-check-price:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(65, 131, 237, 0.4);
}

.btn-check-price i {
  font-size: 1.4rem;
}

/* Buttons */
.btn-large {
  width: 100%;
  padding: 20px 32px;
  font-size: var(--text-xl);
  font-weight: 700;
  border-radius: 16px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(65, 131, 237, 0.3), 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(65, 131, 237, 0.4), 0 8px 16px rgba(0, 0, 0, 0.12);
}

.btn-large:active {
  transform: translateY(-2px);
}

.btn-large i {
  font-size: 1.5rem;
}

/* Price Card */
.price-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 3px solid var(--gray-200);
  margin-bottom: 24px;
}

.price-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--gray-200);
}

.price-card-header i {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 3px 6px rgba(65, 131, 237, 0.4));
}

.price-card-header h3 {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--gray-900);
  margin: 0;
}

.selected-model-info {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state {
  text-align: center;
  color: var(--gray-500);
  padding: 24px;
}

.empty-state i {
  font-size: 3rem;
  background: linear-gradient(135deg, #d1d5db 0%, #e5e7eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  margin-bottom: 12px;
}

.empty-state p {
  font-size: var(--text-base);
  font-weight: 500;
}

.model-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.model-storage {
  font-size: var(--text-base);
  color: var(--gray-600);
  margin-bottom: 12px;
}

.base-price {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-200);
}

.price-display {
  margin-top: 20px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(65, 131, 237, 0.1) 0%, rgba(65, 131, 237, 0.1) 100%);
  border-radius: 16px;
  border: 2px solid rgba(65, 131, 237, 0.2);
}

.price-label {
  font-size: var(--text-sm);
  color: var(--gray-600);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-range {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.final-price {
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--primary);
  display: block;
  text-shadow: 0 2px 4px rgba(65, 131, 237, 0.2);
}

/* Deductions */
.deductions-list {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid var(--gray-200);
}

.deductions-list h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.deduction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--white);
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid var(--gray-200);
}

.deduction-item span:first-child {
  font-size: var(--text-sm);
  color: var(--gray-700);
  font-weight: 500;
}

.deduction-amount {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--error);
}

/* Info Card */
.info-card {
  background: linear-gradient(135deg, var(--primary-lightest) 0%, var(--primary-lighter) 100%);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(65, 131, 237, 0.15);
  border: 3px solid rgba(65, 131, 237, 0.2);
}

.info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.info-header i {
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 5px rgba(65, 131, 237, 0.35));
}

.info-header h3 {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--gray-900);
  margin: 0;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--gray-700);
  border-bottom: 2px solid rgba(65, 131, 237, 0.1);
}

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

.info-list li i {
  background: linear-gradient(135deg, var(--success) 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.3));
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .progress-bar {
    padding: 24px 32px;
  }

  .step-circle {
    width: 64px;
    height: 64px;
  }

  .sidebar {
    width: 340px;
  }
}

@media (max-width: 1024px) {
  .content-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: static;
  }

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

  .progress-bar {
    padding: 20px 24px;
    overflow-x: auto;
  }

  .step-circle {
    width: 56px;
    height: 56px;
  }

  .step-circle i {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .sell-phone {
    padding: 24px 0;
  }

  .page-header {
    margin-bottom: 32px;
  }

  .page-header h1 {
    font-size: var(--text-2xl);
    flex-direction: column;
    gap: 8px;
  }

  .page-header h1 i {
    font-size: 2rem;
  }

  .page-header .subtitle {
    font-size: var(--text-base);
  }

  .progress-wrapper {
    padding: 0;
    margin-bottom: 32px;
  }

  .progress-bar {
    padding: 24px 12px;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .step-circle {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .step-circle i {
    font-size: 0.9rem;
  }

  .step-circle .step-number {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .step-label {
    font-size: 11px;
    white-space: nowrap;
  }

  .progress-line {
    min-width: 30px;
    flex-shrink: 0;
  }

  .content-wrapper {
    gap: 24px;
  }

  .step-section {
    padding: 24px 16px;
    border-radius: 16px;
  }

  .step-section h2 {
    font-size: var(--text-xl);
    margin-bottom: 8px;
  }

  .step-section h2 i {
    font-size: 1.3rem;
  }

  .step-description {
    font-size: var(--text-sm);
    margin-bottom: 24px;
  }

  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .device-card {
    padding: 12px;
    aspect-ratio: 1 / 1;
  }

  .device-card h3 {
    font-size: var(--text-xs);
  }

  .device-card .storage {
    font-size: 10px;
  }

  .device-card .price {
    font-size: var(--text-sm);
  }

  .device-image {
    margin-bottom: 8px;
  }

  .condition-card {
    padding: 16px;
    border-radius: 16px;
  }

  .condition-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .condition-header i {
    font-size: 1.2rem;
  }

  .condition-header h3 {
    font-size: var(--text-lg);
  }

  .badge-info {
    padding: 4px 10px;
    font-size: 10px;
  }

  .option-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .option-content {
    padding: 16px 10px;
    min-height: 100%;
    gap: 6px;
  }

  .option-content i {
    font-size: 1.4rem;
  }

  .option-content span {
    font-size: var(--text-sm);
  }

  .btn-large {
    padding: 16px 28px;
    font-size: var(--text-lg);
  }

  .price-card,
  .info-card {
    padding: 20px;
  }

  .price-card-header h3,
  .info-header h3 {
    font-size: var(--text-lg);
  }

  .info-list li {
    font-size: var(--text-sm);
    padding: 10px 0;
  }
}

@media (max-width: 480px) {
  .sell-phone {
    padding: 16px 0;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .page-header h1 {
    font-size: var(--text-xl);
  }

  .page-header h1 i {
    font-size: 1.6rem;
  }

  .page-header .subtitle {
    font-size: var(--text-sm);
  }

  .progress-wrapper {
    margin-bottom: 24px;
  }

  .progress-bar {
    padding: 20px 8px;
    gap: 6px;
  }

  .step-circle {
    width: 40px;
    height: 40px;
  }

  .step-circle i {
    font-size: 0.8rem;
  }

  .step-circle .step-number {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .step-label {
    font-size: 10px;
  }

  .progress-line {
    min-width: 24px;
  }

  .step-section {
    padding: 20px 12px;
    border-radius: 12px;
  }

  .step-section h2 {
    font-size: var(--text-lg);
    margin-bottom: 6px;
  }

  .step-section h2 i {
    font-size: 1.1rem;
  }

  .step-description {
    font-size: var(--text-xs);
    margin-bottom: 20px;
  }

  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .device-card {
    padding: 8px;
    aspect-ratio: 1 / 1;
  }

  .device-card h3 {
    font-size: 10px;
    line-height: 1.2;
  }

  .device-card .storage {
    font-size: 8px;
  }

  .device-card .price {
    font-size: 11px;
  }

  .device-image {
    margin-bottom: 6px;
  }

  .condition-card {
    padding: 14px;
  }

  .condition-header h3 {
    font-size: var(--text-base);
  }

  .option-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .option-content {
    padding: 14px 10px;
    min-height: 80px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
  }

  .option-content i {
    font-size: 1.3rem;
  }

  .option-content span {
    font-size: var(--text-sm);
  }

  .btn-large {
    padding: 14px 24px;
    font-size: var(--text-base);
  }

  .btn-large i {
    font-size: 1.1rem;
  }

  .price-card,
  .info-card {
    padding: 16px;
    border-radius: 16px;
  }

  .price-card-header h3,
  .info-header h3 {
    font-size: var(--text-base);
  }

  .price-card-header i,
  .info-header i {
    font-size: 1.2rem;
  }

  .info-list li {
    font-size: var(--text-xs);
    padding: 8px 0;
  }

  .price-range,
  .final-price {
    font-size: var(--text-2xl);
  }
}

/* ========================================
   MODAL STYLES (새 시안 디자인)
   ======================================== */

/* Base Modal - 모든 모달 공통 */
#priceModal,
#authChoiceModal,
#applyModal,
#loginModal,
#completeModal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 10000 !important;
  display: none;
  background-color: rgba(0, 0, 0, 0.5) !important;
}

#priceModal.active,
#authChoiceModal.active,
#applyModal.active,
#loginModal.active,
#completeModal.active {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#priceModal .modal-content,
#authChoiceModal .modal-content,
#applyModal .modal-content,
#loginModal .modal-content,
#completeModal .modal-content {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  background: white;
  border-radius: 24px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 2;
  opacity: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 각 모달별 max-width */
#priceModal .modal-content { max-width: 560px; }
#authChoiceModal .modal-content { max-width: 680px; }
#applyModal .modal-content { max-width: 640px; }
#loginModal .modal-content { max-width: 420px; }
#completeModal .modal-content { max-width: 480px; }

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}


.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  color: var(--gray-500);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.modal-close:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.modal-header {
  text-align: center;
  padding: 40px 32px 24px;
}

.modal-header .icon-wrapper {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(65, 131, 237, 0.3);
}

.modal-header .icon-wrapper.pulse {
  animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(65, 131, 237, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(65, 131, 237, 0.4);
  }
}

.modal-header .icon-wrapper i {
  font-size: 2rem;
  color: var(--white);
}

.modal-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.6;
}

.modal-body {
  padding: 24px 32px 32px;
}

/* Price Modal */
.price-modal-content {
  max-width: 700px;
}

.price-animation-wrapper {
  text-align: center;
  padding: 40px 0;
  background: linear-gradient(135deg, var(--primary-lightest) 0%, var(--primary-lighter) 100%);
  border-radius: 20px;
  margin-bottom: 32px;
}

.price-display-large {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.price-display-large .price-value {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: priceCount 1.5s ease-out;
}

@keyframes priceCount {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.price-range-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gray-600);
  font-size: var(--text-base);
}

.price-range-info i {
  color: var(--primary);
}

.price-range-info strong {
  color: var(--gray-900);
}

.selected-model-summary {
  background: var(--gray-50);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.selected-model-summary h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

/* 감가 내역 섹션 */
.deductions-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid var(--gray-200);
}

.deductions-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.deductions-title i {
  color: var(--primary);
}

.deductions-list {
  margin-bottom: 16px;
}

.deduction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--primary-lightest) 0%, var(--primary-lighter) 100%);
  border-radius: 12px;
  border: 2px solid var(--primary-light);
}

.deduction-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.deduction-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-800);
}

.deduction-rate {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--secondary);
}

.deduction-amount {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--error);
}

.deductions-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--primary-lightest) 0%, var(--primary-lighter) 100%);
  border-radius: 12px;
  border: 2px solid var(--error);
  margin-top: 12px;
}

.total-label {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-800);
}

.total-amount {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--error);
}

/* Final Price Section */
.final-price-section {
  margin-top: 24px;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(65, 131, 237, 0.3);
}

.final-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.final-price-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.final-price-label::before {
  content: '💰';
  font-size: 1.5rem;
}

.final-price-value {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-apply {
  width: 100%;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(65, 131, 237, 0.3);
}

.btn-apply:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(65, 131, 237, 0.4);
}

/* Form Section */
.form-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--gray-100);
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-section h3 i {
  color: var(--primary);
}

.form-help {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.6;
}

.form-help i {
  color: var(--primary);
  margin-right: 6px;
}

/* 회원 뱃지 */
.member-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  color: var(--primary);
  border-radius: 16px;
  font-size: var(--text-xs);
  font-weight: 600;
  margin-left: auto;
}

.member-badge i {
  font-size: 0.75rem;
}

/* Form Grid & Group */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.required {
  color: var(--error);
}

.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: var(--text-sm);
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(65, 131, 237, 0.1);
}

/* Summary Styles */
.device-summary,
.condition-summary,
.member-info-display,
.summary-box {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
}

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

.summary-row .label {
  color: var(--gray-600);
  font-size: var(--text-sm);
}

.summary-row .value {
  color: var(--gray-900);
  font-size: var(--text-sm);
  font-weight: 600;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-label {
  color: var(--gray-600);
  font-size: var(--text-sm);
}

.summary-value {
  color: var(--gray-900);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Photo Upload */
.upload-help {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-bottom: 16px;
}

.photo-upload-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.photo-upload-item {
  position: relative;
}

.photo-upload-label {
  display: block;
  cursor: pointer;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 12px;
  border: 2px dashed var(--gray-300);
  border-radius: 12px;
  background: var(--gray-50);
  transition: all 0.3s;
  min-height: 100px;
}

.upload-placeholder:hover {
  border-color: var(--primary);
  background: rgba(65, 131, 237, 0.03);
}

.upload-placeholder i {
  font-size: 1.5rem;
  color: var(--gray-400);
}

.upload-placeholder span {
  font-size: var(--text-xs);
  color: var(--gray-500);
  font-weight: 500;
}

.photo-upload-label input[type="file"] {
  display: none;
}

.photo-preview {
  display: none;
  margin-top: 8px;
  border-radius: 8px;
  overflow: hidden;
}

.photo-preview img {
  width: 100%;
  height: 80px;
  object-fit: cover;
}

/* Price Summary Bar */
.price-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--primary);
  border-radius: 14px;
  margin-bottom: 16px;
}

.price-summary-bar .price-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-base);
  font-weight: 600;
}

.price-summary-bar .price-value {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 900;
}

/* Agree Section */
.agree-section {
  margin-bottom: 20px;
}

.checkbox-agree {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 16px;
  background: var(--gray-50);
  border-radius: 12px;
  transition: all 0.3s;
}

.checkbox-agree:hover {
  background: var(--gray-100);
}

.checkbox-agree input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.agree-text {
  font-size: var(--text-sm);
  color: var(--gray-700);
}

/* Submit Button */
.btn-submit-apply {
  width: 100%;
  padding: 18px 32px;
  font-size: var(--text-lg);
  font-weight: 700;
  border-radius: 14px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(65, 131, 237, 0.3);
  transition: all 0.3s;
}

.btn-submit-apply:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(65, 131, 237, 0.4);
}

/* ========================================
   매입 예상가격 모달 (시안 6번)
   ======================================== */

/* 가격 하이라이트 박스 */
.price-highlight-box {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 24px;
  border: 2px solid rgba(65, 131, 237, 0.2);
}

.price-animated {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 12px;
  animation: priceReveal 0.5s ease-out;
}

@keyframes priceReveal {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.price-range-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gray-600);
  font-size: var(--text-sm);
}

.price-range-text i {
  color: var(--primary);
}

.price-range-text strong {
  color: var(--gray-800);
}

/* 선택한 기기 정보 */
.selected-device-info {
  background: var(--gray-50);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.selected-device-info h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.selected-device-info h4 i {
  color: var(--primary);
}

/* 매입 신청 버튼 (풀사이즈) */
.btn-apply-full {
  width: 100%;
  padding: 18px 32px;
  font-size: var(--text-lg);
  font-weight: 700;
  border-radius: 14px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(65, 131, 237, 0.3);
  transition: all 0.3s;
}

.btn-apply-full:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(65, 131, 237, 0.4);
}

/* ========================================
   매입 신청 방법 선택 모달 (Auth Choice)
   ======================================== */

.auth-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.auth-choice-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.auth-choice-card:hover {
  border-color: var(--primary);
  background: rgba(65, 131, 237, 0.02);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(65, 131, 237, 0.12);
}

.auth-choice-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.auth-choice-card:hover .auth-choice-icon {
  transform: scale(1.08);
}

.auth-choice-icon i {
  font-size: 2rem;
  color: var(--white);
}

.auth-choice-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.auth-choice-card p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: 20px;
}

.benefits-list {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--gray-700);
  font-size: var(--text-sm);
}

.benefits-list i {
  color: var(--primary);
  font-size: 0.875rem;
}

/* ========================================
   매입 신청서 모달 (Apply Form)
   ======================================== */

.apply-section-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.apply-section-card h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.apply-section-card h4 i {
  color: var(--primary);
}

/* ========================================
   신청 완료 모달 (Complete)
   ======================================== */

.success-animation {
  margin: 32px 0;
}

.success-checkmark {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  position: relative;
}

.check-icon {
  width: 100px;
  height: 100px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid var(--success);
}

.icon-line {
  height: 5px;
  background-color: var(--success);
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}

.icon-line.line-tip {
  top: 46px;
  left: 20px;
  width: 22px;
  transform: rotate(45deg);
  animation: icon-line-tip 0.75s;
}

.icon-line.line-long {
  top: 42px;
  right: 12px;
  width: 40px;
  transform: rotate(-45deg);
  animation: icon-line-long 0.75s;
}

@keyframes icon-line-tip {
  0% { width: 0; left: 1px; top: 19px; }
  54% { width: 0; left: 1px; top: 19px; }
  70% { width: 50px; left: -8px; top: 37px; }
  84% { width: 17px; left: 21px; top: 48px; }
  100% { width: 22px; left: 20px; top: 46px; }
}

@keyframes icon-line-long {
  0% { width: 0; right: 46px; top: 54px; }
  65% { width: 0; right: 46px; top: 54px; }
  84% { width: 55px; right: 0; top: 35px; }
  100% { width: 40px; right: 12px; top: 42px; }
}

.icon-circle {
  top: -4px;
  left: -4px;
  z-index: 10;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  position: absolute;
  box-sizing: content-box;
  border: 4px solid rgba(34, 197, 94, 0.5);
}

.icon-fix {
  top: 10px;
  width: 6px;
  left: 28px;
  z-index: 1;
  height: 78px;
  position: absolute;
  transform: rotate(-45deg);
  background-color: var(--white);
}

.complete-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.complete-message {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 28px;
}

.complete-info {
  background: var(--gray-50);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 28px;
}

.info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--gray-700);
  font-size: var(--text-sm);
}

.info-item i {
  color: var(--primary);
}

/* 신청 완료 모달 - 강제 표시 */
#completeModal.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 99999 !important;
}

#completeModal .modal-content {
  padding: 50px 40px !important;
  text-align: center;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

#completeModal .modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#completeModal .btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 12px;
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

#completeModal .btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* ========================================
   로그인 모달
   ======================================== */

#loginModal .modal-content {
  padding: 40px !important;
}

.login-modal-content .form-group {
  margin-bottom: 16px;
}

.login-modal-content .form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.login-modal-content .form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: var(--text-sm);
}

.login-modal-content .form-group input:focus {
  border-color: var(--primary);
  outline: none;
}

.form-links {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.form-links a {
  color: var(--gray-600);
  font-size: var(--text-sm);
  transition: color 0.3s;
}

.form-links a:hover {
  color: var(--primary);
}

.form-links span {
  margin: 0 12px;
  color: var(--gray-300);
}

/* ========================================
   RESPONSIVE - STEP 5 상태 체크
   ======================================== */

@media (max-width: 768px) {
  .condition-card {
    padding: 20px;
    margin-bottom: 16px;
  }

  .condition-header h3 {
    font-size: var(--text-base);
  }

  .badge-multi {
    padding: 4px 10px;
    font-size: 10px;
  }

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

  .option-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .option-content {
    padding: 16px 10px;
    min-height: 80px;
    gap: 6px;
  }

  .option-content i {
    font-size: 1.4rem;
  }

  .option-content span {
    font-size: var(--text-xs);
  }

  .btn-check-price {
    padding: 16px 24px;
    font-size: var(--text-lg);
    margin-top: 24px;
  }
}

@media (max-width: 480px) {
  .option-grid-3,
  .option-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .option-content {
    padding: 14px 8px;
    min-height: 100%;
  }

  .option-content i {
    font-size: 1.2rem;
  }

  .option-content span {
    font-size: 11px;
  }

  .btn-check-price {
    padding: 14px 20px;
    font-size: var(--text-base);
  }
}

/* ========================================
   RESPONSIVE - 모달
   ======================================== */

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 95vh;
    border-radius: 20px;
  }

  .modal-header {
    padding: 32px 20px 20px;
  }

  .modal-header .icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .modal-header .icon-wrapper i {
    font-size: 1.75rem;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }

  .modal-body {
    padding: 20px;
  }

  /* 매입 예상가격 모달 */
  .price-highlight-box {
    padding: 24px 16px;
  }

  .price-animated {
    font-size: 2.25rem;
  }

  /* 신청 방법 선택 모달 */
  .auth-choice-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .auth-choice-card {
    padding: 24px 20px;
  }

  .auth-choice-icon {
    width: 60px;
    height: 60px;
  }

  .auth-choice-icon i {
    font-size: 1.5rem;
  }

  /* 신청서 모달 */
  .apply-section-card {
    padding: 16px;
    margin-bottom: 12px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .photo-upload-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .upload-placeholder {
    padding: 16px 8px;
    min-height: 80px;
  }

  .upload-placeholder i {
    font-size: 1.25rem;
  }

  .price-summary-bar {
    padding: 16px 20px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .price-summary-bar .price-value {
    font-size: 1.25rem;
  }

  /* 완료 모달 */
  .success-checkmark {
    width: 80px;
    height: 80px;
  }

  .check-icon {
    width: 80px;
    height: 80px;
  }

  .icon-line.line-tip {
    top: 38px;
    left: 16px;
    width: 18px;
  }

  .icon-line.line-long {
    top: 34px;
    right: 10px;
    width: 32px;
  }

  .icon-circle {
    width: 80px;
    height: 80px;
  }

  .icon-fix {
    left: 22px;
    height: 64px;
  }

  .complete-title {
    font-size: 1.5rem;
  }

  .complete-message {
    font-size: var(--text-sm);
  }
}

