/**
 * Стилі для форми онлайн-консультації
 */

/* Загальні стилі для форми */
.online-consultation-form-wrapper {
    font-family: 'Philosopher', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Секція форми */
.online-consultation-section {
    position: relative;
    background-image: linear-gradient(to bottom, 
        rgba(94, 131, 153, 0) 0%, 
        rgba(94, 131, 153, 0.5) 50%, 
        rgba(94, 131, 153, 0.8) 100%),
        url('/wp-content/themes/your-theme-name/img/price-form.png');
    background-size: cover;
    background-position: center;
    padding: 0 0 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 600px;
}

.contact-content {
    position: relative;
    margin: 0 auto;
    padding: 60px 0;
    font-family: 'Philosopher', sans-serif;
}

.contact-content::before,
.contact-content::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.7);
}

.contact-content::before {
    top: 0;
}

.contact-content::after {
    bottom: 0;
}

.contact-content .highlight {
    color: #AFD4E9;
}

.section-header {
    background-color: rgba(94, 131, 153, 0.9);
    width: 100%;
    text-align: center;
    padding: 60px 0;
    margin-bottom: 50px;
}

.section-header h2 {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header h3 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 500;
    margin: 0;
}

/* Контейнер форми */
.form_container_main {
    background-color: #fff;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    box-sizing: border-box;
}

.form_container_1 {
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.form_container_3 {
    width: 100%;
    text-align: center;
    padding: 20px 0 0;
    box-sizing: border-box;
    border-top: 1px solid #f0f0f0;
    margin-top: 20px;
}

/* Поля введення */
.form_input {
    position: relative;
    margin-bottom: 25px;
    width: 100%;
    box-sizing: border-box;
}

.form_input input[type="text"],
.form_input input[type="tel"],
.form_input input[type="email"],
.form_input textarea {
    width: 100%;
    padding: 12px 15px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    color: #333;
    background-color: #f9f9f9;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.form_input textarea {
    min-height: 150px;
    resize: vertical;
    padding-left: 15px;
}

.form_input input:focus,
.form_input textarea:focus {
    border-color: #AFD4E9;
    outline: none;
    box-shadow: 0 0 5px rgba(175, 212, 233, 0.5);
}

.form_input_icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.form_input textarea + .form_input_icon {
    top: 20px;
    transform: none;
}

/* Чекбокси */
.form_input h4 {
    color: #5E8399;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.wpcf7-list-item {
    display: flex;
    align-items: flex-start;
    margin: 0 0 8px 0;
    width: 100%;
    box-sizing: border-box;
}

.wpcf7-list-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.wpcf7-list-item-label {
    margin-left: 8px;
    font-size: 14px;
}

/* Кнопка відправки */
.submit-button {
    background-color: #AFD4E9;
    color: #000;
    border: none;
    border-radius: 30px;
    padding: 12px 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 180px;
}

.submit-button:hover {
    background-color: #5E8399;
    color: white;
}

/* Повідомлення про конфіденційність */
.privacy-notice {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-top: 15px;
    width: 100%;
}

/* Стилі для чекбоксів */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 3px;
    outline: none;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background-color: #AFD4E9;
    border-color: #AFD4E9;
}

input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Повідомлення про помилки та успіх */
.error-message {
    color: #e53935;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-message.active {
    display: block;
}

.success-message {
    color: #43a047;
    font-weight: 600;
    background-color: rgba(67, 160, 71, 0.1);
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
}

.general-error {
    color: #e53935;
    font-weight: 600;
    background-color: rgba(229, 57, 53, 0.1);
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
}

.required {
    color: #e53935;
}

/* Стан завантаження */
.form-loading {
    opacity: 0.6;
    pointer-events: none;
}

.form-loading .submit-button::after {
    content: '...';
    display: inline-block;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}

/* Адаптивність */
@media (max-width: 768px) {
    .form_container_main {
        padding: 20px 15px;
        width: 95%;
    }
    
    .form_input input[type="text"],
    .form_input input[type="tel"],
    .form_input input[type="email"],
    .form_input textarea {
        padding: 10px 10px 10px 35px;
    }
    
    .form_input_icon {
        left: 10px;
        width: 16px;
        height: 16px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header h3 {
        font-size: 1.4rem;
    }
}
