/* CALCULATOR.CSS - Стилі для калькулятора згідно STYLE.MDC */

.calculator-info {
    padding: var(--space-xl) 0;
    position: relative;
}

.calculator-info h1 {
    margin-bottom: var(--space-xl);
}

.calculator-info h2 {
    margin-bottom: var(--space-lg);
    position: relative;
    display: inline-block;
}

.calculator-info h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-red);
}

.info-content {
    position: relative;
}

.info-content p {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--color-red);
    margin-bottom: var(--space-md);
}

/* Декоративні елементи */
.calculator-info::before {
    content: '⌘';
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    color: var(--color-red);
    font-size: 28px;
    opacity: 0.5;
}

.calculator-info::after {
    content: '⟲';
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-sm);
    color: var(--color-red);
    font-size: 32px;
    font-weight: 700;
    opacity: 0.4;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin-top: var(--space-md);
}

.benefits-list li {
    position: relative;
    padding: 12px 0 12px 40px;
    margin-bottom: 12px;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.1);
    transition: all 0.3s ease-out;
}

.benefits-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.2);
}

.benefits-list li::before {
    content: '⚡';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-red);
    font-weight: 700;
    font-size: 16px;
}

.benefits-list li:nth-child(2)::before {
    content: '🔧';
}

.benefits-list li:nth-child(3)::before {
    content: '🤖';
}

.benefits-list li:nth-child(4)::before {
    content: '✅';
}

.benefits-list li:nth-child(5)::before {
    content: '🚀';
}

.test-section {
    padding: var(--space-xl) 0;
    background: var(--color-gray);
    position: relative;
}

/* Декоративні елементи для test section */
.test-section::before {
    content: '⚡';
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    color: var(--color-red);
    font-size: 24px;
    opacity: 0.6;
}

.test-form {
    max-width: 600px;
    margin: 0 auto;
}

.question {
    margin-bottom: var(--space-md);
}

.question h3 {
    margin-bottom: var(--space-sm);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border: 2px solid transparent;
    background: var(--color-white);
    transition: all 0.3s ease-out;
}

.options label:hover {
    border-color: var(--color-red);
}

.options input[type="radio"] {
    margin-right: 10px;
}

.options input[type="radio"]:checked+span {
    color: var(--color-red);
    font-weight: 600;
}

/* CTA Box з декоративним елементом */
.cta-sidebar .cta-box {
    position: relative;
}

/* Десктопна версія - додаємо margin тільки на великих екранах */
@media (min-width: 768px) {
    .cta-sidebar .cta-box {
        margin-right: 40px;
    }
}

.cta-sidebar .cta-box::before {
    content: '●';
    position: absolute;
    top: -8px;
    right: var(--space-xs);
    color: var(--color-red);
    font-size: 16px;
    background: var(--color-white);
    padding: 0 5px;
}

/* ===== АДАПТАЦІЯ МОБІЛЬНІ ===== */
@media (max-width: 767px) {
    .calculator-info {
        padding: var(--space-md) 0;
    }

    .test-section {
        padding: var(--space-md) 0;
    }

    .calculator-info::before {
        font-size: 20px;
        top: var(--space-xs);
        left: var(--space-xs);
    }

    .calculator-info::after {
        font-size: 24px;
        bottom: var(--space-xs);
        right: var(--space-xs);
    }

    .test-section::before {
        font-size: 18px;
        top: var(--space-xs);
        right: var(--space-xs);
    }

    .benefits-list li {
        padding: 10px 0 10px 35px;
        margin-bottom: 10px;
    }

    .benefits-list li::before {
        font-size: 14px;
        left: 10px;
    }

    .info-content p {
        padding-left: 15px;
    }
}