.consultation-section {
    margin-bottom: 150px;
}

.consultation-section__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap:24px;
}

.consultation-section__title-wrapper {
display:flex;
align-items: center;
justify-content: center;
overflow: hidden;
position: relative;
border-radius: 20px;
}
.consultation-section__title-wrapper__background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1;
}
.consultation-section__title {
font-family: Raleway;
font-size: 60px;
font-weight: 700;
line-height: 114%;
color: #04002D;
margin-bottom: 24px;
max-width:502px;
}

.consultation-section__title_color {
    color: #4066BE;
}

.consultation-section__form-wrapper {
    overflow: hidden;
    border-radius: 20px;
    background: #FFF;
    padding: 30px;
    box-shadow: 0px 4px 9.6px 0px rgba(0, 0, 0, 0.03);

    
}

.consultation-section__form {
    display: flex;
    flex-direction: column;
    gap:32px;
}

.consultation-section_inputs {
    display: flex;
    flex-direction: column;
    gap:16px;
}

.consultation-section__inputs-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap:12px;
}

.consultation-section__form-item-wrapper {
    display: flex;
    flex-direction: column;
    gap:8px;
}

.consultation-section__form-wrapper .consultation-section__title  {
    display: none;
}

.consultation-section__form-label {
    font-family: Raleway;
    font-size: 16px;
    font-weight: 400;
    line-height: 138%;
    color: #04002D;
    margin-left:24px;
}

.consultation-section__form-input {
    border-radius: 12px;
border: 1px solid #5681E4;
background: #F7F7F7;
padding: 10px 24px;
font-family: Raleway;
font-size: 18px;
font-weight: 400;
line-height: 138%;
color: #04002D;
height:64px;
transition: all 0.3s ease;
outline: none; /* Убираем стандартный outline */
}

.consultation-section__form-input::placeholder {
    color: #A8A8A8;
}

/* Красивый фокус для обычного состояния */
.consultation-section__form-input:focus {
    border: 2px solid #4066BE;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(64, 102, 190, 0.15);
    transform: translateY(-1px);
}

/* Состояние ошибки для полей ввода */
.consultation-section__form-input.error {
    border: 2px solid #f44336;
    background: #ffebee;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

.consultation-section__form-input.error::placeholder {
    color: #f44336;
}

/* Анимация тряски для полей */
.consultation-section__form-item-wrapper.shake {
    animation: shake 0.5s ease-in-out;
}

/* Сброс состояния ошибки при фокусе */
.consultation-section__form-input.error:focus {
    border: 2px solid #4066BE;
    background: #F7F7F7;
    box-shadow: 0 0 0 3px rgba(64, 102, 190, 0.15);
    transform: translateY(-1px);
}


.consultation-section__form-checkbox {
    visibility: hidden;
    position: absolute;
}

/* Красивый фокус для чекбокса */
.consultation-section__form-checkbox:focus + .consultation-section__form-checkbox-label .consultation-section__form-checkbox-span {
    box-shadow: 0 0 0 3px rgba(64, 102, 190, 0.2);
    transform: scale(1.05);
}

.consultation-section__form-checkbox-span {
    position:relative;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: #C5D9FD;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Состояние ошибки для чекбокса */
.consultation-section__form-checkbox-wrapper.error .consultation-section__form-checkbox-span {
    background: #ffebee;
    border: 2px solid #f44336;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

.consultation-section__form-checkbox-wrapper.error .consultation-section__form-checkbox-text {
    color: #f44336;
}

/* Анимация тряски для привлечения внимания */
.consultation-section__form-checkbox-wrapper.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Сброс состояния ошибки при выборе чекбокса */
.consultation-section__form-checkbox:checked + .consultation-section__form-checkbox-label .consultation-section__form-checkbox-span {
    background: #4066BE;
    border: none;
    box-shadow: none;
}

.consultation-section__form-checkbox__icon {
    position:absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.consultation-section__form-checkbox:checked + .consultation-section__form-checkbox-label .consultation-section__form-checkbox__icon {
    opacity: 1;
}

.consultation-section__form-checkbox-label {

    display: flex;
    align-items: center;
    gap:12px;
}

.consultation-section__form-checkbox-text {
    color: #04002D;
    font-family: Gogh;
    font-size: 14px;
    font-weight: 500;
    line-height: 138%;
}

.consultation-section__form-checkbox-link {
    color: #4066BE;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.consultation-section__form-button {
    border-radius: 999px;
    background: #4066BE;
    color: #FFF;
    font-family: Raleway;
    font-size: 22px;
    font-weight: 600;
    line-height: 140%;
    width:320px;
    height:72px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

/* Красивый фокус и ховер для кнопки */
.consultation-section__form-button:hover {
    background: #365a9e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 102, 190, 0.3);
}

.consultation-section__form-button:focus {
    background: #365a9e;
    box-shadow: 0 0 0 3px rgba(64, 102, 190, 0.3);
    transform: translateY(-1px);
}

.consultation-section__form-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(64, 102, 190, 0.2);
}

.consultation-section__form-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


@media (max-width: 1885px) {
  .consultation-section {
}

  }

  
  @media (max-width: 1200px) {
  .consultation-section {
    margin-bottom: 64px;
}

.container {
}

.consultation-section__content {
    grid-template-columns: 1fr;
    gap:0;
}

.consultation-section__title-wrapper {
    display: none;
}

.consultation-section__form-wrapper .consultation-section__title {
    display: block;
font-size: 32px;
max-width:none;
margin-bottom:32px;

}

  }

  
  @media (max-width: 766px) {
   .consultation-section {
}



.consultation-section__form-wrapper {
    margin-inline: -20px;
    padding-inline: 20px;
}


.consultation-section__inputs-group {
    grid-template-columns: 1fr;
    gap:16px;
}

.consultation-section__form-button {

    width:100%;
    font-size: 14px;
    height: 60px;
}

.consultation-section__form-checkbox-label  {
    align-items: flex-start;
}

.consultation-section__form-checkbox-span {
    flex-shrink: 0;
}


  }
  