/* =============================================
   3D Print Portal — Page Styles
   ============================================= */

.print-hero {
  padding-top: calc(80px + var(--space-2xl));
  padding-bottom: var(--space-sm);
  background: radial-gradient(ellipse at top, var(--accent-light) 0%, transparent 60%);
}

.print-hero-content {
  text-align: center;
  max-width: 900px;
}

.print-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}

.print-subtitle {
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto var(--space-lg);
  font-size: 1rem;
}

.print-hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

.print-section .section-title {
  margin-bottom: var(--space-lg);
}

.print-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.print-card {
  position: relative;
}

.print-card-accent {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(180deg, rgba(204, 251, 241, 0.25) 0%, var(--white) 45%);
}

.print-list {
  margin: 0 0 var(--space-md);
  padding-left: 1.2rem;
  list-style: disc;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.print-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 700px;
  margin: -0.75rem auto var(--space-xl);
}

.print-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
}

.print-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.print-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.print-field input,
.print-field select,
.print-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.print-field textarea {
  min-height: 140px;
  resize: vertical;
}

.print-field input:focus,
.print-field select:focus,
.print-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.print-field-full {
  grid-column: 1 / -1;
}

.print-help {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.print-form-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
  align-items: center;
  gap: 12px;
}

.print-form-actions .btn {
  min-height: 44px;          /* unify height */
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
}

.print-form-actions .btn-primary {
  margin-left: auto;
}

.print-auto {
  padding: var(--space-xl);
}

.print-auto-ui {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.print-auto-summary {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  background: var(--bg);
}

.print-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.print-summary-row:last-child {
  border-bottom: none;
}

.print-disclaimer {
  margin-top: var(--space-xl);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.print-disclaimer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.print-disclaimer p {
  color: var(--text-muted);
  line-height: 1.7;
}

.form-status {
  margin-left: 12px;
  font-size: 0.95rem;
  color: #2e7d32; /* green */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-status.error {
  color: #c62828; /* red */
}

.g-recaptcha {
  margin-top: 16px;
}


.print-notes {
  margin: var(--space-md) 0 0;
  padding: var(--space-md);
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  display: grid;
  gap: 10px;
}

.print-notes li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.print-notes li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.7em;              /* aligns with text baseline */
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
}

.print-notes strong {
  color: var(--text);
  font-weight: 700;
}

/* Optional: make notes feel tighter inside service-card */
.service-card .print-notes {
  margin-top: var(--space-sm);
}

.print-file-row {
  display: flex;
  align-items: center;
  gap: 12px;             /* <-- this is the spacing you want */
  flex-wrap: wrap;       /* good for mobile */
}

.print-file-row input[type="file"] {
  flex: 1 1 280px;       /* grows, but doesn’t become tiny */
  min-width: 220px;
}

.submit-status {
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.print-progress {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  overflow: hidden;
}

.print-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.15s ease;
}

.report-block{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-top: var(--space-md);
  background: var(--white);
}

.report-block.error{
  border-color: rgba(198, 40, 40, 0.35);
  background: rgba(198, 40, 40, 0.06);
}

.report-block.warn{
  border-color: rgba(245, 124, 0, 0.35);
  background: rgba(245, 124, 0, 0.08);
}

.report-block.ok{
  border-color: rgba(46, 125, 50, 0.30);
  background: rgba(46, 125, 50, 0.06);
}

.report-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 800;
  margin-bottom: 10px;
}

.report-title span:nth-child(2){
  flex: 1 1 auto;
}

.report-fix{
  margin-left:auto;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.report-items{
  margin: 0;
  padding-left: 1.15rem;
}

.report-items li{
  margin: 4px 0;
}

.report-details{
  margin: 10px 0 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.report-details li{
  margin: 4px 0;
}

.badge{
  display:inline-flex;
  align-items:center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--bg);
}

.badge.error{
  border-color: rgba(198, 40, 40, 0.35);
  background: rgba(198, 40, 40, 0.10);
}

.badge.warn{
  border-color: rgba(245, 124, 0, 0.35);
  background: rgba(245, 124, 0, 0.12);
}

.badge.ok{
  border-color: rgba(46, 125, 50, 0.30);
  background: rgba(46, 125, 50, 0.10);
}

.report-tag{
  margin: -2px 0 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.report-block.error .report-tag{
  color: rgba(198, 40, 40, 0.85);
}

.report-block.warn .report-tag{
  color: rgba(245, 124, 0, 0.85);
}

.report-block.ok .report-tag{
  color: rgba(46, 125, 50, 0.85);
}

.report-details-lines{
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.report-details-lines > div{
  margin: 6px 0;
}

.slice-card{
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.slice-grid{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  align-items: start;
}

.slice-preview img{
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
}

.slice-metrics .metric{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.slice-metrics .metric:last-child{
  border-bottom: none;
}

.queue-box{
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.queue-title{
  font-weight: 800;
  margin-bottom: 8px;
}

/* --- Preview slider (glass/ice) --- */
.preview-slider{
  display:grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 10px;
  align-items:center;
}

.preview-slider img{
  width:100%;
  max-height:360px;
  object-fit:contain;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

/* round + icy button */
.preview-btn{
  width:44px;
  height:44px;
  border-radius: 999px;                 /* round */
  border: 1px solid rgba(226,232,240,0.8);
  background: rgba(255,255,255,0.55);   /* ice */
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size: 22px;
  line-height: 1;
  color: var(--text);
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.preview-btn:hover{
  background: rgba(255,255,255,0.8);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.preview-btn:active{
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.preview-btn:focus-visible{
  outline:none;
  box-shadow: 0 0 0 3px rgba(13,148,136,0.18), var(--shadow-sm);
}

/* Bounding box for scroll previews */
.preview-scroll{
  height: 400px;                 /* adjust: 420–600px feels good */
  overflow-y: auto;
  overflow-x: hidden;

  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);

  /* optional: smoother scrolling on iOS */
  -webkit-overflow-scrolling: touch;
}

/* Each preview image inside the box */
.preview-scroll img{
  width: 100%;
  max-height: 240px;             /* keeps each item reasonable */
  object-fit: contain;

  display: block;
  margin: 0 0 12px 0;

  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.7);
}

.preview-scroll img:last-child{
  margin-bottom: 0;
}

/* Hide arrows/dots if you switch to scroll-mode */
.preview-slider, .preview-dots { display:none !important; }


/* Responsive */
@media (max-width: 768px) {
  .print-form-grid {
    grid-template-columns: 1fr;
  }

  .print-auto-ui {
    grid-template-columns: 1fr;
  }

  .print-hero {
    padding-top: calc(80px + var(--space-xl));
  }

  .print-notes {
    padding: var(--space-sm);
    gap: 8px;
  }

  .slice-grid{ grid-template-columns: 1fr; }
}

