@charset "UTF-8";

.estimate-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  min-height: 100vh;
  background-color: #f9f7f2;
}
.left-column {
  /* overflow-y: auto; */
}
.right-column {
  background-color: white;
  padding: 30px 0;
  border-left: 1px solid var(--border-color);
}
.estimate-layout .container {
  width: 100%;
  margin: 0 auto;
  padding: 0 100px;
}

/* Header */
.estimate-layout .header {
  padding: 10px 0;
  background: white;
  border-bottom: 1px solid #eee;
  z-index: 100;
}

.estimate-layout .logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -1px;
}

/* Progress Bar */
.progress-wrap {
  background: white;
  padding: 20px 0 10px;
  border-bottom: 1px solid #eee;
}
.progress-bar-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress-bar {
  position: relative;
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 2px;
}
.progress-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.progress-text {
  flex: 1 0 auto;
  text-align: right;
  font-size: 13px;
  color: #666;
  margin-top: 5px;
}

.steps-wrap {
  width: 70%;
  margin: 20px auto;
  display: flex;
  justify-content: space-between;
  position: relative;
}
.steps-wrap:before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #e0e0e0;
  z-index: 0;
}

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

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
}

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

.step.completed:before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100px;
  height: 2px;
  background-color: #d0e3e1;
  z-index: -1;
}
.step.completed .step-number {
  background-color: #d0e3e1;
  color: var(--primary-color);
}

.step-label {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
}

.step.active .step-label {
  color: var(--text-color);
  font-weight: 600;
}

/* Main Content */
.main-content {
  max-width: 1100px;
  padding: 40px;
}

.content-header {
  margin-bottom: 30px;
}

.content-title {
  font-size: 30px;
  font-weight: 600;
}

.content-desc {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

/* Category Badge */
.category-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-color);
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Options Grid */
.options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.option-card {
  position: relative;
  border: 2px dashed var(--point-color);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: white;
}

.option-card:hover {
  border-color: var(--point-color);
  transform: translateY(-2px);
}

.option-card.selected {
  border-color: var(--point-color);
  border-style: solid;
  border-width: 3px;
  background: #fff5f5;
}

.option-checkbox {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 24px;
  height: 24px;
  border: 2px solid #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.option-card.selected .option-checkbox {
  background: #cb764e;
  border-color: #cb764e;
}

.option-checkbox::after {
  content: "✓";
  color: white;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.option-card.selected .option-checkbox::after {
  opacity: 1;
}

.option-family {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.option-size {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-color);
}

.option-dimension {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}

.option-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
}

/* Navigation Buttons */
.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 50px;
}

.btn {
  padding: 15px 50px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: #2c5f6f;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(55, 112, 132, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--secondary-color);
}

.btn-outline {
  background: white;
  color: #666;
  border: 1px solid #ddd;
}

.btn-outline:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

/* 가드수량(Step 2) */
.options-grid.guard {
  grid-template-columns: repeat(5, 1fr);
}
.guard .option-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 200px;
}

.guard .option-card .guard-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 8px;
}

.guard .option-card .guard-desc {
  font-size: 14px;
  color: var(--point-color);
  font-weight: 500;
}

/* 가드색상 (Step 3) */
.options-grid.color {
  grid-template-columns: repeat(5, 1fr);
}

.color .option-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.color-swatch {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  margin-top: 10px;
}

.color-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
}

/* 프레임색상 (Step 4) */
.options-grid.frame {
  grid-template-columns: repeat(4, 1fr);
}
.frame .option-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
/* 매트리스 (Step 5) */
.options-grid.mattress {
  grid-template-columns: repeat(4, 1fr);
}
.mattress .option-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}
.mattress .option-card .name,
.door .option-card .name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 8px;
}

/* 고객정보입력 (Step 7) */
.form-container {
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #eee;
}

.form-container .form-group {
  margin-bottom: 20px;
}

.form-container label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 15px;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.form-container .summary {
  margin-top: 40px;
  background: #faf7f2;
  border-radius: 16px;
  padding: 28px;
}

.form-container .summary h3 {
  margin-bottom: 20px;
  font-size: 18px;
}

.form-container .summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 15px;
}

.form-container .summary-row span:last-child {
  font-weight: 600;
}

.form-container .total {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-container .total strong {
  font-size: 16px;
  color: var(--primary-color);
}

.form-container .price {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
}

/* Summary Sidebar */
.estimate-layout .summary-sidebar {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.estimate-layout .summmary-progress-wrap {
  padding: 0 20px;
}

.estimate-layout .summary-title {
  font-size: 18px;
  font-weight: 600;
  color: #222;
}
.estimate-layout .summmary-progress-wrap .progress-bar-wrap {
  flex-direction: column;
  align-items: flex-start;
}
.estimate-layout .summary-progress {
  font-size: 12px;
  color: #999;
  margin-bottom: 20px;
}

.estimate-layout .summary-section {
  padding: 20px;
}
.estimate-layout .summary-section.selected {
  border-top: 1px solid var(--border-color);
}
.estimate-layout .summary-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 5px;
}

.estimate-layout .summary-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
}

.estimate-layout .summary-price {
  font-size: 13px;
  color: var(--primary-color);
  margin-top: 3px;
}

.total-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.total-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
}
/* 도어가드 (Step 6) */
.options-grid.door {
  grid-template-columns: repeat(3, 1fr);
}
.door .option-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1400px) {
  .estimate-layout {
    grid-template-columns: 1fr;
  }
  .right-column {
    /* display: none; */
  }
}

/* 1024px 이하: 컨테이너 패딩 축소, 그리드 조정 */
@media (max-width: 1024px) {
  .estimate-layout .container {
    padding: 0 40px;
  }
  .options-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .options-grid.guard {
    grid-template-columns: repeat(3, 1fr);
  }
  .options-grid.color {
    grid-template-columns: repeat(3, 1fr);
  }
  .options-grid.door {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps-wrap {
    width: 90%;
  }
}

/* 768px 이하: 모바일 */
@media (max-width: 768px) {
  .main-content {
    width: 100%;
  }
  .estimate-layout .container {
    padding: 0 10px;
  }
  .options-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .options-grid.guard,
  .options-grid.color,
  .options-grid.frame {
    grid-template-columns: repeat(2, 1fr);
  }

  .options-grid.mattress {
    grid-template-columns: repeat(2, 1fr);
  }
  .options-grid.door {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .color-swatch {
    width: 80px;
    height: 80px;
  }
  .main-content {
    padding: 30px 0;
  }
  .content-title {
    font-size: 24px;
  }
  .content-desc {
    font-size: 14px;
  }
  .content-desc br {
    display: none;
  }
  .steps-wrap {
    width: 100%;
  }
  .step {
    min-width: 60px;
  }
  .step-number {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .step-label {
    font-size: 11px;
  }
  .nav-buttons {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}

/* 480px 이하: 초소형 */
@media (max-width: 480px) {
  .right-column {
    display: none;
  }
  .estimate-layout .container {
  }

  .estimate-layout .logo {
    font-size: 18px;
  }
  .progress-wrap {
    padding: 0;
  }
  .progress-bar,
  .progress-text {
    display: none;
  }

  .step {
    min-width: auto;
  }
  .options-grid {
    grid-template-columns: 1fr;
  }
  .options-grid.guard,
  .options-grid.color {
    grid-template-columns: repeat(2, 1fr);
  }

  .options-grid.frame,
  .options-grid.mattress,
  .options-grid.door {
    grid-template-columns: 1fr;
  }

  .option-card {
    padding: 20px 16px;
  }

  .option-size {
    font-size: 16px;
  }

  .option-price {
    font-size: 15px;
  }

  .color-swatch {
    width: 70px;
    height: 70px;
  }

  .guard .option-card {
    min-height: 160px;
  }

  .guard .option-card .guard-title {
    font-size: 16px;
  }

  .btn {
    padding: 13px 30px;
    font-size: 14px;
  }

  .total-price {
    font-size: 20px;
  }

  .form-container {
    padding: 20px;
    border-radius: 12px;
  }

  input,
  textarea {
    padding: 12px 14px;
    font-size: 14px;
  }
}

/* 360px 이하: 초소형 모바일 */
@media (max-width: 360px) {
  .estimate-layout .container {
    padding: 0 12px;
  }

  .content-title {
    font-size: 18px;
  }

  .content-desc {
    font-size: 12px;
  }

  .option-card {
    padding: 18px 14px;
  }

  .option-size {
    font-size: 15px;
  }

  .option-price {
    font-size: 14px;
  }

  .color-swatch {
    width: 60px;
    height: 60px;
  }
  .option-card {
    padding: 20px 16px;
  }
}

