/* ====================== */
/* СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА universalOrderModal */
/* ====================== */

.custom-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(5px);
}

.custom-modal-content {
  background: linear-gradient(135deg, #1a1a1a, #222);
  margin: 5% auto;
  padding: 40px;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  position: relative;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
  color: #f0f0f0;
  animation: modalAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.custom-modal-header {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(218, 182, 114, 0.2);
}

.custom-modal-title {
  color: #dab672;
  margin: 0;
  font-size: 1.8rem;
}

.custom-close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
  transition: all 0.3s ease;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
  padding: 0;
}

.custom-close-modal:hover {
  color: #dab672;
  transform: rotate(180deg);
  background: rgba(218, 182, 114, 0.1);
}

.custom-modal-body {
  padding: 0 10px 20px 0;
  overflow-y: auto;
  flex-grow: 1;
  scrollbar-width: thin;
  scrollbar-color: #dab672 #444;
}

.custom-modal-body::-webkit-scrollbar {
  width: 14px;
}

.custom-modal-body::-webkit-scrollbar-track {
  background: #444;
  border-radius: 5px;
  margin: 12px 2px;
}

.custom-modal-body::-webkit-scrollbar-thumb {
  background: #dab672;
  border-radius: 5px;
  border: 3px solid #444;
  min-height: 40px;
}

.custom-modal-body::-webkit-scrollbar-thumb:hover {
  background: #c9a45e;
  border: 3px solid #555;
}

.custom-modal-actions {
  display: flex;
  gap: 15px;
  padding: 25px 0 0;
  border-top: 1px solid #444;
  margin-top: 25px;
}

.custom-btn-primary {
  flex: 1;
  padding: 12px;
  background: #dab672;
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1.05rem;
}

.custom-btn-primary:hover {
  background: #c9a45e;
  transform: translateY(-2px);
}

.custom-btn-secondary {
  flex: 1;
  padding: 12px;
  background: #444;
  color: #ccc;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1.05rem;
}

.custom-btn-secondary:hover {
  background: #555;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feedback-form .form-group {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #ccc;
  font-weight: 500;
}

.custom-input,
.custom-textarea {
  width: 100%;
  padding: 14px 18px;
  background: #333;
  border: 1px solid #444;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  transition: border 0.3s;
}

.custom-textarea {
  resize: vertical;
  min-height: 100px;
  max-height: 300px;
}

.custom-input:focus,
.custom-textarea:focus {
  outline: none;
  border-color: #dab672;
  box-shadow: 0 0 0 2px rgba(218, 182, 114, 0.2);
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}