/* style.css */

body {
  font-family: 'Nunito', sans-serif;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: url('images/background.png') no-repeat center center fixed;
  background-size: cover;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.75); /* Белый с прозрачностью */
  z-index: -1;
}

.container {
  max-width: 700px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

h1 {
  text-align: left;
  color: #2c3e50;
  font-size: 2.5rem;
}

h4 {
  color: #2c3e50;
}

h3 {
  color: #2c3e50;
}

.section {
  margin-bottom: 2rem;
}

label {
  display: block;
  margin-bottom: 0.25rem;
  margin-left: 0.1rem;
  font-weight: 500;
  color: #34495e;
}

input[type="text"],
input[type="email"],
select {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

button {
  background-color: #2ecc71;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.selectors {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.selector {
  flex: 1;
  min-width: 140px;
}

#add-option {
  background-color: #3498db;
  width: 100%;
}

#add-option {
  background-color: #007bff; /* насыщенный синий */
  color: #fff;
  font-size: 1.1em;
  font-weight: 600;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 100%;
}

#add-option:hover {
  background-color: #0056b3; /* чуть темнее при наведении */
  transform: scale(1.02);
}

#add-option:active {
  transform: scale(0.98);
  background-color: #004a9f;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  position: relative;
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.modal-content input {
  margin-bottom: 1rem;
}

#modal-success-message {
  position: relative;
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
  display: none; /* изначально скрыт */
}

.option-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: #34495e;
  margin-bottom: 0.25rem;
}

.remove-option-btn {
  background: none;
  border: none;
  font-size: 1rem;
  color: #999;
  cursor: pointer;
  padding: 0;
  margin-left: 1rem;
  margin-right: 4px;
}

.remove-option-btn:hover {
  color: #e74c3c;
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #333;
}

#open-map-btn {
  background-color: #007bff; /* насыщенный синий */
  color: #fff;
  font-size: 1.1em;
  font-weight: 600;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 100%;
}

#open-map-btn:hover {
  background-color: #0056b3; /* чуть темнее при наведении */
  transform: scale(1.02);
}

#open-map-btn:active {
  transform: scale(0.98);
  background-color: #004a9f;
}

#submit-btn {
  width: 100%;
  font-size: 1.1em;
  font-weight: 600;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 100%;
}

/* Стили для активной кнопки */
#submit-btn.active:hover {
  background-color: #27ae60; /* чуть темнее при наведении */
  transform: scale(1.02);
}

#submit-btn.active:active {
  transform: scale(0.98);
  background-color: #004a9f;
}

/* Стили для неактивной (disabled) кнопки */
#submit-btn.disabled,
#submit-btn:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  transform: none;
}


img.preview-map {
  max-height: 260px;
}

.leaflet-attribution-flag { display: none !important; }