/* ==========================================================================
   Cat Sitter Pro V2 - Styles CSS
   Formulaire de estimation moderne et responsive
   ========================================================================== */

/* Variables CSS */
:root {
  --primary-color: #667eea;
  --primary-dark: #5a67d8;
  --secondary-color: #48bb78;
  --danger-color: #e53e3e;
  --warning-color: #ed8936;
  --info-color: #3182ce;
  
  --gray-50: #f7fafc;
  --gray-100: #edf2f7;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e0;
  --gray-400: #a0aec0;
  --gray-500: #718096;
  --gray-600: #4a5568;
  --gray-700: #2d3748;
  --gray-800: #1a202c;
  --gray-900: #171923;
  
  --white: #ffffff;
  --black: #000000;
  
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;
  
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  /* Préserver le padding-top de la navigation */
  padding-top: var(--nav-height, 70px);
}

/* Container principal */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.header-content {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.tagline {
  font-size: 1.2rem;
  color: var(--gray-600);
  margin: 0;
}

/* Progress Steps */
.progress-container {
  margin-bottom: 40px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  background: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  position: relative;
}

.step:not(:last-child)::after {
  /* content: ''; */
  position: absolute;
  right: -50%;
  top: 50%;
  width: 100%;
  height: 2px;
  background: var(--gray-200);
  transform: translateY(-50%);
  z-index: 1;
}

.step.active:not(:last-child)::after,
.step.completed:not(:last-child)::after {
  background: var(--primary-color);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.step.active .step-number {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
}

.step.completed .step-number {
  background: var(--secondary-color);
  color: var(--white);
}

.step-label {
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition);
}

.step.active .step-label {
  color: var(--primary-color);
  font-weight: 600;
}

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

.progress-bar {
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
  width: 0;
  transition: width 0.5s ease;
}

/* Main Content */
.main-content {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

/* Form */
.estimation-form {
  padding: 40px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-header {
  text-align: center;
  margin-bottom: 40px;
}

.step-header h2 {
  font-size: 2rem;
  color: var(--gray-800);
  margin-bottom: 10px;
}

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

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

/* Labels */
.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--gray-700);
}

.label-text {
  font-size: 1rem;
}

.label-icon {
  font-size: 1.2rem;
  opacity: 0.7;
}

/* Input Fields */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--danger-color);
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  background-color: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--gray-500);
  cursor: not-allowed;
  opacity: 0.6;
}

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

/* Input Help */
.input-help {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--gray-500);
}

.input-error {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--danger-color);
  display: none;
}

.input-error.show {
  display: block;
}

/* Checkboxes */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.checkbox-label:hover {
  border-color: var(--primary-color);
  background: var(--gray-50);
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  position: relative;
  transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 12px;
  font-weight: bold;
}

.checkbox-text {
  font-weight: 500;
}

/* Erreur sur les créneaux */
#moment-container.error {
  border: 2px solid var(--danger-color) !important;
  border-radius: var(--border-radius-sm);
  padding: 10px;
}

#moment-error {
  margin-top: 8px;
}

/* Number Input with Buttons */
.number-input-container {
  display: flex;
  align-items: center;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  width: fit-content;
}

.number-btn {
  background: var(--gray-100);
  border: none;
  width: 40px;
  height: 48px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-600);
}

.number-btn:hover {
  background: var(--gray-200);
  color: var(--primary-color);
}

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

.number-input {
  border: none;
  width: 60px;
  height: 48px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--white);
  color: var(--gray-800);
}

.number-input:focus {
  outline: none;
  background: var(--gray-50);
}

/* Toggle Switch */
.toggle-label {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  padding: 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.toggle-label:hover {
  border-color: var(--primary-color);
  background: var(--gray-50);
}

.toggle-input {
  display: none;
}

.toggle-slider {
  width: 50px;
  height: 26px;
  background: var(--gray-300);
  border-radius: 13px;
  position: relative;
  transition: var(--transition);
}

.toggle-slider::after {
  content: '';
  width: 20px;
  height: 20px;
  background: var(--white);
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: var(--transition);
}

.toggle-input:checked + .toggle-slider {
  background: var(--primary-color);
}

.toggle-input:checked + .toggle-slider::after {
  transform: translateX(24px);
}

.toggle-text {
  font-weight: 500;
  font-size: 1.1rem;
}

/* Sections */
.form-section {
  margin-bottom: 40px;
  padding: 24px;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  background: var(--gray-50);
}

.section-title {
  font-size: 1.3rem;
  color: var(--gray-800);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-200);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header .section-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Cats Details */
.cats-list {
  display: grid;
  gap: 20px;
}

.cat-card {
  padding: 20px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  position: relative;
}

.cat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.cat-card h4 {
  color: var(--primary-color);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.remove-cat-btn {
  background: var(--danger-color);
  color: var(--white);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-cat-btn:hover {
  background: #c53030;
  transform: scale(1.1);
}

.remove-cat-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.cat-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

/* Treatments */
.treatments-container {
  margin-top: 20px;
}

.treatments-list {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.treatment-card {
  padding: 20px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  position: relative;
}

.treatment-card h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.treatment-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.remove-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--danger-color);
  color: var(--white);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.remove-btn:hover {
  background: #c53030;
  transform: scale(1.1);
}

.address-suggestion {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.address-suggestion:hover {
  background: var(--gray-50);
}

.address-suggestion:last-child {
  border-bottom: none;
}

/* Sitter Info */
.sitter-info {
  margin-top: 10px;
  padding: 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  color: var(--gray-700);
}

.sitter-info.show {
  display: block;
}

.sitter-info .sitter-address {
  font-weight: 500;
  color: var(--primary-color);
  margin-top: 4px;
}

/* Distance Info */
.distance-info {
  margin-top: 10px;
  padding: 12px;
  background: var(--info-color);
  color: var(--white);
  border-radius: var(--border-radius-sm);
  font-weight: 500;
}

.distance-info.warning {
  background: var(--warning-color);
}

.distance-info.error {
  background: var(--danger-color);
}

/* Summary Panel */
.summary-panel {
  margin-top: 30px;
  padding: 24px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  border-radius: var(--border-radius);
}

.summary-panel h3 {
  margin-bottom: 15px;
}

.summary-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.summary-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: var(--border-radius-sm);
}

.summary-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 5px;
}

.summary-value {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Estimation Result */
.estimation-result {
  padding: 30px;
  background: var(--gray-50);
  border-radius: var(--border-radius);
  margin-top: 30px;
}

.estimation-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.summary-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.summary-card-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.summary-card-title {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 5px;
}

.summary-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Nouveaux styles pour la modal personnalisée */
.estimation-total-highlight {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  padding: 32px;
  border-radius: var(--border-radius);
  text-align: center;
  margin-bottom: 32px;
  box-shadow: var(--shadow-lg);
}

.total-label {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 8px;
}

.total-price {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.total-detail {
  font-size: 1rem;
  opacity: 0.8;
}

.estimation-essentials {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.essential-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--border-radius-sm);
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.essential-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.essential-icon {
  font-size: 1.8rem;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.essential-content {
  flex: 1;
}

.essential-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.essential-value {
  font-size: 1.1rem;
  color: var(--gray-800);
  font-weight: 500;
  line-height: 1.4;
}

.estimation-breakdown {
  background: var(--white);
  padding: 24px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 20px;
}

.estimation-breakdown h3 {
  margin-bottom: 20px;
  color: var(--gray-800);
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.breakdown-item:last-child {
  border-bottom: none;
}

.breakdown-label {
  color: var(--gray-700);
}

.breakdown-value {
  padding-left: 4px;
  font-weight: 600;
  color: var(--gray-800);
}

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breakdown-detail {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 4px;
  font-style: italic;
}

.breakdown-item.sub-item {
  padding-left: 20px;
  padding-top: 6px;
  padding-bottom: 6px;
  background: var(--gray-50);
  border-left: 3px solid var(--primary-color);
  margin-left: 10px;
}

.breakdown-item.sub-item .breakdown-label {
  font-weight: normal;
  font-size: 0.9rem;
}

.breakdown-item.subtotal {
  border-top: 2px solid var(--gray-300);
  padding-top: 12px;
  margin-top: 10px;
  font-weight: 600;
  background: var(--gray-50);
}

.breakdown-item.discount {
  color: var(--secondary-color);
  font-weight: 600;
}

/* Nouveaux styles pour la structure complète */
.breakdown-separator {
  height: 1px;
  background: var(--gray-300);
  margin: 15px 0;
}

.breakdown-section-title {
  background: var(--gray-100);
  padding: 8px 12px;
  margin: 10px 0 5px 0;
  border-left: 4px solid var(--primary-color);
  font-weight: 600;
  color: var(--gray-700);
}

.breakdown-section-title .section-label {
  font-size: 0.95rem;
}

.breakdown-section-title .section-detail {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: normal;
  margin-left: 8px;
}

.breakdown-item.total {
  border-top: 3px solid var(--primary-color);
  color: var(--white);
  padding: 15px 12px;
  margin-top: 15px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-size: 1.1rem;
}

.estimation-total {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 24px;
  border-radius: var(--border-radius-sm);
  text-align: center;
  margin-bottom: 30px;
}

.estimation-total h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.estimation-total .total-amount {
  font-size: 2.5rem;
  font-weight: 700;
}

.estimation-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  padding: 14px 28px;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary {
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Form Navigation */
.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--gray-200);
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-spinner {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-200);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

.toast {
  background: var(--white);
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-sm);
  padding: 16px 20px;
  margin-bottom: 10px;
  max-width: 400px;
  animation: slideInRight 0.3s ease-out;
}

.toast.success {
  border-left-color: var(--secondary-color);
}

.toast.error {
  border-left-color: var(--danger-color);
}

.toast.warning {
  border-left-color: var(--warning-color);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Services inclus */
.services-included {
  margin-top: 30px;
  padding: 25px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--secondary-color);
}

.services-included h4 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--white);
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  color: var(--gray-700);
}

.service-icon {
  font-size: 1.2rem;
}

/* Info box */
.info-box {
  margin-top: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 50%);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--info-color);
}

.info-box h4 {
  color: var(--info-color);
  margin-bottom: 15px;
}

.info-box ul {
  margin: 0;
  padding-left: 20px;
}

.info-box li {
  margin-bottom: 8px;
  color: var(--gray-700);
}

/* Génération estimation */
.generate-estimation-section {
  margin-top: 40px;
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: var(--border-radius);
  color: var(--white);
}

.btn-generate-estimation {
  background: var(--white);
  color: var(--primary-color);
  border: none;
  padding: 16px 32px;
  border-radius: var(--border-radius-sm);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  margin-bottom: 10px;
}

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

.generate-help {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Modal estimation */
.estimation-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.estimation-modal-content {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.estimation-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 2px solid var(--gray-200);
}

.estimation-modal-header h2 {
  margin: 0;
  color: var(--gray-800);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-500);
  padding: 5px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-confirm {
  background: linear-gradient(135deg, var(--secondary-color), #38a169);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

/* Progress steps mobile */
.progress-steps-mobile {
  display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .app-container {
    padding: 15px;
  }
  
  .estimation-form {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .app-container {
    padding: 10px;
  }
  
  .header-content {
    padding: 20px 15px;
  }
  
  .logo {
    font-size: 1.8rem;
  }
  
  .tagline {
    font-size: 1rem;
  }
  
  /* Progress steps horizontal scroll sur mobile */
  .progress-steps {
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 10px;
    min-width: 100%;
    scroll-behavior: smooth;
  }
  
  .step {
    flex-shrink: 0;
    min-width: 120px;
  }
  
  .step-label {
    font-size: 0.85rem;
  }
  
  .step:not(:last-child)::after {
    display: none;
  }
  
  .estimation-form {
    padding: 20px 15px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .step-header h2 {
    font-size: 1.4rem;
  }
  
  .step-header p {
    font-size: 1rem;
  }
  
  /* Services grid mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .service-item {
    padding: 12px;
    font-size: 0.9rem;
  }
  
  /* Modal responsive */
  .estimation-modal {
    padding: 10px;
  }
  
  .estimation-modal-content {
    max-height: 95vh;
  }
  
  .estimation-modal-header {
    padding: 20px 15px;
  }
  
  .estimation-result {
    padding: 20px 15px;
  }
  
  .estimation-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-confirm {
    width: 100%;
    font-size: 0.95rem;
  }
  
  .form-navigation {
    padding: 15px;
    margin-top: 20px;
  }
  
  .form-navigation .btn-primary,
  .form-navigation .btn-secondary {
    width: 48%;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .app-container {
    padding: 5px;
  }
  
  .header-content {
    padding: 15px 10px;
  }
  
  .logo {
    font-size: 1.6rem;
  }
  
  .progress-container {
    margin-bottom: 20px;
  }
  
  .progress-steps {
    padding: 15px 10px;
    gap: 15px;
  }
  
  .step {
    min-width: 100px;
  }
  
  .step-number {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
  
  .step-label {
    font-size: 0.75rem;
  }
  
  .estimation-form {
    padding: 15px 10px;
  }
  
  .step-header {
    margin-bottom: 25px;
  }
  
  .step-header h2 {
    font-size: 1.2rem;
  }
  
  .form-grid {
    gap: 15px;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    padding: 12px 14px;
    font-size: 16px; /* Évite le zoom sur iOS */
  }
  
  .checkbox-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .checkbox-label {
    padding: 12px;
    font-size: 0.9rem;
  }
  
  .toggle-label {
    padding: 14px 12px;
    font-size: 0.95rem;
  }
  
  .summary-content {
    grid-template-columns: 1fr;
  }
  
  .estimation-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .summary-card {
    padding: 15px;
  }
  
  .summary-card-icon {
    font-size: 1.5rem;
  }
  
  .summary-card-title {
    font-size: 0.85rem;
  }
  
  .summary-card-value {
    font-size: 1.2rem;
  }
  
  /* Styles responsive pour les nouvelles sections de la modal */
  .estimation-total-highlight {
    padding: 24px 15px;
    margin-bottom: 24px;
  }
  
  .total-price {
    font-size: 2.5rem;
  }
  
  .estimation-essentials {
    gap: 16px;
    margin-bottom: 24px;
  }
  
  .essential-item {
    padding: 16px;
    gap: 12px;
  }
  
  .essential-icon {
    font-size: 1.5rem;
    min-width: 35px;
  }
  
  .essential-title {
    font-size: 0.8rem;
  }
  
  .essential-value {
    font-size: 1rem;
  }
  
  .cat-fields,
  .treatment-fields {
    grid-template-columns: 1fr;
  }
  
  .cat-card,
  .treatment-card {
    padding: 15px;
  }
  
  .form-section {
    padding: 20px 15px;
  }
  
  .section-title {
    font-size: 1.1rem;
  }
  
  .services-included {
    padding: 20px 15px;
  }
  
  .info-box {
    padding: 15px;
  }
  
  .generate-estimation-section {
    padding: 25px 15px;
  }
  
  .btn-generate-estimation {
    padding: 14px 24px;
    font-size: 1rem;
  }
  
  /* Navigation mobile */
  .form-navigation {
    padding: 15px 10px;
    flex-direction: row;
    justify-content: space-between;
  }
  
  .form-navigation .btn-primary,
  .form-navigation .btn-secondary {
    width: auto;
    min-width: 120px;
  }
  
  /* Toast mobile */
  .toast-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }
  
  .toast {
    max-width: none;
    margin-bottom: 5px;
  }
}

/* Très petits écrans */
@media (max-width: 360px) {
  .progress-steps {
    gap: 10px;
  }
  
  .step {
    min-width: 80px;
  }
  
  .step-label {
    display: none;
  }
  
  .estimation-summary {
    grid-template-columns: 1fr;
  }
  
  .form-navigation .btn-primary,
  .form-navigation .btn-secondary {
    min-width: 100px;
    padding: 12px 16px;
    font-size: 0.85rem;
  }
}

/* Address Suggestions */
.address-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-top: none;
  border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: var(--shadow-lg);
}

.address-suggestions.show {
  display: block;
}

.address-suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.address-suggestion-item:hover {
  background: var(--gray-50);
  color: var(--primary-color);
}

.address-suggestion-item:last-child {
  border-bottom: none;
}

/* Distance Info */
.distance-info {
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  border-left: 4px solid;
  display: none;
}

.distance-info.show {
  display: block;
}

.distance-info {
  background: #e6f7ff;
  color: #0066cc;
  border-left-color: #0066cc;
}

.distance-info.warning {
  background: #fff7e6;
  color: #d46b08;
  border-left-color: #faad14;
}

.distance-info.far {
  background: #fff7e6;
  color: #d46b08;
  border-left-color: #faad14;
}

.distance-info.error {
  background: #fff2f0;
  color: #cf1322;
  border-left-color: #ff4d4f;
}

/* Form group positioning for address */
.form-group {
  position: relative;
}

/* Mode paysage mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .step-header {
    margin-bottom: 20px;
  }
  
  .step-header h2 {
    font-size: 1.3rem;
    margin-bottom: 5px;
  }
  
  .step-header p {
    font-size: 0.9rem;
  }
  
  .form-grid {
    gap: 15px;
  }
}