/* پیش‌ثبت‌نام فیبر نوری — استایل فرم */
.fiber-prereg-wrap {
  font-family: Vazirmatn, Tahoma, "Segoe UI", sans-serif;
  direction: rtl;
  text-align: right;
  max-width: 720px;
  margin: 1.5rem auto;
  box-sizing: border-box;
}
.fiber-prereg-wrap *,
.fiber-prereg-wrap *::before,
.fiber-prereg-wrap *::after {
  box-sizing: border-box;
}
.fiber-prereg-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.fiber-prereg-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}
.fiber-prereg-desc {
  margin: 0 0 1.25rem;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}
.fiber-prereg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}
.fiber-prereg-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.fiber-prereg-field.fiber-prereg-full {
  grid-column: 1 / -1;
}
.fiber-prereg-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}
.fiber-prereg-field .req {
  color: #dc2626;
}
.fiber-prereg-field input,
.fiber-prereg-field select,
.fiber-prereg-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.fiber-prereg-field input:focus,
.fiber-prereg-field select:focus,
.fiber-prereg-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.fiber-prereg-field input.is-invalid,
.fiber-prereg-field select.is-invalid,
.fiber-prereg-field textarea.is-invalid {
  border-color: #dc2626;
  background: #fef2f2;
}
.fiber-prereg-actions {
  margin-top: 1.35rem;
  display: flex;
  justify-content: flex-start;
}
.fiber-prereg-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.8rem 1.75rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
}
.fiber-prereg-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}
.fiber-prereg-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.fiber-prereg-alert {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.55;
}
.fiber-prereg-alert.is-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.fiber-prereg-alert.is-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.fiber-prereg-notice {
  padding: 1rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  color: #9a3412;
  text-align: center;
}
@media (max-width: 600px) {
  .fiber-prereg-grid {
    grid-template-columns: 1fr;
  }
  .fiber-prereg-card {
    padding: 1.25rem 1rem;
  }
}

/* استان فقط‌خواندنی */
.fiber-prereg-readonly {
  background: #e2e8f0 !important;
  color: #475569 !important;
  cursor: not-allowed;
}

/* نقشه */
.fiber-prereg-map-block {
  margin-top: 0.25rem;
}
.fiber-prereg-map-hint {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}
.fiber-prereg-map-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.fiber-prereg-geo-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.fiber-prereg-geo-btn:hover:not(:disabled) {
  background: #e2e8f0;
}
.fiber-prereg-geo-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.fiber-prereg-coords {
  font-size: 0.8rem;
  color: #475569;
  font-family: ui-monospace, monospace;
  direction: ltr;
}
.fiber-prereg-map-block.is-invalid-map .fiber-prereg-map {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
.fiber-prereg-map .leaflet-container {
  font-family: inherit;
}
