/**
 * quote.html 전용 스타일 (견적 문의 페이지)
 * LINE Seed 폰트, 제출 버튼, 성공 팝업
 */
/* LINE Seed 폰트 적용 */
@font-face {
  font-family: 'LINE Seed';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_11-01@1.0/LINESeedKR-Th.woff2') format('woff2');
  font-weight: 100;
  font-display: swap;
}
@font-face {
  font-family: 'LINE Seed';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_11-01@1.0/LINESeedKR-Rg.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'LINE Seed';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_11-01@1.0/LINESeedKR-Bd.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* quote 페이지 전체에 LINE Seed 폰트 적용 */
body.contact-page,
.quote-section,
.quote-section * {
  font-family: 'LINE Seed', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* macOS 스타일 3D 버튼 */
.submit-btn {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  cursor: pointer;
  min-width: 150px;
  height: 50px;
  padding: 12px 40px;
  background-image: linear-gradient(to top, #D8D9DB 0%, #fff 80%, #FDFDFD 100%);
  border-radius: 30px;
  border: 1px solid #8F9092;
  box-shadow:
    0 4px 3px 1px #FCFCFC,
    0 6px 8px #D6D7D9,
    0 -4px 4px #CECFD1,
    0 -6px 4px #FEFEFE,
    inset 0 0 3px 0 #CECFD1;
  transition: all 0.2s ease;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #606060;
  text-shadow: 0 1px #fff;
  position: relative;
}

.submit-btn::-moz-focus-inner {
  border: 0;
}

.submit-btn > * {
  transition: transform 0.2s ease;
}

.submit-btn:hover:not([disabled]) {
  box-shadow:
    0 4px 3px 1px #FCFCFC,
    0 6px 8px #D6D7D9,
    0 -4px 4px #CECFD1,
    0 -6px 4px #FEFEFE,
    inset 0 0 3px 3px #CECFD1;
}

.submit-btn:hover:not([disabled]) > * {
  transform: scale(0.975);
}

@keyframes quoteBtnActive {
  from {
    box-shadow:
      0 4px 3px 1px #FCFCFC,
      0 6px 8px #D6D7D9,
      0 -4px 4px #CECFD1,
      0 -6px 4px #FEFEFE,
      inset 0 0 10px 0px rgba(0, 0, 250, 0.6);
  }
  to {
    box-shadow:
      0 4px 3px 1px #FCFCFC,
      0 6px 8px #D6D7D9,
      0 -4px 4px #CECFD1,
      0 -6px 4px #FEFEFE,
      inset 0 0 3px 3px #CECFD1;
  }
}

.submit-btn:focus:not(:active) {
  animation: quoteBtnActive 0.9s alternate infinite;
  outline: none;
}

.submit-btn:active:not([disabled]) {
  box-shadow:
    0 4px 3px 1px #FCFCFC,
    0 6px 8px #D6D7D9,
    0 -4px 4px #CECFD1,
    0 -6px 4px #FEFEFE,
    inset 0 0 5px 3px #999,
    inset 0 0 30px #aaa;
}

.submit-btn:active:not([disabled]) > * {
  transform: scale(0.95);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 성공 메시지 팝업 스타일 */
.success-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  animation: quoteFadeIn 0.3s ease-out;
}

.success-popup.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.success-popup-content {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  padding: 40px 50px;
  max-width: 500px;
  width: 90%;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
  animation: quoteSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.success-popup-icon {
  margin-bottom: 20px;
}

.success-popup-icon i {
  font-size: 64px;
  color: #28a745;
  animation: quoteScaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-popup-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #606060;
  text-shadow: 0 1px #fff;
  letter-spacing: -0.01em;
}

.success-popup-message {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #606060;
  text-shadow: 0 1px #fff;
  letter-spacing: -0.01em;
}

.success-popup-close {
  min-width: 120px;
}

@keyframes quoteFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes quoteSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes quoteScaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* 접수 내역 상태 확인: 얇은 섹션 형태 */
.status-check-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  color: #5a6c7d;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.status-check-area:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.04);
}

.status-check-area:focus {
  outline: none;
}

.status-check-area .status-check-label {
  letter-spacing: -0.01em;
}

.status-check-area .status-check-icon {
  font-size: 12px;
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}

.status-check-area:hover .status-check-icon {
  opacity: 1;
  transform: translateX(2px);
}

/* 접수 내역 상태 확인 모달 */
.status-check-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  animation: quoteFadeIn 0.3s ease-out;
}

.status-check-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-check-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.status-check-content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 1;
  animation: quoteSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-check-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.status-check-close:hover {
  background: #f0f0f0;
  color: #333;
}

.status-check-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.status-check-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
}

.status-check-form .form-label {
  font-weight: 500;
  color: #444;
}

.status-check-submit {
  margin-top: 8px;
}

.status-check-loading {
  margin-top: 16px;
  font-size: 14px;
  color: #666;
}

.status-check-result {
  margin-top: 20px;
  min-height: 24px;
}

.status-check-empty,
.status-check-error {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.status-check-error {
  color: #c00;
}

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

.status-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #eee;
}

.status-check-date {
  font-size: 14px;
  color: #555;
}

.status-check-status {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.status-확인-전 { background: #e3f2fd; color: #1565c0; }
.status-견적-작성-중 { background: #fff3e0; color: #e65100; }
.status-답변-완료 { background: #e8f5e9; color: #2e7d32; }
.status-보류 { background: #fce4ec; color: #c2185b; }

/* 실시간 견적 분석 결과 박스 */
.instant-quote-box {
  font-family: 'LINE Seed', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui, sans-serif !important;
  background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
  border: 2px solid #007bff;
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.instant-quote-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.instant-quote-title i {
  color: #007bff;
}

.instant-quote-notice {
  font-size: 12px;
  color: #666;
  margin-bottom: 16px;
}

.instant-quote-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.instant-quote-stats .col-md-4 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.instant-quote-label {
  font-size: 13px;
  color: #555;
}

.instant-quote-value {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.instant-quote-price {
  font-size: 20px;
  font-weight: 700;
  color: #007bff;
}

.instant-quote-unit {
  font-size: 12px;
  color: #666;
}

/* 실시간 견적 - 분석 중 로딩 표시 */
.instant-quote-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 24px;
}

.instant-quote-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: instant-quote-spin 0.8s linear infinite;
}

.instant-quote-loading-text {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #555;
}

@keyframes instant-quote-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .instant-quote-box {
    padding: 16px;
  }

  .instant-quote-stats {
    flex-wrap: wrap;
  }

  .instant-quote-stats .col-md-4 {
    flex: 1 1 100%;
  }

  .success-popup-content {
    padding: 30px 25px;
    max-width: 90%;
  }

  .success-popup-icon i {
    font-size: 48px;
  }

  .success-popup-title {
    font-size: 20px;
  }

  .success-popup-message {
    font-size: 14px;
  }

  .status-check-content {
    padding: 22px 20px;
  }
}
