/* Custom styles for DBBS Signup Form */

:root {
  --primary-color: #FF7800;
  --primary-dark: #E86C00;
  --primary-light: #FF9133;
  --secondary-color: #343a40;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --border-radius: 0.5rem;
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

body {
  background-color: #f7f7f7;
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Header and logos */
.main-logo {
  max-height: 60px;
}

.secondary-logo {
  max-height: 30px;
}

.powered-by {
  font-size: 0.9rem;
  color: #6c757d;
}

/* Card styling */
.form-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

/* Progress bar */
.progress {
  height: 0.6rem;
  border-radius: 1rem;
  background-color: #e9ecef;
}

.progress-bar {
  background-color: var(--primary-color);
}

/* Step styling */
.step-title {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-weight: 600;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

/* Button styling */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-success {
  background-color: var(--success-color);
  border-color: var(--success-color);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Category selection */
.category-card {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #eee;
  border-radius: var(--border-radius);
}

.category-card:hover {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.category-card.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 120, 0, 0.25);
}

.category-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

/* Plan cards */
.plan-card {
  transition: all 0.3s ease;
  border: 2px solid #eee;
  border-radius: var(--border-radius);
}

.plan-card:hover {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.plan-card.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 120, 0, 0.25);
}

.plan-card .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.plan-speed {
  color: #6c757d;
  font-size: 0.9rem;
}

.plan-price {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 1rem 0;
}

.plan-price .currency {
  font-size: 1.2rem;
  vertical-align: top;
  position: relative;
  top: 0.25rem;
}

.plan-price .period {
  font-size: 1rem;
  color: #6c757d;
}

.plan-features {
  font-size: 0.9rem;
}

.plan-features p {
  margin-bottom: 0.5rem;
}

/* Form controls */
.form-control, .form-select {
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.25rem rgba(255, 120, 0, 0.25);
}

.form-label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Map */
#map, #business-map {
  border-radius: var(--border-radius);
  border: 1px solid #ced4da;
  z-index: 1;
}

/* Camera */
#front-camera, #front-preview, #front-capturedImage,
#back-camera, #back-preview, #back-capturedImage {
  border-radius: var(--border-radius);
  border: 1px solid #ced4da;
  max-height: 300px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

/* Debug section */
#debugOutput {
  font-family: monospace;
  font-size: 0.8rem;
}

/* Map Search Control */
.leaflet-control-geosearch {
  width: 100%;
  max-width: 400px;
}

.leaflet-control-geosearch input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
  font-size: 16px;
}

.leaflet-control-geosearch .results {
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ced4da;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.leaflet-control-geosearch .results > * {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
}

.leaflet-control-geosearch .results > *:hover,
.leaflet-control-geosearch .results > *.active {
  background-color: #f8f9fa;
}

/* Responsive */
@media (max-width: 768px) {
  .form-card {
    padding: 1.5rem;
  }
  
  .plan-price {
    font-size: 1.5rem;
  }
  
  .powered-by {
    margin-top: 1rem;
  }
  
  .leaflet-control-geosearch {
    max-width: 300px;
  }
}

/* Animation effects */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.form-step {
  animation: fadeIn 0.5s ease;
}

/* Fix for Font Awesome */
.fas {
  display: inline-block;
  width: 1em;
}

/* Summary page photo styling */
#summaryContent img {
  max-height: 200px;
  object-fit: contain;
  border: 1px solid #dee2e6;
  padding: 2px;
}