@charset "UTF-8";
/* Базовые стили модального окна */
/* line 2, app/assets/stylesheets/modal.scss */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* line 16, app/assets/stylesheets/modal.scss */
.modal-overlay.active {
  opacity: 1;
}

/* line 21, app/assets/stylesheets/modal.scss */
.modal-container {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 50px 55px;
  width: 90%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

/* line 34, app/assets/stylesheets/modal.scss */
.modal-overlay.active .modal-container {
  transform: scale(1);
}

/* line 39, app/assets/stylesheets/modal.scss */
.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: #6B7280;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s ease, background-color 0.2s ease;
}

/* line 57, app/assets/stylesheets/modal.scss */
.modal-close:hover {
  color: #374151;
  background-color: #F3F4F6;
}

/* line 63, app/assets/stylesheets/modal.scss */
.modal-content {
  text-align: center;
}

/* line 67, app/assets/stylesheets/modal.scss */
.modal-title {
  font-size: 32px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 40px;
  line-height: 1.2;
  text-align: center;
}

/* line 76, app/assets/stylesheets/modal.scss */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* line 82, app/assets/stylesheets/modal.scss */
.modal-input-group {
  display: flex;
  flex-direction: column;
}

/* line 87, app/assets/stylesheets/modal.scss */
.modal-submit-group {
  margin: 20px 0 30px 0;
}

/* line 91, app/assets/stylesheets/modal.scss */
.modal-form input.modal-input,
input.modal-input {
  width: 100% !important;
  padding: 18px 28px !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 50px !important;
  font-size: 16px !important;
  background: #ffffff !important;
  transition: all 0.3s ease;
  outline: none !important;
  color: #333333 !important;
  font-weight: 400;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  box-sizing: border-box !important;
  height: 56px !important;
}

/* line 109, app/assets/stylesheets/modal.scss */
.modal-form input.modal-input::placeholder,
input.modal-input::placeholder {
  color: #b8b8b8 !important;
  font-weight: 400;
}

/* line 114, app/assets/stylesheets/modal.scss */
.modal-form input.modal-input:focus,
input.modal-input:focus {
  border-color: #d0d0d0 !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
}

/* line 120, app/assets/stylesheets/modal.scss */
.modal-form input.modal-input:hover,
input.modal-input:hover {
  border-color: #d0d0d0 !important;
}

/* line 124, app/assets/stylesheets/modal.scss */
.modal-form input.modal-input:autofill, .modal-form input.modal-input:-webkit-autofill,
input.modal-input:autofill,
input.modal-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #333333 !important;
}

/* line 131, app/assets/stylesheets/modal.scss */
.modal-submit-button {
  width: 100%;
  padding: 18px 40px;
  background: #d0d0d0;
  color: #888888;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: none;
  height: 56px;
}

/* line 147, app/assets/stylesheets/modal.scss */
.modal-submit-button:hover {
  background: #c0c0c0;
}

/* line 151, app/assets/stylesheets/modal.scss */
.modal-submit-button:not(.disabled) {
  background: #C75B6F;
  color: white;
}

/* line 155, app/assets/stylesheets/modal.scss */
.modal-submit-button:not(.disabled):hover {
  background: #A94A5E;
}

/* line 160, app/assets/stylesheets/modal.scss */
.modal-submit-button.disabled {
  background: #d0d0d0;
  color: #888888;
  cursor: not-allowed;
}

/* line 165, app/assets/stylesheets/modal.scss */
.modal-submit-button.disabled:hover {
  background: #d0d0d0;
}

/* line 171, app/assets/stylesheets/modal.scss */
.modal-agreements {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 5px;
  text-align: left;
}

/* line 179, app/assets/stylesheets/modal.scss */
.modal-agreement-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 12px;
  align-items: start;
}

/* Стиль чекбоксов как на скриншоте */
/* line 187, app/assets/stylesheets/modal.scss */
.modal-checkbox {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #C75B6F;
  border-radius: 50%;
  background-color: white;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s ease;
}

/* line 200, app/assets/stylesheets/modal.scss */
.modal-checkbox:checked {
  border-color: #C75B6F;
  background-color: #C75B6F;
}

/* line 205, app/assets/stylesheets/modal.scss */
.modal-checkbox:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 5px;
  border: solid white;
  border-width: 0 0 2px 2px;
  transform: translate(-50%, -60%) rotate(-45deg);
}

/* line 217, app/assets/stylesheets/modal.scss */
.modal-checkbox:hover {
  border-color: #A94A5E;
}

/* line 222, app/assets/stylesheets/modal.scss */
.modal-agreement-text {
  display: block;
  font-size: 15px;
  color: #666666;
  line-height: 1.4;
  cursor: pointer;
  font-weight: 400;
}

/* line 230, app/assets/stylesheets/modal.scss */
.modal-agreement-text .modal-link {
  color: #C75B6F;
  text-decoration: underline;
  font-weight: 500;
}

/* line 235, app/assets/stylesheets/modal.scss */
.modal-agreement-text .modal-link:hover {
  color: #A94A5E;
  text-decoration: none;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 600px) {
  /* line 244, app/assets/stylesheets/modal.scss */
  .modal-container {
    padding: 35px 25px;
    margin: 20px;
    border-radius: 15px;
  }
  /* line 250, app/assets/stylesheets/modal.scss */
  .modal-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  /* line 255, app/assets/stylesheets/modal.scss */
  .modal-input {
    padding: 16px 20px;
    font-size: 15px;
  }
  /* line 260, app/assets/stylesheets/modal.scss */
  .modal-submit-button {
    padding: 16px 25px;
    font-size: 15px;
  }
  /* line 265, app/assets/stylesheets/modal.scss */
  .modal-agreement-text {
    font-size: 14px;
  }
}
