/* Сброс базовых стилей */
.cf-container * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Общие стили для контейнера формы 
 - делаем его во всю ширину/высоту, чтобы был сплошной серый фон. */
.lizing_page {
  display: flex;
  flex-direction: column;
  justify-content: center;  /* Вертикальное выравнивание */
  align-items: flex-start !important;      /* Горизонтальное выравнивание */
  width: 100%;
  margin-bottom: 20px;
}

.lizing_page .cf-title {
  text-align: left !important;
}

/* Контейнер самой формы */
.cf-form {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1200px;
  transition: opacity 0.5s ease-in-out; /* для плавного исчезновения */
}

/* Контейнер самой формы */
.light {
box-shadow: none !important;
padding: 30px;
border-radius: 8px;
width: 100%;
max-width: 800px;
transition: opacity 0.5s ease-in-out; /* для плавного исчезновения */
}

/* Заголовок формы */
.cf-title {
  margin-bottom: 20px;
  color: #333333;
  text-align: center;
  font-size: 24px;
}

/* Стили для меток, инпутов, кнопки - берём из вашего кода */
.cf-label {
  font-family: 'Apercu Pro',sans-serif;
  display: block;
  margin-bottom: 5px;
  color: #888;
  font-size: 13x;
  font-weight: 300;
}

.cf-input {
  background: #fafafa;
    background: var(--darkerblack_bg_black);
    border: 1px solid #ececec;
    border-color: var(--stroke_black);
    border-radius: 3px;
    box-shadow: none;
    color: #383838;
    color: var(--white_text_black);
    height: auto;
    font-size: 14px;
    outline: 0;
  transition: border-color 0.3s;
  padding: 8px 13px 13px;
    width: 100%;
    height: 48px;
    margin-bottom: 10px;
}
.cf-input:focus {
  border-color: #f54514;
  outline: none;
}

/* Политика */
.cf-privacy {
  font-family: 'Apercu Pro',sans-serif;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
}
.cf-checkbox {
  margin-right: 10px;
  width: 16px;
  height: 16px;
}
.cf-privacy-label {
  font-size: 14px;
  color: #555555;
}
.cf-privacy-link {
  color: #08a826;
  text-decoration: none;
}
.cf-privacy-link:hover {
  text-decoration: underline;
}

/* Кнопка */
.cf-button {
  font-family: 'Apercu Pro',sans-serif;
  width: 20%;
  padding: 12px;
  background-color: #08a826;
  border: none;
  border-radius: 4px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}
.cf-button:hover {
  background-color: #13cf36;
}



/* Контейнер для уведомлений */
.cf-notifications {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 9999;
}

/* Удаляем фоновый цвет из базового класса */
.cf-notification {
  font-family: 'Apercu Pro',sans-serif;
color: white;
margin-top: 10px;
border-radius: 4px;
display: flex;
padding: 16px;
align-items: center;
min-width: 250px;
max-width: 100%;
opacity: 0;
animation: fadeIn 0.5s forwards;
}

/* Устанавливаем фоны только для типов уведомлений */
.cf-notification--error {
background-color: #f44336; /* Красный */
}

.cf-notification--success {
background-color: #08a826; /* Зеленый */
}


/* Анимация появления */
@keyframes fadeIn {
to {
  opacity: 1;
}
}

/* Сообщение в уведомлении */
.cf-notification__message {
flex: 1;
}

/* Кнопка закрытия */
.cf-notification__close {
background: none;
border: none;
color: rgb(0, 0, 0);
font-size: 16px;
cursor: pointer;
margin-left: 10px;
}


/* Базовый стиль формы */
.cf-form {
position: relative; 
/* Это важно: даёт возможность позиционировать псевдоэлемент 
   в пределах формы, а не всего окна */
}

/* При загрузке формы */
.cf-form--loading {
opacity: 0.6;          /* Тусклость */
pointer-events: none;  /* Блокируем взаимодействие */
}

/* Спиннер через псевдоэлемент */
.cf-form--loading::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
width: 40px;
height: 40px;
margin: -20px 0 0 -20px; /* Центрируем спиннер */
border: 4px solid #f3f3f3;   /* Светлая обводка */
border-top: 4px solid #08a826; /* "Активная" часть спиннера */
border-radius: 50%;
animation: spin 0.8s linear infinite;
z-index: 9999;
}

/* Анимация вращения */
@keyframes spin {
to {
  transform: rotate(360deg);
}
}

.card-form .cf-form {
  box-shadow: none;
padding: 0px;
}

.card-form .cf-button  {
  width: 100%;
}
.card-form .cf-label {
  display: none;
}
.card-form h2 {
  font-size: 20px;
  font-weight: 600;
}