.hidden {
  display: none !important;
}
.open-modal-btn {
  font-family: Montserrat;
  background-color: transparent;
  color: white;
  border: none;
  font-size: 14px;
  cursor: pointer;
}
.open-modal-btn:hover {
  color: #600127;
  transition: 0.9s;
}
.icon-eye {
  width: 20px;
}
.social-group {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}

.social-input {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  overflow: hidden;
}

.social-toggle {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
}

.social-toggle:hover {
  background: #f8f9fa;
}

.social-toggle img {
  width: 1.5rem;
  height: 1.5rem;
}

.social-arrow {
  margin-left: 0.25rem;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

.social-input input {
  flex: 1;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: transparent;
  margin-bottom: 0;
}

.social-input input:focus {
  outline: none;
}

.social-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: 0.25rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  list-style: none;
  padding: 0.5rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.social-options.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.social-arrow img {
  width: 8px;
  height: 8px;
}

.social-options li {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  color: #627093;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0%;
  vertical-align: middle;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 0 0.5rem;
}

.social-options li:hover {
  background: #f8f9fa;
  color: #2a58ce;
  transform: translateX(4px);
}

.social-options li img {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.75rem;
}

/* ===================== Стили для основного попапа (Sign In / Sign Up / Forgot Password) ===================== */
#mainModal.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  overflow-y: auto;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

/* Блокировка скролла при открытом модальном окне */
body.modal-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
}

html.modal-open {
  overflow: hidden !important;
}
#mainModal .modal-content {
  border: 2px solid #000;

  background: #f3efe4;
  padding: 44px 32px 32px 32px;
  width: 501px;
  border-radius: 12px;
  position: relative;
  margin: auto;
  max-width: 100%;
}
#mainModal .close-btn {
  position: absolute;
  top: -4px;
  right: 15px;
  font-size: 39px;
  cursor: pointer;
  color: rgb(0, 0, 0);
}
#mainModal .modal-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
#mainModal .modal-tab {
  flex: 1;
  padding: 12px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.3);
  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  line-height: 18px;
  border-radius: 8px 8px 0px 0px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.3);
  transition: background 0.3s, color 0.3s;
}
#mainModal .modal-tab.active {
  border-radius: 8px 8px 0px 0px;
  border-bottom: 2px solid #48001e;
  color: #000;
  background: #fff;
}
#mainModal .modal-form {
  display: none;
  flex-direction: column;
}
#mainModal .modal-form.active {
  display: flex;
}
#mainModal .modal-form label {
  margin-bottom: 6px;
  color: #000;
  font-size: 14px;
  font-family: Montserrat;
  font-weight: 600;
  line-height: 18px;
  margin-top: 10px;
}
#mainModal .modal-form input {
  width: 100%;
  padding: 12px;
  color: rgba(0, 0, 0, 0.4);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  border-radius: 6px;
  background: #fff;
  border: none;
  font-family: Montserrat;
}
#mainModal .modal-forminput::placeholder {
  color: rgba(0, 0, 0, 0.4);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  font-family: Montserrat;
}
#mainModal .submit-btn,
.submit-btn {
  width: 100%;
  padding: 8px 20px;
  border-radius: 6px;
  background: #48001e;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;

  transition: 0.9s;
  font-family: "Montserrat Alternates";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
  margin: 20px 0 20px 0;
}
#mainModal .submit-btn:hover,
.submit-btn:hover {
  background: #ffffff;
  color: #000;
  transition: 0.9s;
}
#mainModal .modal-form-links {
  color: #aaa7a0;
  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  margin-top: 10px;
  position: relative;
  z-index: 5;
}
#mainModal .modal-form-link {
  color: #000;

  text-align: center;
  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 18px;
  text-decoration: none;
  cursor: pointer;
}
#mainModal .modal-form-link:hover {
  text-decoration: underline;
  transition: 0.9s;
}

/* Попап для сброса пароля */
#forgotOverlay.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  overflow-y: auto;
  padding: 20px 0;
  display: flex;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  font-family: Montserrat;
}
#forgotOverlay .popup-content {
  border: 2px solid #000;

  background: #f3efe4;
  color: #000;
  padding: 32px;
  border-radius: 16px;
  width: 501px;

  position: absolute;
}
#forgotOverlay .close-btn {
  position: absolute;
  top: 15px;
  right: 10px;
  font-size: 25px;
  cursor: pointer;
  color: rgb(0, 0, 0);
}
#forgotForm {
  display: flex;
  flex-direction: column;
}
#forgotForm input {
  margin-top: 10px;
  padding: 8px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  height: 44px;
  border-radius: 12px;
  font-family: Montserrat;
}
#forgotOverlay h2 {
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 26px;
  line-height: 30px;
  letter-spacing: 0%;
  text-align: center;

  font-family: Montserrat;
}
/* Адаптив */
@media screen and (max-width: 500px) {
  .popup-content,
  .popup-input,
  .popup-textarea,
  .popup-submitBtn,
  .popup-managerBtn {
    width: 100%;
    max-width: 100%;
  }
  .popup-title {
    font-size: 24px;
  }
  #mainModal .modal-content {
    padding: 40px 10px;
    width: 501px;
    border-radius: 12px;
    position: relative;
    margin: auto;
    max-width: 100%;
  }
}
.checkbox-group {
  display: flex;
  align-items: center;
}

#mainModal .modal-form .checkbox-group input {
  border: 2px solid #000;
  border-radius: 4px;
  width: 20px;
}

.modal-form {
  display: none;
  flex-direction: column;
}
.modal-form input {
  height: 44px;
}
.modal-form.active {
  display: flex;
}
.checkbox-group {
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 20px;
}
.terms-form-link {
  color: #000;
  font-family: "Montserrat";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}
.checkbox-group input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;

  outline: none;
  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease-in-out;
  padding: 0 !important;
}

.checkbox-group input[type="checkbox"]:checked {
  background: #600127;
}

.checkbox-group input[type="checkbox"]:checked::after {
  content: "✔";
  color: #600127;
  font-size: 14px;
  display: block;
  text-align: center;
}
.modal-form {
  width: 100%;

  margin: 0 auto;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-weight: 600;
  margin-bottom: 5px;
}

.input-group select {
  width: 100%;
  padding: 12px;
  color: rgba(0, 0, 0, 0.4);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #ccc;
  font-family: Montserrat;
  cursor: pointer;
}

.input-group select:focus {
  outline: none;
  border-color: #2a58ce;
}

.input-group select option {
  padding: 8px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  padding: 10px 40px 10px 10px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.toggle-password {
  background: transparent;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
}

/* Чекбоксы */
.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  width: 20px;
}

/* Ссылки под формой */
.modal-form-links {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
}
.modal-form-link {
  color: #2a58ce;
  text-decoration: none;
  margin-left: 5px;
}
.modal-form-link:hover {
  text-decoration: underline;
}

/* Стилі для форми в секції register (без модалки) */
.register .modal-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.register .modal-tab {
  flex: 1;
  padding: 12px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.3);
  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  line-height: 18px;
  border-radius: 8px 8px 0px 0px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.3);
  transition: background 0.3s, color 0.3s;
}

.register .modal-tab.active {
  border-radius: 8px 8px 0px 0px;
  border-bottom: 2px solid #48001e;
  color: #000;
  background: #fff;
}

.register .modal-form {
  display: none;
  flex-direction: column;
}

.register .modal-form.active {
  display: flex;
}

.register .modal-form label {
  margin-bottom: 6px;
  color: #000;
  font-size: 14px;
  font-family: Montserrat;
  font-weight: 600;
  line-height: 18px;
  margin-top: 10px;
}

.register .modal-form input {
  width: 100%;
  padding: 12px;
  color: rgba(0, 0, 0, 0.4);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  border-radius: 6px;
  background: #fff;
  border: none;
  font-family: Montserrat;
}

.register .modal-form input::placeholder {
  color: rgba(0, 0, 0, 0.4);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  font-family: Montserrat;
}

.register .modal-form select {
  width: 100%;
  padding: 12px;
  color: rgba(0, 0, 0, 0.4);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  border-radius: 6px;
  background: #fff;
  border: none;
  font-family: Montserrat;
}

.register .modal-form-links {
  color: #aaa7a0;
  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  margin-top: 10px;
  position: relative;
  z-index: 5;
}

.register .modal-form-link {
  color: #000;
  text-align: center;
  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 18px;
  text-decoration: none;
  cursor: pointer;
}

.register .modal-form-link:hover {
  text-decoration: underline;
  transition: 0.9s;
}

.register .password-container {
  width: 100%;
  display: flex;
  gap: 8px;
}

.register .password-group {
  width: 50%;
}

.register .form-login .password-group {
  width: 100%;
}

.register .input-wrapper {
  position: relative;
}

.register .input-wrapper input {
  width: 100%;
  padding: 12px 40px 12px 12px;
  box-sizing: border-box;
  border-radius: 6px;
  background: #fff;
  border: none;
  color: rgba(0, 0, 0, 0.4);
  font-size: 16px;
  font-family: Montserrat;
}

.register .toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.register .toggle-password img {
  width: 20px;
  height: 20px;
}

.register .social-group {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}

.register .social-input {
  display: flex;
  align-items: center;
  background: #fff;
  border: none;
  border-radius: 6px;
  overflow: hidden;
}

.register .social-input input {
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 16px;
  background: transparent;
  margin-bottom: 0;
  color: rgba(0, 0, 0, 0.4);
  font-family: Montserrat;
}

.register .social-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: 0.25rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  list-style: none;
  padding: 0.5rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 1000;
}

.register .social-options.visible {
  display: block;
}

.register .checkbox-group {
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 20px;
}

.register .checkbox-group input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #000;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease-in-out;
  padding: 0 !important;
}

.register .checkbox-group input[type="checkbox"]:checked {
  background: #600127;
  border-color: #600127;
}

.register .checkbox-group input[type="checkbox"]:checked::after {
  content: "✔";
  color: #fff;
  font-size: 14px;
  display: block;
  text-align: center;
}

.register .terms-form-link {
  color: #000;
  font-family: "Montserrat";
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  text-decoration-line: underline;
}
