/* Lease Calculator - Inherits fonts from Webflow site */
.lease-calculator {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
}

.lease-calculator * {
  font-family: inherit;
  box-sizing: border-box;
}

/* Steps Indicator */
.steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  padding: 1rem 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  color: #6b7280;
  transition: all 0.2s ease;
}

.step:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.step.active {
  color: #0596ff;
}

.step.completed {
  color: #10b981;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.step.active .step-number {
  background: #0596ff;
  color: white;
}

.step.completed .step-number {
  background: #10b981;
  color: white;
}

.step-label {
  font-weight: 500;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: #e5e7eb;
  margin: 0 0.5rem;
}

/* Main Layout */
.calculator-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}

.calculator-form-column {
  min-width: 0;
}

.calculator-summary-column {
  position: sticky;
  top: 20px;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Form Sections */
.form-section {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.form-section:last-of-type {
  border-bottom: none;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: inherit;
}

.section-description {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0 0 1.25rem 0;
  line-height: 1.5;
}

/* Options Grid */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.75rem;
}

.kilometers-grid {
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
}

.option-button {
  padding: 0.875rem 1rem;
  border: 1px solid #d1d5db;
  background: transparent;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.option-button:hover {
  border-color: #0596ff;
  color: #0596ff;
}

.option-button.active {
  background: #0596ff;
  border-color: #0596ff;
  color: white;
}

/* Options List (Checkboxes & Radio) */
.options-list,
.radio-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-option,
.radio-option {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: transparent;
}

.checkbox-option:hover,
.radio-option:hover {
  border-color: #0596ff;
}

.checkbox-option input[type="checkbox"],
.radio-option input[type="radio"] {
  margin-right: 0.75rem;
  margin-top: 0.125rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #0596ff;
  flex-shrink: 0;
}

.checkbox-label,
.radio-label {
  flex: 1;
  font-size: 0.9rem;
  color: inherit;
  line-height: 1.4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.option-price {
  font-size: 0.85rem;
  color: #0596ff;
  font-weight: 600;
  white-space: nowrap;
}

/* Navigation Section */
.navigation-section {
  padding-top: 1.5rem;
}

.navigation-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

.back-button {
  background: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.back-button:hover {
  border-color: #0596ff;
  color: #0596ff;
}

.submit-button {
  background: #0596ff;
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.submit-button:hover:not(:disabled) {
  background: #0077cc;
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Sticky Summary */
.sticky-summary {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.summary-image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e5e7eb;
}

.summary-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-vehicle-info {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.summary-vehicle-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: inherit;
}

.summary-license-plate {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.license-plate-label {
  color: #6b7280;
}

.license-plate-value {
  font-weight: 600;
  background: #fef3c7;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #fcd34d;
}

.summary-price-display {
  padding: 1.25rem;
  background: #0596ff;
  color: white;
  text-align: center;
}

.summary-price-label {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.summary-price-amount {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.summary-price-note {
  font-size: 0.85rem;
  opacity: 0.9;
}

.summary-options {
  padding: 1.25rem;
}

.summary-section-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin: 0 0 0.75rem 0;
}

.summary-option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.summary-option-label {
  color: #374151;
}

.summary-option-value {
  font-weight: 500;
  color: inherit;
}

.summary-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 1rem 0;
}

.summary-total {
  padding: 1.25rem;
  background: #f3f4f6;
  border-top: 1px solid #e5e7eb;
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-total-label {
  font-weight: 500;
  color: #374151;
}

.summary-total-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: inherit;
}

/* Customer Form Styles */
.customer-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-field.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: inherit;
}

.form-label .required {
  color: #ef4444;
}

.form-input {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: inherit;
  background: transparent;
  transition: border-color 0.15s ease;
}

.form-input:focus {
  outline: none;
  border-color: #0596ff;
}

.form-input.has-error {
  border-color: #ef4444;
}

.form-input::placeholder {
  color: #9ca3af;
}

.field-error {
  font-size: 0.8rem;
  color: #ef4444;
}

/* Messages */
.success-message {
  background: #d1fae5;
  color: #065f46;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border: 1px solid #a7f3d0;
  font-size: 0.9rem;
}

.error-message {
  background: #fee2e2;
  color: #991b1b;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border: 1px solid #fecaca;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .calculator-summary-column {
    position: relative;
    top: 0;
    order: -1;
  }

  .sticky-summary {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .steps-indicator {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .step {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .step-connector {
    display: none;
  }

  .form-section {
    padding: 1.25rem 0;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .options-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .kilometers-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .option-button {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }

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

  .form-field.full-width {
    grid-column: span 1;
  }

  .navigation-buttons {
    flex-direction: column;
  }

  .back-button,
  .submit-button {
    width: 100%;
    text-align: center;
  }

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

@media (max-width: 480px) {
  .options-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .kilometers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .checkbox-label,
  .radio-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }
}

