h2 {
  margin-bottom: 30px;
}

.apply-form .info-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.apply-form .form-block {
  margin-bottom: 0 !important;
}

.fio-row {
  margin-bottom: 0;
}

.wd-50 {
  margin-bottom: 0;
}

.fio-row {
  display: flex;
  gap: 10px;
}

.fio-row .form-block {
  flex: 1;
  margin-bottom: 0;
}

.fio-row .form-block .form-block-title {
  line-height: 2.4rem;
  margin-bottom: 8px;
}

.fio-row .form-block .input-block input {
  height: 42px;
  font-size: 1.8rem;
  line-height: 2.4rem;
  padding: 0 12px;
  border: 1px solid #34404c;
}

.city-map-inputs {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.city-select {
  flex: 1;
}

.map-button {
  height: 42px;
  padding: 0 20px;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

select {
  padding: 0 12px;
  height: 42px;
  width: 100%;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 2.4rem;
  color: #34404c;
  border: 1px solid rgba(52, 64, 76, 0.6);
  background-color: #fff;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%2334404c" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  border-radius: 0;
}

select:focus {
  outline: none;
  border-color: #18a763;
}

select option {
  padding: 8px 12px;
  font-size: 1.8rem;
  font-weight: 500;
  color: #34404c;
  background-color: #fff;
}

select:disabled {
  opacity: 0.4;
  cursor: default;
}

.form-block-error {
  display: inline-block;
  visibility: hidden;
  margin-top: 6px;
  color: #d82335;
  font-weight: 500;
}

.form-block:has(textarea:not(:placeholder-shown):invalid) .form-block-error,
.form-block:has(input:not(:placeholder-shown):invalid) .form-block-error,
.form-block:has(select:user-invalid) .form-block-error {
  visibility: visible;
}

.form-block-required {
  color: #18a763;
  margin-left: 3px;
}

.drag-drop-area {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
  min-height: 120px;
  display: flex;
  /* flex-direction: column; */
  justify-content: center;
  align-items: center;
}

.drag-drop-area.dragover {
  border-color: #18a763;
  background-color: #f0f8f4;
}

.drag-drop-content p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.file-input-trigger {
  color: #18a763;
  cursor: pointer;
  text-decoration: underline;
}

.file-input-trigger:hover {
  color: #0d7a4a;
}

.file-list {
  margin-top: 15px;
  text-align: left;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 14px;
}

.file-item:last-child {
  margin-bottom: 0;
}

.file-name {
  flex: 1;
  margin-right: 10px;
  word-break: break-all;
}

.file-remove {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-remove:hover {
  color: #c82333;
}

@media (max-width: 768px) {
  .fio-row {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .fio-row .form-block {
    margin-bottom: 0;
  }

  .city-map-block {
    width: 100%;
  }

  .city-map-inputs {
    /* flex-direction: column; */
    gap: 15px;
  }

  .city-select {
    width: 100%;
  }

  #selectOnMap {
    width: 180px;
    padding: initial;
  }

  .apply-form .info-list {
    gap: 30px;
  }

  .planting h2 {
    margin-bottom: 30px;
  }
}

.custom-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  background-color: #dc3545;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 400px;
  min-width: 300px;
}

.custom-alert.success {
  background-color: #18a763;
  box-shadow: 0 4px 12px rgba(24, 167, 99, 0.3);
}

.custom-alert.show {
  transform: translateX(0);
  opacity: 1;
}

.alert-content {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 12px;
}

.alert-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.alert-message {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.alert-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.alert-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .custom-alert {
    top: 30px;
    right: 10px;
    left: 10px;
    max-width: none;
    min-width: auto;
    transform: translateY(-100px);
  }

  .custom-alert.show {
    transform: translateY(0);
  }
}

.map-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.map-popup.show {
  display: flex;
  opacity: 1;
}

.map-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.map-popup-content {
  position: relative;
  z-index: 2;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  max-height: 90%;
  width: 1000px;
  height: 700px;
  margin: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.map-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 1px solid #e0e0e0;
  background-color: #f8f9fa;
}

.map-popup-header h3 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  color: #34404c;
}

.map-popup-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.map-popup-close:hover {
  background-color: #e0e0e0;
  color: #333;
}

.map-popup-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.yandex-map {
  flex: 1;
  min-height: 400px;
  border: none;
}

.map-selection-info {
  padding: 20px 30px;
  background-color: #f8f9fa;
  border-top: 1px solid #e0e0e0;
}

.selected-city,
.selected-project {
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #34404c;
}

.selected-city:last-child,
.selected-project:last-child {
  margin-bottom: 0;
}

.selected-city strong,
.selected-project strong {
  color: #18a763;
  font-weight: 600;
}

.map-popup-footer {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  padding: 20px 30px;
  border-top: 1px solid #e0e0e0;
  background-color: #ffffff;
}

@media screen and (max-width: 768px) {
  .map-popup-content {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    border-radius: 0;
    margin: 0;
  }

  .map-popup-header {
    padding: 15px 20px;
  }

  .map-popup-header h3 {
    font-size: 1.6rem;
  }

  .map-popup-close {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .map-selection-info {
    padding: 15px 20px;
  }

  .selected-city,
  .selected-project {
    font-size: 1.3rem;
  }

  .map-popup-footer {
    padding: 15px 20px;
    flex-direction: column;
  }

  .map-popup-footer .btn {
    width: 100%;
    margin: 0;
  }

  .yandex-map {
    min-height: 300px;
  }
}

@media screen and (max-width: 480px) {
  .map-popup-header {
    padding: 12px 15px;
  }

  .map-popup-header h3 {
    font-size: 1.4rem;
  }

  .map-selection-info {
    padding: 12px 15px;
  }

  .selected-city,
  .selected-project {
    font-size: 1.2rem;
  }

  .map-popup-footer {
    padding: 12px 15px;
  }

  .yandex-map {
    min-height: 250px;
  }
}
