/* ============================================
   MULTI-STEP PROJECT FORM STYLES
   Professional, Clean, No Gradients
   Brand Colors: Blue Primary, Orange Secondary
   ============================================ */

/* === ROOT VARIABLES === */
:root {
  --primary: #1e40af;
  --secondary: #f97316;
  --accent: #10b981;
  --dark: #1e293b;
  --gray: #64748b;
  --light-gray: #f1f5f9;
  --white: #ffffff;
  --error: #ef4444;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --gray-100: #f8fafc;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --transition: 0.3s ease;
}

/* === GLOBAL === */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--gray-100);
  padding: 2rem 1rem;
  line-height: 1.6;
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
}

/* === CONTAINER === */
.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

/* === PROGRESS INDICATOR === */
.progress-wrapper {
  background: var(--white);
  padding: 2rem 2rem 1.5rem;
  border-bottom: 2px solid var(--gray-200);
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.4s ease;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gray-200);
  border: 3px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gray-600);
  transition: all var(--transition);
}

.progress-step.active .step-number {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
  transform: scale(1.1);
}

.progress-step.completed .step-number {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  text-align: center;
  transition: color var(--transition);
}

.progress-step.active .step-label {
  color: var(--primary);
}

.progress-step.completed .step-label {
  color: var(--accent);
}

/* === FORM CONTENT === */
.form-content {
  padding: 2.5rem;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === STEP HEADER === */
.step-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.step-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.step-header p {
  font-size: 1rem;
  color: var(--gray);
}

/* === FORM GROUPS === */
.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.required {
  color: var(--error);
  margin-left: 2px;
}

/* === INPUTS === */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--white);
  transition: all var(--transition);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--gray-600);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

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

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}

/* === GRID LAYOUT === */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* === RADIO/CHECKBOX OPTIONS === */
.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.option-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border: 2px solid var(--gray-300);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
}

.option-card:hover {
  border-color: var(--primary);
  background: var(--gray-100);
  transform: translateX(4px);
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.option-card.selected {
  border-color: var(--primary);
  background: rgba(30, 64, 175, 0.05);
  box-shadow: var(--shadow-md);
}

.option-content strong {
  display: block;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.option-content small {
  color: var(--gray);
  font-size: 0.875rem;
}

/* === HELP TEXT === */
.help-text {
  font-size: 0.875rem;
  color: var(--gray);
  margin-top: 0.5rem;
}

/* === BUTTONS === */
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--gray-200);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--gray-300);
  color: var(--dark);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--gray-600);
  color: var(--white);
}

/* === ALERTS === */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: none;
  font-size: 0.95rem;
}

.alert.show {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 2px solid var(--accent);
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 2px solid var(--error);
}

/* === PRICE SUMMARY === */
.price-summary {
  background: var(--primary);
  color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
}

.price-summary .label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-summary .amount {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.price-summary .deposit {
  font-size: 1rem;
  opacity: 0.95;
  margin-top: 1rem;
}

.price-summary .deposit span {
  font-weight: 700;
  font-size: 1.125rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  body {
    padding: 1rem 0.5rem;
  }

  .form-container {
    border-radius: 12px;
  }

  .progress-wrapper {
    padding: 1.5rem 1rem 1rem;
  }

  .progress-steps {
    gap: 0.5rem;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .step-label {
    font-size: 0.75rem;
  }

  .form-content {
    padding: 2rem 1.5rem;
  }

  .step-header h2 {
    font-size: 1.5rem;
  }

  .step-header p {
    font-size: 0.9rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .btn {
    width: 100%;
  }

  .price-summary .amount {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .step-label {
    display: none;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .form-content {
    padding: 1.5rem 1rem;
  }

  .step-header h2 {
    font-size: 1.25rem;
  }

  .price-summary .amount {
    font-size: 2rem;
  }
}

/* === ACCESSIBILITY === */
*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}