.form-modal {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  display: none;
  align-items: center;
  height: calc(var(--vh, 1vh) * 100);
  justify-content: center;
  z-index: 200;
  width: auto;
  backdrop-filter: var(--bg-open-modal);
}

.form-modal--content {
  max-width: 500px;
  padding: 30px;
  width: 100%;
  background-color: var(--body-bg);
  position: relative;
  transition: none;
  border-radius: var(--basic-radius);
}
.form-modal--content .icon-close {
  position: absolute;
  right: 10px;
  top: 10px;
  margin: 0;
  padding: 0;
}
.form-modal--content form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.form-modal--content form button {
  max-width: 100%;
}
.form-modal--content form button {
  margin-top: 0px;
}
.form-modal h3 {
  font-weight: 400;
  font-size: 40px;
}
.form-modal h3 span {
  color: red;
}
.form-modal input {
  background: none;
  border: none;
  padding: 20px;
  color: #888888 !important;
  border-bottom: 1px solid #888888;
  transition: var(--basic-transition);
}
.form-modal input:focus {
  border-bottom: 1px solid white;
}
.form-modal {
  padding: 0px 20px;
}
@media (max-width: 480px) {
  .form-modal input {
    padding: 10px;
  }

  .form-modal h3 {
    font-size: 30px;
  }
}

.form-modal.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.form-modal--content .icon-close img {
  width: 24px;
  height: 24px;
}

.form-modal textarea,
.form-modal select {
  background: none;
  padding: 20px;
  color: #888888 !important;
  border: 1px solid #888888;
  transition: var(--basic-transition);
  font-size: 0.875rem;
}

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

.form-modal select {
  color: #888888;
}

.rating-input {
  display: flex;

  gap: 15px;
  color: #ffffff;
  font-size: 0.875rem;
}

.rating-input label {
  line-height: 0;
}

.stars {
  display: flex;
  flex-direction: row-reverse;
  gap: 5px;
}

.stars input {
  display: none;
}

.stars label {
  font-size: 1.2rem;
  color: #888888;
  cursor: pointer;
  transition: color 0.2s ease;
}

.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label {
  color: #facc15;
}
.reviews button {
  margin-top: 5vh;
}

.photo-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

.photo-input label {
  font-size: 14px;
  font-weight: 600;
  color: white;
  line-height: 1.4;
}

.photo-input input[type="file"] {
  display: none;
}

.photo-input .file-input-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: #f8f9fa;
  border: 2px dashed #d1d5db;
  border-radius: 5px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.photo-input .file-input-label:hover {
  background: #e5e7eb;
  border-color: var(--bg-btn-defoult);;
}

.photo-input .file-input-label::before {
  content: "📁 ";
  font-size: 16px;
  margin-right: 8px;
}

.photo-input .file-input-label.has-file {
  background: #e6f0ff;
  border-color: #3b82f6;
  color: #3b82f6;
}

.photo-input .file-name {
  font-size: 13px;
  color: #6b7280;
  margin-top: 8px;
  display: none;
  word-break: break-all;
}

/* Адаптивность */
@media (max-width: 768px) {
  .photo-input {
    gap: 6px;
  }

  .photo-input label {
    font-size: 13px;
  }

  .photo-input .file-input-label {
    padding: 10px 15px;
    font-size: 13px;
  }

  .photo-input .file-name {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .photo-input {
    gap: 5px;
    margin-bottom: 10px;
  }

  .photo-input label {
    font-size: 12px;
  }

  .photo-input .file-input-label {
    padding: 8px 12px;
    font-size: 12px;
  }

  .photo-input .file-name {
    font-size: 11px;
  }
}

@media (max-width: 580px) {
  .form-modal--content {
    padding: 20px;
  }
  .form-modal--content form {
    gap: 16px;
  }
  .form-modal textarea, .form-modal select {
    padding: 15px;
  }

}
