/* forms.css — styles for apply-lte.html, apply-fibre.html, apply.html */

.form-page-wrap { max-width: 720px; margin: 0 auto; padding: 32px 20px 60px; }
.form-page-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 32px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.form-page-card.wide { max-width: none; }
.form-page-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.form-page-sub { font-size: 13px; color: #6b7280; margin-bottom: 24px; }

/* Reuse .field, .field-row, .btn-primary, .btn-outline, .alert from style.css */

textarea {
  width: 100%; padding: 9px 13px; border: 1px solid #d1d5db; border-radius: 8px;
  font-size: 14px; font-family: inherit; color: #1a1a1a; resize: vertical;
}
textarea:focus { outline: none; border-color: #1a6b3c; box-shadow: 0 0 0 3px rgba(26,107,60,0.08); }

select {
  width: 100%; padding: 9px 13px; border: 1px solid #d1d5db; border-radius: 8px;
  font-size: 14px; font-family: inherit; color: #1a1a1a; background: #fff;
}
select:focus { outline: none; border-color: #1a6b3c; box-shadow: 0 0 0 3px rgba(26,107,60,0.08); }

/* Geolocation button */
.btn-geo {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; background: #f0faf4; color: #1a6b3c;
  border: 1px solid #a7d7bb; border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
}
.btn-geo:hover { background: #e0f3e8; }
.geo-status { font-size: 12px; color: #6b7280; margin-top: 6px; }
.geo-status.ok { color: #166534; }
.geo-status.err { color: #991b1b; }

/* Success card (reused across forms) */
.success-card { text-align: center; padding: 20px 0; }
.success-icon { width: 56px; height: 56px; border-radius: 50%; background: #1a6b3c; color: #fff; font-size: 24px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.success-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: #1a6b3c; }
.success-card p { font-size: 14px; color: #4b5563; margin-bottom: 6px; }

/* Loading view */
.loading-view { text-align: center; padding: 40px 0; color: #6b7280; font-size: 14px; }
.spinner-lg { width: 32px; height: 32px; border: 3px solid #e5e7eb; border-top-color: #1a6b3c; border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== WIZARD (apply.html) ===== */
.progress-track { height: 6px; background: #e5e7eb; border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.progress-fill { height: 100%; background: #1a6b3c; transition: width 0.3s ease; }
.progress-labels { display: flex; justify-content: space-between; margin-bottom: 28px; }
.step-label { font-size: 11px; color: #9ca3af; font-weight: 500; }
.step-label.active { color: #1a6b3c; }

.wizard-step { display: none; }
.wizard-step.active { display: block; }
.step-title { font-size: 17px; font-weight: 600; margin-bottom: 18px; }

.package-confirm-card { background: #f0faf4; border: 1px solid #a7d7bb; border-radius: 10px; padding: 16px; }
.package-name { font-size: 16px; font-weight: 700; color: #1a6b3c; }
.package-meta { font-size: 13px; color: #4b5563; margin-top: 4px; }

.toggle-row { display: flex; gap: 8px; margin-top: 6px; }
.toggle-btn { flex: 1; padding: 9px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; color: #4b5563; cursor: pointer; }
.toggle-btn.active { background: #1a6b3c; color: #fff; border-color: #1a6b3c; }

.router-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.router-card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; cursor: pointer; text-align: center; transition: all 0.15s; }
.router-card:hover { border-color: #1a6b3c; }
.router-card.selected { border-color: #1a6b3c; background: #f0faf4; box-shadow: 0 0 0 2px rgba(26,107,60,0.15); }
.router-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.router-price { font-size: 12px; color: #1a6b3c; font-weight: 600; }

.doc-upload-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.doc-upload-row.two-col { grid-template-columns: repeat(2, 1fr); }
.doc-upload-box { border: 1.5px dashed #d1d5db; border-radius: 10px; padding: 16px; text-align: center; transition: all 0.15s; }
.doc-upload-box.uploaded { border-color: #1a6b3c; background: #f0faf4; border-style: solid; }
.doc-upload-box label { display: block; font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 10px; }
.doc-upload-box input[type="file"] { width: 100%; font-size: 11px; }
.doc-status { font-size: 11px; color: #9ca3af; margin-top: 8px; }
.doc-status.ok { color: #166534; font-weight: 600; }
.doc-status.err { color: #991b1b; }
.upload-btn-row { display: flex; gap: 8px; justify-content: center; margin-bottom: 4px; }
.upload-choice-btn { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; background: #f0faf4; color: #1a6b3c; border: 1px solid #a7d7bb; border-radius: 8px; font-size: 11px; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.upload-choice-btn:hover { background: #e0f3e8; }

.required-tag { display: inline-block; background: #fee2e2; color: #991b1b; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px; margin-left: 4px; text-transform: uppercase; vertical-align: middle; }
.optional-tag { display: inline-block; background: #f3f4f6; color: #6b7280; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px; margin-left: 4px; text-transform: uppercase; vertical-align: middle; }

.photo-guide-box { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; margin-bottom: 18px; }
.photo-guide-img { width: 100%; border-radius: 8px; display: block; margin-bottom: 12px; }
.photo-guide-rules { font-size: 12px; color: #374151; line-height: 1.7; }
.photo-guide-rules ul { padding-left: 18px; margin-top: 4px; }

.popia-box { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; margin-top: 8px; }
.popia-label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 13px; color: #374151; line-height: 1.6; }
.popia-label input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; }

.wizard-nav { display: flex; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 1px solid #e5e7eb; }
.wizard-nav .btn-primary, .wizard-nav .btn-outline { width: auto; padding: 10px 24px; }

.field-error { border-color: #dc2626 !important; background: #fef2f2 !important; box-shadow: 0 0 0 2px rgba(220,38,38,0.12) !important; }
.doc-upload-box.field-error { border-style: solid; border-width: 1.5px; }
.popia-box .field-error { display: block; border-radius: 8px; padding: 8px; margin: -8px; }

@media (max-width: 640px) {
  .doc-upload-row { grid-template-columns: 1fr; }
  .router-grid { grid-template-columns: 1fr; }
  .progress-labels { font-size: 10px; }
  .step-label { display: none; }
  .step-label.active { display: block; }
}
