* {
  box-sizing: border-box;
}
/* Page Container */
.search-update-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

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

.search-update-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #00394d;
}

.search-update-header .subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.logo {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
}

/* Update Form Card */
.update-form-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  padding: 40px;
  margin: 0 auto;
  max-width: 1000px;
}

/* Form styles now handled by Design System - see /public/css/design-system/form.css */

/* Inactive Search Card */
.inactive-search-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  padding: 40px 30px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.inactive-icon {
  font-size: 3rem;
  color: #f39c12;
  margin-bottom: 20px;
}

.inactive-search-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00394d;
  margin-bottom: 15px;
}

.inactive-search-card p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 30px;
}

.action-cta {
  margin-top: 20px;
}

/* Locality Search and Map Selector Styles */
.inputWrapper {
  margin-top: 10px;
}

#selectedAreasDisplay {
  min-height: 40px;
  border: 2px dashed #e8e8e8;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 15px;
  background-color: #fafafa;
}

#selectedAreasDisplay:empty::before {
  content: "Aucune zone sélectionnée - Recherchez une localité ou cliquez sur 'Ouvrir la carte'";
  color: #999;
  font-style: italic;
}

#selectedAreasDisplay.error {
  border-color: #e74c3c !important;
  background-color: #fdf2f2 !important;
}

#selectedAreasDisplay.error:empty::before {
  color: #e74c3c;
  content: '⚠️ Vous devez sélectionner au moins une zone géographique';
}

.selectedAreasList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.selectedAreaItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.9rem;
}

.selectedAreaItem:last-child {
  margin-bottom: 0;
}

.removeAreaBtn {
  background: #e74c3c;
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.removeAreaBtn:hover {
  background: #c0392b;
}

#openMapSelectorBtn {
  width: 100%;
  margin-top: 5px;
}

/* LocalitySearch specific styles */
#localitySearchContainer {
  margin-bottom: 15px;
}

/* More Criteria Toggle */
.sp-more-criteria-toggle {
  margin: 24px 0;
  text-align: center;
}

.sp-more-criteria-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--sp-border-color, #e2e8f0);
  border-radius: 8px;
  color: var(--sp-text-secondary, #64748b);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sp-more-criteria-btn:hover {
  background: var(--sp-bg-secondary, #f8fafc);
  border-color: var(--sp-primary, #3aa1a6);
  color: var(--sp-primary, #3aa1a6);
}

.sp-more-criteria-btn__icon {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.sp-more-criteria-btn--open .sp-more-criteria-btn__icon {
  transform: rotate(180deg);
}

.sp-more-criteria-content {
  animation: slideDown 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .search-update-container {
    padding: 40px 15px;
  }

  .search-update-header h1 {
    font-size: 2rem;
  }

  .update-form-card {
    padding: 30px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

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

  .form-section h4 {
    font-size: 1rem;
  }

  .selectedAreaItem {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .removeAreaBtn {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }
}
