/* ===========================
   OTB COMPANY 영상제작 견적 계산기
   디자인 시스템 & 스타일
   =========================== */

/* ----- 1. Reset & Fonts ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0a0a0a;
  color: #eeeeee;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'GmarketSans', 'Pretendard', sans-serif;
  font-weight: 700;
}

/* ----- 2. Brand Colors ----- */
:root {
  --brand-orange: #FF630F;
  --bg-dark: #0a0a0a;
  --bg-gray: #111111;
  --text-light: #eeeeee;
  --text-white: #ffffff;
  --text-dark: #000000;
  --border-gray: #333333;
}

/* ----- 3. Header ----- */
.header {
  background: var(--bg-gray);
  padding: 20px 0;
  border-bottom: 2px solid var(--brand-orange);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.logo {
  cursor: pointer;
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.8;
}

.logo h1 {
  color: var(--brand-orange);
  font-size: 28px;
  font-weight: 900;
}

.logo p {
  font-size: 13px;
  color: #999;
  margin-top: 2px;
}

.estimate-search {
  display: flex;
  gap: 8px;
  align-items: center;
}

.estimate-search input {
  padding: 10px 15px;
  background: var(--bg-dark);
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  color: var(--text-light);
  font-size: 14px;
  width: 180px;
}

.estimate-search input::placeholder {
  color: #666;
}

.estimate-search button {
  padding: 10px 20px;
  background: var(--brand-orange);
  color: var(--text-dark);
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.estimate-search button:hover {
  background: #e85500;
}

/* ----- 4. Container ----- */
.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ----- 5. Step Indicator ----- */
.step-indicator {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--bg-gray);
  border: 2px solid var(--border-gray);
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
}

.step.active {
  background: var(--brand-orange);
  color: var(--text-dark);
  border-color: var(--brand-orange);
}

.step-number {
  width: 28px;
  height: 28px;
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step.active .step-number {
  background: var(--text-dark);
  color: var(--brand-orange);
}

/* ----- 6. Step Sections ----- */
.step-section {
  display: none;
}

.step-section.active {
  display: block;
}

/* ----- 7. Category Grid (Step 1) ----- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.category-card {
  background: var(--bg-gray);
  border: 2px solid var(--border-gray);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.category-card:hover {
  border-color: var(--brand-orange);
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(255, 99, 15, 0.2);
}

.category-card.selected {
  border-color: var(--brand-orange);
  background: linear-gradient(135deg, var(--bg-gray) 0%, #1a1105 100%);
}

.category-id {
  color: var(--brand-orange);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.category-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-white);
}

.category-details {
  font-size: 14px;
  color: #999;
  margin-bottom: 12px;
}

.category-desc {
  font-size: 14px;
  color: #bbb;
  line-height: 1.5;
  margin-bottom: 16px;
}

.category-cta {
  display: inline-block;
  padding: 10px 20px;
  background: var(--brand-orange);
  color: var(--text-dark);
  font-weight: 700;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.3s;
}

.category-card:hover .category-cta {
  background: #e85500;
}

.category-card.unavailable {
  opacity: 0.6;
  cursor: not-allowed;
}

.category-card.unavailable:hover {
  transform: none;
  border-color: var(--border-gray);
  box-shadow: none;
}

/* ----- 8. Step 2: Selected Category Summary ----- */
.selected-summary {
  background: var(--bg-gray);
  border: 2px solid var(--brand-orange);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
}

.selected-summary h2 {
  color: var(--brand-orange);
  font-size: 28px;
  margin-bottom: 10px;
}

.summary-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.info-item {
  background: var(--bg-dark);
  padding: 15px;
  border-radius: 8px;
}

.info-label {
  font-size: 13px;
  color: #999;
  margin-bottom: 5px;
}

.info-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
}

.crew-recommendation {
  margin-top: 20px;
  padding: 20px;
  background: rgba(255, 99, 15, 0.1);
  border: 1px solid var(--brand-orange);
  border-radius: 8px;
}

.crew-recommendation h4 {
  color: var(--brand-orange);
  font-size: 16px;
  margin-bottom: 10px;
}

.crew-recommendation p {
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 8px;
}

.crew-recommendation ul {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.crew-recommendation li {
  font-size: 13px;
  color: #aaa;
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}

.crew-recommendation li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--brand-orange);
}

.base-composition {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-gray);
}

.base-composition h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--brand-orange);
}

.base-composition ul {
  list-style: none;
  padding-left: 0;
}

.base-composition li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  color: #ccc;
}

.base-composition li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-orange);
  font-weight: 700;
}

/* ----- 9. Duration/Days Selection ----- */
.duration-selector, .days-selector {
  margin-bottom: 30px;
}

.duration-selector h3, .days-selector h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--text-white);
}

.duration-options, .days-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.duration-btn, .day-btn {
  padding: 12px 24px;
  background: var(--bg-gray);
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  color: var(--text-light);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.duration-btn:hover, .day-btn:hover {
  border-color: var(--brand-orange);
}

.duration-btn.active, .day-btn.active {
  background: var(--brand-orange);
  color: var(--text-dark);
  border-color: var(--brand-orange);
}

.days-info {
  margin-top: 15px;
  padding: 15px;
  background: var(--bg-dark);
  border-radius: 8px;
  font-size: 14px;
  color: #bbb;
  line-height: 1.6;
}

.days-info.highlight {
  border: 2px solid var(--brand-orange);
  background: rgba(255, 99, 15, 0.05);
}

/* ----- 10. Options Section ----- */
.options-section {
  margin-bottom: 40px;
}

.option-category {
  margin-bottom: 40px;
}

.option-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--brand-orange);
}

.option-category-header h3 {
  font-size: 24px;
  color: var(--text-white);
}

.option-category-icon {
  font-size: 28px;
}

.option-category-desc {
  font-size: 14px;
  color: #999;
  margin-bottom: 20px;
  padding: 12px;
  background: var(--bg-dark);
  border-left: 3px solid var(--brand-orange);
  border-radius: 4px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.option-card {
  background: var(--bg-gray);
  border: 2px solid var(--border-gray);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.option-card:hover {
  border-color: var(--brand-orange);
}

.option-card.selected {
  border-color: var(--brand-orange);
  background: linear-gradient(135deg, var(--bg-gray) 0%, #1a1105 100%);
}

.option-card.selected::after {
  content: '✓';
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: var(--brand-orange);
  color: var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
}

.option-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-white);
}

.option-price {
  font-size: 24px;
  font-weight: 900;
  color: var(--brand-orange);
  margin-bottom: 10px;
}

.option-desc {
  font-size: 13px;
  color: #999;
  line-height: 1.4;
  margin-bottom: 10px;
}

.option-note {
  font-size: 12px;
  color: #777;
  font-style: italic;
}

.option-duration-input {
  margin-top: 15px;
  display: none;
}

.option-card.selected .option-duration-input.active {
  display: block;
}

.option-duration-input label {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.option-duration-input input {
  width: 100%;
  padding: 10px;
  background: var(--bg-dark);
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  color: var(--text-white);
  font-size: 14px;
}

.option-duration-total {
  margin-top: 10px;
  padding: 10px;
  background: var(--bg-dark);
  border-radius: 6px;
  font-size: 14px;
  color: var(--brand-orange);
  font-weight: 700;
}

/* ----- 11. Live Estimate ----- */
.live-estimate {
  position: sticky;
  top: 100px;
  background: var(--bg-gray);
  border: 2px solid var(--brand-orange);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
}

.live-estimate h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--text-white);
}

.estimate-breakdown {
  margin-bottom: 20px;
}

.estimate-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-gray);
  font-size: 14px;
}

.estimate-item:last-child {
  border-bottom: none;
}

.estimate-total {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 2px solid var(--brand-orange);
  font-size: 28px;
  font-weight: 900;
  color: var(--brand-orange);
}

/* ----- 12. Navigation Buttons ----- */
.nav-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.btn {
  padding: 15px 40px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--brand-orange);
  color: var(--text-dark);
}

.btn-primary:hover {
  background: #e85500;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 99, 15, 0.4);
}

.btn-secondary {
  background: var(--bg-gray);
  color: var(--text-light);
  border: 2px solid var(--border-gray);
}

.btn-secondary:hover {
  border-color: var(--brand-orange);
}

/* ----- 13. Step 3: Result Summary ----- */
.result-summary {
  background: var(--bg-gray);
  border: 2px solid var(--brand-orange);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
}

.result-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-gray);
}

.result-header h2 {
  font-size: 32px;
  color: var(--brand-orange);
  margin-bottom: 10px;
}

.estimate-meta {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 14px;
  color: #999;
}

.result-details {
  margin-bottom: 30px;
}

.detail-section {
  margin-bottom: 25px;
  padding: 20px;
  background: var(--bg-dark);
  border-radius: 8px;
}

.detail-section h3 {
  font-size: 18px;
  color: var(--brand-orange);
  margin-bottom: 15px;
}

.detail-list {
  list-style: none;
  padding: 0;
}

.detail-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-gray);
  display: flex;
  justify-content: space-between;
  font-size: 15px;
}

.detail-list li:last-child {
  border-bottom: none;
}

.result-total {
  background: var(--brand-orange);
  color: var(--text-dark);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 30px;
}

.result-total h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.result-total .total-amount {
  font-size: 42px;
  font-weight: 900;
}

.result-total .vat-note {
  font-size: 14px;
  margin-top: 10px;
  opacity: 0.8;
}

/* ----- 14. Action Buttons (CTA) ----- */
.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.action-card {
  background: var(--bg-gray);
  border: 2px solid var(--border-gray);
  border-radius: 12px;
  padding: 25px;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.action-card:hover {
  border-color: var(--brand-orange);
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(255, 99, 15, 0.2);
}

.action-card h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-white);
}

.action-card p {
  font-size: 14px;
  color: #999;
  margin-bottom: 15px;
}

.action-card .btn {
  width: 100%;
}

/* ----- 15. Share Buttons ----- */
.share-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
}

.share-btn {
  padding: 12px 30px;
  background: var(--bg-gray);
  border: 2px solid var(--border-gray);
  border-radius: 8px;
  color: var(--text-light);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-btn:hover {
  border-color: var(--brand-orange);
  background: var(--bg-dark);
}

/* ----- 16. Estimate Basis ----- */
.estimate-basis {
  background: var(--bg-gray);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
}

.estimate-basis h3 {
  font-size: 22px;
  color: var(--brand-orange);
  margin-bottom: 15px;
}

.estimate-basis ul {
  list-style: none;
  padding: 0;
}

.estimate-basis li {
  padding: 10px 0;
  padding-left: 25px;
  position: relative;
  font-size: 15px;
  color: #ccc;
}

.estimate-basis li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--brand-orange);
  font-weight: 700;
}

/* ----- 17. Company Promise ----- */
.company-promise {
  background: var(--bg-gray);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
}

.company-promise h3 {
  font-size: 22px;
  color: var(--brand-orange);
  margin-bottom: 20px;
  text-align: center;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.promise-item {
  text-align: center;
  padding: 20px;
  background: var(--bg-dark);
  border-radius: 8px;
}

.promise-item h4 {
  font-size: 16px;
  color: var(--text-white);
  margin-bottom: 8px;
}

.promise-item p {
  font-size: 13px;
  color: #999;
}

/* ----- 18. Footer ----- */
.footer {
  background: var(--bg-gray);
  padding: 40px 0;
  border-top: 2px solid var(--brand-orange);
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.footer-section h4 {
  font-size: 16px;
  color: var(--brand-orange);
  margin-bottom: 12px;
}

.footer-section p {
  font-size: 14px;
  color: #999;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-gray);
  font-size: 13px;
  color: #666;
}

/* ----- 19. Responsive ----- */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo h1 {
    font-size: 24px;
  }

  .estimate-search {
    width: 100%;
  }

  .estimate-search input {
    flex: 1;
  }

  .step-indicator {
    flex-direction: column;
    gap: 10px;
  }

  .category-grid, .options-grid {
    grid-template-columns: 1fr;
  }

  .summary-info {
    grid-template-columns: 1fr;
  }

  .action-buttons {
    grid-template-columns: 1fr;
  }

  .share-buttons {
    flex-direction: column;
  }

  .nav-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .result-total .total-amount {
    font-size: 32px;
  }
}
