/* Стили для страницы контактов */

/* Заголовок страницы */
#contacts-form h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

/* Блок с описанием компании */
.contacts-intro {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.contacts-intro p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

/* Блок с основными контактами */
.contacts-main {
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.contacts-main__item {
    padding: 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contacts-main__item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.contacts-main__label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.contacts-main__value {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.contacts-main__value a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

.contacts-main__value a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Секция с формой */
.contacts-form-section {
    margin-top: 50px;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contacts-form-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

/* Стили для формы */
.consultant-form {
    max-width: 800px;
    margin: 0 auto;
}

.contact-managers__form-fields-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.callback__label {
    position: relative;
    display: block;
}

.callback__input {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.callback__input:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.callback__input::placeholder {
    color: #999;
}

.callback__label .icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.callback__textaria {
    grid-column: 1 / -1;
    position: relative;
    display: block;
}

.callback__textarea {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
    background: #fff;
}

.callback__textarea:focus {
    outline: none;
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.callback__textaria .icon {
    position: absolute;
    right: 15px;
    top: 20px;
    color: #999;
    pointer-events: none;
}

.form__error {
    display: none;
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.callback__input:invalid:not(:placeholder-shown) + .icon + .form__error,
.callback__input:invalid:not(:placeholder-shown) ~ .form__error {
    display: block;
}

/* Блок с файлом */
.contact-managers__form-footer {
    margin-top: 25px;
}

.callback__file_parent {
    margin-bottom: 25px;
}

.callback__file_button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.callback__file_button:hover {
    background: #e9ecef;
    border-color: #ffc107;
    color: #000;
}

.callback__file_input {
    display: none;
}

.callback__file_span {
    margin: 10px 0 0 0;
    font-size: 13px;
    color: #666;
}

/* Чекбоксы */
.contact-managers__form-checkboxes {
    margin: 25px 0;
}

.callback__checkbox {
    margin-bottom: 15px;
}

.callback__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    line-height: 1.5;
}

.callback__checkbox-input {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.callback__checkbox-label a {
    color: #007bff;
    text-decoration: underline;
}

.callback__checkbox-label a:hover {
    color: #0056b3;
}

/* Кнопка отправки */
.callback__submit {
    width: 100%;
    padding: 16px 30px;
    background: #ffc107;
    color: #333;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    margin-top: 20px;
}

.callback__submit:hover {
    background: #ffb300;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.5);
    transform: translateY(-2px);
}

.callback__submit:active {
    transform: translateY(0);
}

.callback__submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Сообщения формы */
.callback__message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.callback__message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.callback__message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Адаптивность */
@media (max-width: 768px) {
    #contacts-form h1 {
        font-size: 28px;
    }
    
    .contacts-intro {
        padding: 20px;
    }
    
    .contacts-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contacts-form-section {
        padding: 25px 20px;
    }
    
    .contacts-form-section h2 {
        font-size: 24px;
    }
    
    .contact-managers__form-fields-wrapper {
        grid-template-columns: 1fr;
    }
}


