/* ===== 3D PRINTING COST ESTIMATOR ===== */
.estimator-hero {
  padding: 140px 0 40px;
  text-align: center;
}

.estimator-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.estimator-hero p {
  color: #dce3ec;
  font-size: 1.05rem;
  line-height: 1.7;
}

.estimator-section {
  padding: 20px 0 80px;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}

.estimator-card {
  background: #0f1520;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
}

.estimator-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.estimator-card h3 svg {
  width: 20px;
  height: 20px;
  color: #0eb8c9;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 48px 24px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  cursor: pointer;
  background: rgba(14, 184, 201, 0.02);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: #0eb8c9;
  background: rgba(14, 184, 201, 0.06);
}

.upload-zone-content {
  pointer-events: none;
}

.upload-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(14, 184, 201, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #0eb8c9;
}

.upload-icon svg {
  width: 28px;
  height: 28px;
}

.upload-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
  margin-bottom: 6px;
}

.upload-subtext {
  font-size: 0.875rem;
  color: #dce3ec;
  margin-bottom: 10px;
}

.upload-formats {
  font-size: 0.75rem;
  color: #8a9aaa;
}

.file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* File List */
.file-list {
  margin-top: 16px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #0a0e17;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  margin-bottom: 8px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.file-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(14, 184, 201, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0eb8c9;
  flex-shrink: 0;
}

.file-icon svg {
  width: 18px;
  height: 18px;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 0.75rem;
  color: #b0bcc8;
}

.file-remove {
  background: none;
  border: none;
  color: #8a9aaa;
  cursor: pointer;
  padding: 4px;
  transition: color 0.3s;
}

.file-remove:hover {
  color: #e86a3c;
}

.file-remove svg {
  width: 18px;
  height: 18px;
}

/* Analysis Grid */
.analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.analysis-item {
  background: #0a0e17;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.analysis-label {
  display: block;
  font-size: 0.75rem;
  color: #b0bcc8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.analysis-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-check {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.status-warn {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

/* Manufacturability Score */
.manufacturability-score {
  background: #0a0e17;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 16px;
}

.score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.score-header span:first-child {
  font-size: 0.875rem;
  color: #dce3ec;
}

.score-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
}

.score-bar {
  height: 6px;
  background: rgba(255,255,255,0.18);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, #0eb8c9, #22c55e);
  border-radius: 3px;
  transition: width 0.8s ease;
}

.score-note {
  font-size: 0.8rem;
  color: #b0bcc8;
}

/* Settings */
.setting-row {
  margin-bottom: 20px;
}

.setting-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #d1d5db;
  margin-bottom: 8px;
}

.range-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.range-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(255,255,255,0.18);
  border-radius: 3px;
  outline: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0eb8c9;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(14, 184, 201, 0.3);
}

.range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0eb8c9;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(14, 184, 201, 0.3);
}

.range-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0eb8c9;
  min-width: 40px;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 0;
}

.qty-btn {
  width: 42px;
  height: 42px;
  background: #0a0e17;
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.qty-btn:first-child {
  border-radius: 10px 0 0 10px;
}

.qty-btn:last-child {
  border-radius: 0 10px 10px 0;
}

.qty-btn:hover {
  background: rgba(14, 184, 201, 0.1);
  color: #0eb8c9;
}

.qty-input {
  width: 60px;
  height: 42px;
  background: #0a0e17;
  border: 1px solid rgba(255,255,255,0.18);
  border-left: none;
  border-right: none;
  color: white;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #d1d5db;
}

.checkbox-label input {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}

.checkbox-label input:checked + .checkmark {
  background: #0eb8c9;
  border-color: #0eb8c9;
}

.checkmark::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #0a0e17;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s;
  margin-bottom: 2px;
}

.checkbox-label input:checked + .checkmark::after {
  transform: rotate(45deg) scale(1);
}

/* Material Selection */
.material-select-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.material-option {
  background: #0a0e17;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.material-option:hover {
  border-color: rgba(14, 184, 201, 0.3);
}

.material-option.active {
  border-color: #0eb8c9;
  background: rgba(14, 184, 201, 0.05);
}

.material-option-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.material-color {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.18);
}

.material-option-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}

.material-option-name {
  font-weight: 600;
  color: white;
  font-size: 0.95rem;
}

.material-option-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0eb8c9;
}

.material-option-desc {
  font-size: 0.8rem;
  color: #dce3ec;
  line-height: 1.5;
  margin-bottom: 10px;
  padding-left: 44px;
}

.material-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-left: 44px;
}

.mtag {
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.18);
  font-size: 0.7rem;
  font-weight: 500;
  color: #b0bcc8;
}

/* Cost Card */
.cost-card {
  background: linear-gradient(135deg, #0f1520, #0a0e17);
  border-color: rgba(14, 184, 201, 0.15);
}

.cost-breakdown {
  margin-bottom: 20px;
}

.cost-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.9rem;
}

.cost-line span:first-child {
  color: #dce3ec;
}

.cost-line span:last-child {
  color: white;
  font-weight: 500;
}

.cost-line.discount span:last-child {
  color: #22c55e;
}

.cost-line.total {
  font-size: 1.1rem;
  font-weight: 700;
}

.cost-line.total span:first-child {
  color: white;
}

.cost-line.total span:last-child {
  color: #0eb8c9;
  font-size: 1.3rem;
}

.cost-line.per-unit {
  font-size: 0.8rem;
}

.cost-line.per-unit span:first-child {
  color: #b0bcc8;
}

.cost-line.per-unit span:last-child {
  color: #dce3ec;
}

.cost-divider {
  height: 1px;
  background: rgba(255,255,255,0.14);
  margin: 8px 0;
}

/* Turnaround */
.turnaround-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px;
  background: rgba(14, 184, 201, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(14, 184, 201, 0.1);
}

.turnaround-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #dce3ec;
}

.turnaround-item svg {
  width: 16px;
  height: 16px;
  color: #0eb8c9;
  flex-shrink: 0;
}

.turnaround-item strong {
  color: white;
}

/* Quote Button */
.quote-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: #0eb8c9;
  color: #0a0e17;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  margin-bottom: 14px;
}

.quote-btn:hover {
  background: #0aa8b8;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 184, 201, 0.25);
}

.quote-btn svg {
  width: 18px;
  height: 18px;
}

/* Secure Badge */
.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #8a9aaa;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.secure-badge svg {
  width: 14px;
  height: 14px;
  color: #22c55e;
}

/* Estimator Responsive */
@media (max-width: 1024px) {
  .estimator-grid {
    grid-template-columns: 1fr;
  }
  
  .estimator-right {
    order: -1;
  }
  
  .analysis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .estimator-hero {
    padding: 120px 0 30px;
  }
  
  .estimator-card {
    padding: 20px;
  }
  
  .analysis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .upload-zone {
    padding: 32px 16px;
  }
  
  .material-option-desc,
  .material-tags {
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .analysis-grid {
    grid-template-columns: 1fr;
  }
  
  .material-option-header {
    flex-wrap: wrap;
  }
  
  .material-option-info {
    width: 100%;
  }
}
