.form {
    border: 1px solid #da291c;
    border-radius: 24px;
    background: white;
    padding: 20px;
    margin: 20px auto;
}

.form h2 {
    font-family: Euclid Circular B;
    font-size: 20px;
    font-weight: 600;
}

.form p {
    margin-top: 15px;
    font-family: Euclid Circular B;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.5;
}

.grid {
    display: grid;
    gap: 16px;
}

.modal__input-wrapper {
    position: relative;
}

.modal__input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #DADADA;
    border-radius: 8px;
    font-size: 16px;  /* чтобы не было zoom формы в Safari */   
    font-weight: 300;
    min-height: 44px;
    height: auto;
    box-sizing: border-box;
}

textarea {
    display: block;
}

/* Специально для select */
select.modal__input {
    padding-bottom: 6px;
    appearance: none;
}

.modal__input:focus {
    border-color: #666666;
}

.modal__input.error {
    border-color: #e74c3c;
}

textarea.modal__input {
    resize: vertical;
    min-height: 80px;
}

.error_name,
.error_email,
.error_phone,
.error_message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 4px;
    display: none;
}

.form label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.form label input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 8px;
}

.small {
    font-size: 14px;
    line-height: 1.4;
    padding-left: 5px;
}

.small a {
    /*color: #007bff;*/
    text-decoration: underline;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-primary:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Мобильная версия */
@media (max-width: 767px) {
    .form {
        border-bottom-left-radius: 24px !important;
        border-bottom-right-radius: 24px !important;
    }

    .form h2 {
        font-size: 20px;
        width: 90%
    }

    .grid {
        grid-template-columns: 1fr 1fr;
    }

    .full-width-mobile {
        grid-column: span 2 !important;
    }
}

/* Десктопная версия */
@media (min-width: 768px) {
    .grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .full-width-desktop {
        grid-column: span 3;
    }

    .two-thirds-desktop {
        grid-column: span 2;
    }
}