/* ==========================================================================
   TIMEXWORLD GROUP - Dynamic Forms & Wizard Styling
   ========================================================================== */

.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  background-color: #fff;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(0, 78, 107, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Wizard Steps Bar */
.wizard-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 3rem;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 3px;
  background: var(--border-color);
  z-index: 1;
}

.wizard-progress-bar {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
  z-index: 2;
  transition: width 0.4s ease;
  width: 0%;
}

.wizard-step-item {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  padding: 0 0.5rem;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.wizard-step-item.active .step-number {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 78, 107, 0.4);
}

.wizard-step-item.completed .step-number {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #fff;
}

.step-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.wizard-step-item.active .step-label {
  color: var(--primary-dark);
}

/* Service Selector Grid in Step 1 */
.service-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .service-options-grid { grid-template-columns: 1fr; }
}

.service-option-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.service-option-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 180, 216, 0.04);
}

.service-option-card.selected {
  border-color: var(--primary-blue);
  background: rgba(0, 78, 107, 0.06);
  box-shadow: 0 4px 15px rgba(0, 78, 107, 0.15);
}

.service-option-card input[type="radio"] {
  position: absolute;
  top: 1rem;
  right: 1rem;
  accent-color: var(--primary-blue);
}

.service-option-icon {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
}

.service-option-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

/* CBM Calculator Box */
.cbm-calc-box {
  background: #f1f5f9;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1rem;
  border: 1px dashed #cbd5e1;
}

.cbm-result {
  background: var(--primary-dark);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-top: 1rem;
}

.cbm-result-val {
  font-size: 1.3rem;
  color: var(--accent-cyan);
}

/* Wizard Navigation Buttons */
.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* Form Response Messages */
.form-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: none;
}

.form-alert.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  display: block;
}

.form-alert.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}
