/*!*************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js!./style.css ***!
  \*************************************************************/
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  display: flex;
  justify-content: center;
  padding: 20px;
  margin: 0;
}

/* Стили для iframe */
iframe {
  border: none;
  width: 100%;
  height: 100%;
  min-height: 600px;
}

body,
input {
  font-family: "Inter", sans-serif !important;
}

h2 {
  padding: 14px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1677ff 0%, #0056cc 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(22, 119, 255, 0.3);
}

#mainContent {
  width: 100%;
}

.upload-box {
  width: 100%;
}

.error-messageА {
  color: red;
  font-size: 12px;
  margin-top: 4px;
}

.phone-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.phone-modal.active {
  display: flex;
}

.phone-modal-content {
  background: white;
  padding: 0;
  border-radius: 16px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.image-upload-container .upload-box:after {
  display: none;
}

/* Стили для двухэтапного процесса в модалке */
.phone-modal-header {
  background: linear-gradient(135deg, #1677ff 0%, #0056cc 100%);
  color: white;
  padding: 24px 30px;
  text-align: center;
  position: relative;
}

.phone-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.phone-modal-header::before {
  content: "📞";
  font-size: 24px;
  display: block;
  margin-bottom: 8px;
}

/* Стили для кнопки повторной отправки */
#resendCodeBtn {
  position: relative;
  transition: all 0.3s ease;
}

#resendCodeBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f8f9fa;
  color: #6c757d;
  border-color: #dee2e6;
}

#resendCodeBtn:not(:disabled):hover {
  background: #e9ecef;
  border-color: #adb5bd;
  transform: translateY(-1px);
}

#resendTimer {
  font-weight: 600;
  color: #1677ff;
}

/* Анимация для перехода между этапами */
.phone-modal-body {
  transition: all 0.3s ease;
}

.phone-modal-body.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

.phone-modal-body.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Стили для отображения номера телефона */
#displayPhone {
  font-weight: 600;
  color: #1677ff;
  background: rgba(22, 119, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.phone-modal-body {
  padding: 30px;
}

.phone-modal-field {
  margin-bottom: 20px;
}

.phone-modal-field label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
}

.phone-modal-field input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 2px solid #e1e5e9;
  font-size: 16px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.phone-modal-field input:focus {
  outline: none;
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.phone-modal-field .sub-label {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
  display: block;
}

.phone-modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.phone-modal-buttons .btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.phone-modal-buttons .btn.outline {
  background: #f8f9fa;
  color: #495057;
  border: 2px solid #e1e5e9;
}

.phone-modal-buttons .btn.outline:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

.phone-modal-buttons .btn.primary {
  background: linear-gradient(135deg, #1677ff 0%, #0056cc 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
}

.phone-modal-buttons .btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(22, 119, 255, 0.4);
}

.phone-modal-buttons .btn.primary:active {
  transform: translateY(0);
}

.phone-modal .error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 6px;
  display: block;
}

@media (max-width: 480px) {
  .phone-modal-content {
    margin: 20px;
    max-width: none;
  }

  .phone-modal-header {
    padding: 20px;
  }

  .phone-modal-body {
    padding: 24px;
  }

  .phone-modal-buttons {
    flex-direction: column;
  }
}

.modal {
  background: white;
  padding: 0;
  width: 100%;
  animation: formSlideIn 0.4s ease-out;
}

@keyframes formSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Улучшенный хедер */
.modal h2 {
  text-align: center;
  margin: 0;
  padding: 25px 30px 20px;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  background: linear-gradient(135deg, #1677ff 0%, #0056cc 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.modal h2::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Улучшенная форма */
.form {
  padding: 0 30px 30px;
  background: white;
  width: 100%;
  box-sizing: border-box;
}

.form label {
  display: block;
  font-weight: 600;
  margin-bottom: 14px;
  margin-top: 18px;
  color: #1a1a1a;
  font-size: 16px;
  position: relative;
}

.form label::after {
  content: " *";
  color: #dc3545;
  font-weight: 700;
}

.form label.optional::after {
  content: " (необязательно)";
  color: #6c757d;
  font-weight: 400;
  font-size: 12px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid #e1e5e9;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: #1677ff;
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.sub-label {
  font-size: 12px;
  color: #6c757d;
  padding-top: 6px;
  display: block;
}

/* Улучшенные кнопки */
.form-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 35px;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.btn {
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-width: 130px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn.primary {
  background: linear-gradient(135deg, #1677ff 0%, #0056cc 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(22, 119, 255, 0.3);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(22, 119, 255, 0.4);
}

.btn.primary:active {
  transform: translateY(-1px);
}

.btn.outline {
  background: #f8f9fa;
  color: #495057;
  border: 2px solid #e1e5e9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn.outline:hover {
  background: #e9ecef;
  border-color: #adb5bd;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.form-step {
  display: none;
  animation: fadeIn 0.3s ease-out;
  width: 100%;
  margin-top: 20px;
  box-sizing: border-box;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-step.active {
  display: block;
}

.radio-group {
  display: flex;
  gap: 20px;
  margin: 15px 0;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
  color: #495057;
  transition: color 0.2s ease;
}

.radio-group label:hover {
  color: #1677ff;
}

.radio-group input[type="radio"] {
  width: auto;
  margin: 0;
  accent-color: #1677ff;
}

.category-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.category-row:hover {
  border-color: #1677ff;
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.1);
}

.row-top,
.row-bottom {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.row-top select {
  flex: 1;
  padding: 10px 12px;
  font-size: 14px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  background: white;
}

.delete-btn {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 18px;
  cursor: pointer;
  height: 40px;
  width: 40px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.delete-btn:hover {
  background: #dc3545;
  color: white;
  transform: scale(1.1);
}

.weight-input,
.price-input {
  flex: 1;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 2px solid #e1e5e9;
  transition: all 0.2s ease;
}

.price-input {
  background-color: #f8f9fa;
  color: #495057;
  border-color: #dee2e6;
  font-weight: 500;
}

.date-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.date-row:hover {
  border-color: #1677ff;
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.1);
}

.date-input {
  flex: 0 1 40%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 2px solid #e1e5e9;
  font-size: 14px;
  background: white;
  min-width: 120px;
  transition: all 0.2s ease;
}

.date-input:invalid {
  border-color: #dc3545;
  background-color: #fff5f5;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.date-input:focus {
  outline: none;
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.date-input:focus:invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.time-input {
  flex: 0 1 15%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 2px solid #e1e5e9;
  font-size: 14px;
  background: white;
  min-width: 120px;
}

/* Принудительное отображение 24-часового формата */
.time-input::-webkit-datetime-edit-hour-field,
.time-input::-webkit-datetime-edit-minute-field {
  font-family: inherit;
}

.time-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

/* Для Firefox */
.time-input::-moz-datetime-edit-hour-field,
.time-input::-moz-datetime-edit-minute-field {
  font-family: inherit;
}

.comment-box {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 12px;
  border: 2px solid #e1e5e9;
  resize: vertical;
  background-color: #fff;
  box-sizing: border-box;
  min-height: 100px;
  font-family: inherit;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.add-category-btn {
  background: linear-gradient(135deg, #1677ff 0%, #0056cc 100%);
  border: none;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.3);
}

.add-category-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.4);
}

.category-autocomplete {
  position: relative;
  flex: 1;
}

.category-autocomplete input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  background: white;
}

.category-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid #e1e5e9;
  border-top: none;
  max-height: 150px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-suggestions div {
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.category-suggestions div:hover {
  background-color: #f8f9fa;
}

.date-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  margin-top: 15px;
}

.add-date-btn {
  background: linear-gradient(135deg, #1677ff 0%, #0056cc 100%);
  border: none;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.3);
}

.add-date-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.4);
}

.image-upload-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
  width: 100%;
  box-sizing: border-box;
}

.upload-box {
  width: 80px;
  height: 80px;
  border: 2px dashed #1677ff;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  font-size: 32px;
  color: #1677ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.upload-box:hover {
  border-color: #0056cc;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  transform: scale(1.05);
}

.upload-box::before {
  content: "+";
  font-size: 32px;
  color: #1677ff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.image-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  border: 2px solid #e1e5e9;
  overflow: hidden;
  flex-shrink: 0;
  background: white;
  transition: all 0.2s ease;
}

.image-thumb:hover {
  border-color: #1677ff;
  transform: scale(1.05);
}

.image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: all 0.2s ease;
}

.image-thumb:hover .remove-btn {
  display: flex;
}

.remove-btn:hover {
  background: #c82333;
  transform: scale(1.1);
}

.address-autocomplete {
  position: relative;
  width: 100%;
}

.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid #e1e5e9;
  border-top: none;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  display: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.suggestions div {
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.suggestions div:hover {
  background-color: #f8f9fa;
}

.error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 6px;
  display: block;
  font-weight: 500;
}

/* Улучшенная респонсивность */
@media (max-width: 1200px) {
  .modal {
  }
}

@media (max-width: 768px) {
  body {
    padding: 15px 10px;
  }

  .modal {
  }

  .form {
    padding: 0 20px 25px;
  }

  .modal h2 {
    padding: 20px 20px 15px;
    font-size: 18px;
  }

  .form-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
    min-width: auto;
    padding: 12px 20px;
    font-size: 14px;
  }

  .category-row,
  .date-row {
    padding: 15px;
  }

  .row-top,
  .row-bottom {
    gap: 10px;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
  }

  .date-row {
    flex-direction: column;
    align-items: stretch;
  }

  .date-input,
  .time-input {
    flex: none;
    width: 100%;
    min-width: auto;
  }

  .category-header,
  .date-header {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .add-category-btn,
  .add-date-btn {
    width: 100%;
    text-align: center;
  }

  .image-upload-container {
    justify-content: flex-start;
    width: 100%;
  }

  .upload-box,
  .image-thumb {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px 5px;
  }

  .modal {
  }

  .form {
    padding: 0 15px 20px;
  }

  .modal h2 {
    padding: 15px 15px 10px;
    font-size: 16px;
  }

  .form input,
  .form select,
  .form textarea {
    padding: 12px 14px;
    font-size: 14px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .category-row,
  .date-row {
    padding: 12px;
  }

  .upload-box,
  .image-thumb {
    width: 60px;
    height: 60px;
  }

  .upload-box::before {
    font-size: 24px;
  }
}

@media (max-width: 360px) {
  .modal {
    min-width: 260px;
  }

  .form {
    padding: 0 10px 15px;
  }

  .modal h2 {
    padding: 12px 12px 8px;
    font-size: 15px;
  }

  .form input,
  .form select,
  .form textarea {
    padding: 10px 12px;
    font-size: 13px;
  }

  .btn {
    padding: 8px 12px;
    font-size: 12px;
  }
}

.phone-modal-field input:focus {
  outline: none;
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.phone-modal-field input:disabled {
  background-color: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
  border-color: #dee2e6;
}

.phone-modal-field input:disabled:focus {
  border-color: #dee2e6;
  box-shadow: none;
  transform: none;
}

.phone-modal-field .sub-label {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
  display: block;
}

.confirmation-message {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border: 1px solid #90caf9;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: messageSlideIn 0.4s ease-out;
}

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

.message-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.message-text {
  flex: 1;
}

.message-text strong {
  display: block;
  color: #1976d2;
  font-size: 14px;
  margin-bottom: 4px;
  font-weight: 600;
}

.message-text p {
  margin: 0;
  color: #424242;
  font-size: 13px;
  line-height: 1.4;
}

.otp-container {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 10px 0;
}

.otp-input {
  width: 50px !important;
  height: 50px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  border-radius: 12px;
  border: 2px solid #e1e5e9;
  background: white;
  transition: all 0.2s ease;
  box-sizing: border-box;
  padding: 0;
  color: #1a1a1a;
}

.otp-input:focus {
  outline: none;
  border-color: #1677ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
  transform: scale(1.05);
}

.otp-input.error {
  border-color: #dc3545;
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
}

@media (max-width: 480px) {
  .otp-container {
    gap: 6px;
  }

  .otp-input {
    width: 45px !important;
    height: 45px;
    font-size: 18px;
  }
}

/* Стили для блока успешной отправки */
.success-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.success-modal.active {
  display: flex;
}

.success-modal-content {
  background: white;
  padding: 0;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

/* Стили для префиксов полей */
.input-with-prefix {
  position: relative;
  flex: 1;
}

.input-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
  z-index: 1;
  pointer-events: none;
}

.input-with-prefix input {
  padding-left: 35px;
}

/* Улучшенный блок погрузки */
.loading-section {
  border-radius: 12px;
  transition: all 0.2s ease;
}

.loading-toggle {
  display: flex;
  width: 100%;
  margin-top: 0;
}

.loading-switch label::after {
  display: none;
}

.loading-label {
  display: block;
  font-weight: 600;
  margin-bottom: 15px;
  color: #1a1a1a;
  font-size: 16px;
}

/* Стили для переключателя погрузки */
.loading-switch {
  display: flex;
  align-items: center;
  gap: 15px;
}

.loading-switch input[type="checkbox"] {
  display: none;
}

.switch-label {
  display: flex !important;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px 16px;
  background: white;
  border-radius: 8px;
  border: 2px solid #e1e5e9;
  transition: all 0.3s ease;
  width: 100%;
}

.switch-label:hover {
  border-color: #1677ff;
  background: #f8f9fa;
}

.switch-slider {
  position: relative;
  width: 50px;
  height: 26px;
  background: #e1e5e9;
  border-radius: 13px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.switch-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.loading-switch input[type="checkbox"]:checked + .switch-label .switch-slider {
  background: linear-gradient(135deg, #1677ff 0%, #0056cc 100%);
}

.loading-switch
  input[type="checkbox"]:checked
  + .switch-label
  .switch-slider::before {
  transform: translateX(24px);
}

.loading-switch input[type="checkbox"]:checked + .switch-label {
  border-color: #1677ff;
  background: #f0f8ff;
}

.switch-text {
  font-weight: 500;
  color: #495057;
  font-size: 14px;
  transition: color 0.3s ease;
  font-weight: 600;
}

.loading-switch input[type="checkbox"]:checked + .switch-label .switch-text {
  color: #1677ff;
}

/* Улучшенные иконки удаления */
.category-delete-btn,
.date-delete-btn {
  background: #dc3545;
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
  height: 40px;
  width: 40px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.category-delete-btn:hover,
.date-delete-btn:hover {
  background: #c82333;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.category-delete-btn svg,
.date-delete-btn svg {
  width: 16px;
  height: 16px;
}

/* Блок успешной отправки */
.success-block-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.success-block {
  border-radius: 8px;
  padding: 24px;
  animation: formSlideIn 0.4s ease-out;
}

.success-block h3 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.success-block p {
  line-height: 18px;
  margin-bottom: 12px;
  color: #333;
  font-size: 14px;
}

.success-block .grey-text {
  color: grey;
  font-size: 14px;
}

.success-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.success-link {
  text-decoration: none;
  display: block;
}

.success-btn {
  width: 100%;
  font-size: 16px;
  padding: 12px 20px;
}

.close-button-container {
  width: 100%;
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.close-button-container .btn {
  float: right;
}

/* Адаптивность для блока успешной отправки */
@media (max-width: 768px) {
  .success-modal-content {
    margin: 20px;
    max-width: none;
  }

  .input-with-prefix,
  .category-autocomplete {
    width: 100%;
  }

  .success-block {
    padding: 20px;
  }

  .success-buttons {
    gap: 10px;
  }

  .success-btn {
    font-size: 14px;
    padding: 10px 16px;
  }

  .loading-options {
    gap: 10px;
  }

  .loading-option {
    padding: 10px 14px;
  }

  .loading-option-text {
    font-size: 13px;
  }

  /* Адаптивность для переключателя */
  .loading-switch {
    gap: 12px;
  }

  .switch-label {
    padding: 10px 14px;
    min-width: 180px;
  }

  .switch-text {
    font-size: 13px;
  }
}

/* Стили для встраивания в iframe */
.iframe-container {
  width: 100%;
  height: 100%;
  min-height: 600px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Улучшенные анимации для iframe */
@keyframes iframeFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.iframe-container {
  animation: iframeFadeIn 0.5s ease-out;
}

/* Стили для мобильных устройств в iframe */
@media (max-width: 480px) {
  .iframe-container {
    min-height: 700px;
  }

  .modal {
    margin: 0;
  }
}

/* Стили для секции повторной отправки кода */
.resend-code-section {
  margin: 20px 0;
  text-align: center;
}

.resend-btn {
  background: #f8f9fa !important;
  color: #6c757d !important;
  border: 2px solid #dee2e6 !important;
  font-size: 14px;
  padding: 8px 16px;
  transition: all 0.3s ease;
}

.resend-btn:hover:not(:disabled) {
  background: #e9ecef !important;
  border-color: #adb5bd !important;
  color: #495057 !important;
}

.resend-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f8f9fa !important;
  color: #6c757d !important;
  border-color: #dee2e6 !important;
}

#resendTimer {
  font-weight: 600;
  color: #6c757d;
}

/* Стили для алертов */
.alert-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
  width: 100%;
}

.alert {
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-left: 4px solid;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: alertSlideIn 0.3s ease-out;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.alert.error {
  border-left-color: #dc3545;
  background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

.alert.success {
  border-left-color: #28a745;
  background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
}

.alert.warning {
  border-left-color: #ffc107;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.alert.info {
  border-left-color: #17a2b8;
  background: linear-gradient(135deg, #f0f9ff 0%, #bae6fd 100%);
}

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

.alert.error .alert-icon {
  color: #dc3545;
}

.alert.success .alert-icon {
  color: #28a745;
}

.alert.warning .alert-icon {
  color: #ffc107;
}

.alert.info .alert-icon {
  color: #17a2b8;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 600;
  font-size: 14px;
  color: #1a1a1a;
}

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

.alert-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #495057;
}

@keyframes alertSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes alertSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.alert.removing {
  animation: alertSlideOut 0.3s ease-in forwards;
}

/* Адаптивность для алертов */
@media (max-width: 480px) {
  .alert-container {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .alert {
    padding: 14px 16px;
    margin-bottom: 8px;
  }

  .alert-title {
    font-size: 13px;
  }
}

/* Стили для чекбокса согласия */
.consent-section {
  margin-top: 20px;
  margin-bottom: 15px;
}

.consent-checkbox {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  color: #495057;
  position: relative;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #e1e5e9;
  transition: all 0.2s ease;
}

.consent-checkbox:hover {
  border-color: #1677ff;
  background: #f0f8ff;
}

.consent-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: relative;
  height: 20px;
  width: 20px;
  background-color: white;
  border: 2px solid #e1e5e9;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.consent-checkbox:hover .checkmark {
  border-color: #1677ff;
}

.consent-checkbox input:checked ~ .checkmark {
  background-color: #1677ff;
  border-color: #1677ff;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.consent-text {
  flex: 1;
  font-weight: 500;
}

.consent-text a {
  color: #1677ff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.consent-text a:hover {
  color: #0056cc;
  text-decoration: underline;
}

.consent-text a:focus {
  outline: 2px solid #1677ff;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Адаптивность для чекбокса согласия */
@media (max-width: 480px) {
  .consent-checkbox {
    padding: 10px 12px;
    font-size: 13px;
  }

  .checkmark {
    height: 18px;
    width: 18px;
  }

  .checkmark:after {
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
  }
}

/* Стили для заблокированного состояния во время загрузки */
.form.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.form.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 10;
  backdrop-filter: blur(2px);
}

.form.loading::after {
  content: "⏳";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  z-index: 11;
  animation: spin 1s linear infinite;
}

/* Стили для заблокированных элементов */
input:disabled,
textarea:disabled,
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f8f9fa;
  color: #6c757d;
  border-color: #dee2e6;
}

input:disabled:focus,
textarea:disabled:focus {
  outline: none;
  border-color: #dee2e6;
  box-shadow: none;
}

/* Стили для кнопки в состоянии загрузки */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Анимация вращения */
@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Стили для чекбокса "Бесплатно" */
.free-checkbox-container {
  display: flex;
  justify-content: flex-start;
}

.free-checkbox {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  transition: all 0.2s ease;
  user-select: none;
  padding: 4px 0;
  margin: 0 !important;
}

.free-checkbox:hover {
  color: #1677ff;
}

.free-checkbox-input {
  width: 16px !important;
  height: 16px !important;
  margin: 0;
  cursor: pointer;
  accent-color: #1677ff;
  border: 2px solid #e1e5e9;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.free-checkbox-input:checked {
  background-color: #1677ff;
  border-color: #1677ff;
}

.free-checkbox-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.free-checkbox-text {
  font-weight: 500;
  color: inherit;
}

/* Адаптивность для чекбокса "Бесплатно" */
@media (max-width: 768px) {
  .free-checkbox {
    font-size: 13px;
    gap: 6px;
  }

  .free-checkbox-input {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .free-checkbox {
    font-size: 12px;
    gap: 4px;
  }

  .free-checkbox-input {
    width: 13px;
    height: 13px;
  }
}

