/* Click to Fit – Manufacturing Insight */
/* FIT corporate colors override */
:root {
  --accent: #253D66;
  --brand: #FCBA00;
  --brand-hover: #e5a800;
}

.ctf-hero {
  padding: 36px 32px 32px;
  margin-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(135deg, #253D66 0%, #1a2d4d 100%) !important;
}
.ctf-hero-inner {
  display: flex; align-items: center; gap: 24px;
}
.ctf-hero-logo {
  height: 90px; width: auto; flex-shrink: 0;
  filter: brightness(0) invert(1);
}
.ctf-hero h1 { font-size: 28px; margin: 0 0 4px; }
.ctf-subtitle { font-size: 16px; font-weight: 600; color: rgba(255,255,255,0.95); margin: 0 0 10px; }
.ctf-hero p:not(.ctf-subtitle) { font-size: 14px; max-width: 600px; margin: 0; color: rgba(255,255,255,0.8); }
@media (max-width: 600px) {
  .ctf-hero-inner { flex-direction: column; text-align: center; }
  .ctf-hero-logo { height: 48px; }
}

/* Top Row: Upload left, Test right */
.ctf-top-row {
  display: flex; gap: 0;
}
.ctf-upload-card {
  flex: 1; border-top: none; border-right: none;
  border-radius: 0 0 0 var(--radius); padding: 24px;
}
.ctf-test-card {
  flex: 1; border-top: none;
  border-radius: 0 0 var(--radius) 0; padding: 24px;
}
.ctf-upload-card h3, .ctf-test-card h3 { margin-top: 0; }

/* Dropzone */
.ctf-dropzone {
  border: 2px dashed var(--border); border-radius: 10px;
  padding: 28px 20px; text-align: center; transition: all 0.2s; cursor: pointer;
}
.ctf-dropzone.drag-over { border-color: var(--accent); background: #e8f0fe; }
.ctf-dropzone-text { font-size: 15px; margin-bottom: 10px; }
.ctf-file-btn { cursor: pointer; }
.ctf-formats { margin-top: 12px; font-size: 11px; color: var(--muted); }

/* Progress */
.ctf-progress-bar { height: 6px; background: #e0e0e0; border-radius: 3px; margin: 16px 0 8px; overflow: hidden; }
.ctf-progress-fill { height: 100%; background: var(--accent); border-radius: 3px; width: 0%; transition: width 0.3s; }
.ctf-progress-text { font-size: 13px; color: var(--muted); text-align: center; }

/* Test Buttons */
.ctf-test-btns { display: flex; flex-direction: column; gap: 8px; }
.ctf-test-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; font-size: 14px; text-align: left;
}
.ctf-test-icon { font-size: 22px; }

/* Result Row: Viewer left, Contact right */
.ctf-result-row {
  display: flex; gap: 16px; margin-bottom: 20px;
}
.ctf-viewer-card {
  flex: 3; padding: 16px;
}
.ctf-contact-card {
  flex: 2; padding: 24px;
}

/* File Info */
.ctf-file-info {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #e8f5e9; border-radius: 8px; margin-bottom: 12px;
}
.ctf-file-icon { font-size: 20px; }

/* 3D Viewer */
.ctf-viewer {
  width: 100%; height: 400px; border-radius: 10px; overflow: hidden;
  background: #f5f5f5; position: relative;
}
.ctf-viewer canvas { display: block; }

/* Form */
.ctf-form-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.ctf-field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.ctf-field input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px;
}
.ctf-field input:focus { outline: none; border-color: var(--accent); }
.ctf-checkbox { margin-bottom: 14px; font-size: 13px; }
.ctf-checkbox label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.ctf-checkbox input { margin-top: 3px; }
.ctf-submit { width: 100%; font-size: 15px; }

/* Success Box */
.ctf-success-box { text-align: center; }
.ctf-success-icon { font-size: 48px; margin-bottom: 8px; }
.ctf-success-box h3 { margin: 0 0 12px; color: var(--ok); }
.ctf-success-box p { margin: 0 0 8px; font-size: 14px; }
.ctf-est-box {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px;
  text-align: left; padding: 12px; background: #f5f5f5; border-radius: 8px;
  margin-top: 12px; font-size: 13px;
}
.ctf-est-label { color: var(--muted); font-weight: 600; }
.ctf-est-val { font-weight: 700; }

/* Footer */
.ctf-footer { text-align: center; padding: 24px 0; }
.ctf-footer a { color: var(--accent); text-decoration: none; }

/* Mobile */
@media (max-width: 700px) {
  .ctf-top-row { flex-direction: column; }
  .ctf-upload-card, .ctf-test-card { border-radius: 0; border-right: 1px solid var(--border); }
  .ctf-result-row { flex-direction: column; }
  .ctf-viewer { height: 300px; }
}
