
.modal-window {
  position: fixed; /* Фиксированное положение (не прокручивается) */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0; /* Растягивается на весь экран */
  background-color: rgba(0, 0, 0, 0.7); /* Полупрозрачный фон (затемнение) */
  z-index: 1000; /* Находится выше всех элементов (чем больше число, тем выше) */
  display: flex; /* Используем Flexbox для центрирования */
  justify-content: center; /* Центрируем по горизонтали */
  align-items: center; /* Центрируем по вертикали */
}

.modal {
    background: #faf4e6;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 5px 5px 10px 10px rgba(0, 0, 0, 0.1);
    margin: auto;
    margin-top: 50px;
}

.modal div.close {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-right: 10px;
}

.modal div.close h2 {
    cursor: pointer;
    margin: 0;
}

.modal .form-actions {
    display: flex;
    justify-content: space-between;
}

/* Общие стили для полей ввода */
input[type="tel"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.smart-captcha {
    max-height: 102px;
    height: 102px;
    border-radius: 11px;
    background: #ffffff;
    margin: 10px 0;
}
.input-phone {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    margin: 10px 0;
}

.input-phone > div {
    background-color: #f5f5f5;
    padding: 8px 12px;
    border-right: 1px solid #ddd;
    font-size: 16px;
    color: #333;
}

.input-phone input {
    flex: 1;
    border: none;
    padding: 12px 12px;
    font-size: 16px;
    outline: none;
    margin: 0;
}

.input-phone input:focus {
    outline: 2px solid #007bff;
}

.btn {
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: #203f63;
    color: white;
    border: 2px solid #4381c9;
}

.btn-primary:hover {
    background-color: #4381c9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.btn-secondary {
    background-color: #6b3434;
    color: #ffffff;
    border: 2px solid #a95454;
}

.btn-secondary:hover {
    background-color: #a95454;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.1);
}

/* Стили для кнопок */
button {
    width: 100%;
    padding: 12px;
    background-color: #203f63;
    border: 2px solid #4381c9;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px 0;
}

button:hover {
    background-color: #0056b3;
}

/* Стили для блока с кнопками */
.buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.buttons button {
    flex: 1;
}

form .tip {
    font-size: 0.8em;
}
