/* Стильный современный виджет в израильском стиле */
.itw-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.itw-header-box {
    text-align: center;
    margin-bottom: 30px;
}

.itw-header-box h2 {
    font-size: 24px;
    color: #1a2b49;
    margin-bottom: 8px;
    font-weight: 700;
}

.itw-header-box p {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}

/* Сетка карточек с использованием современного флоата или инлайн-блоков для 100% совместимости, либо CSS Grid для современных браузеров сайта */
.itw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.itw-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.itw-card:hover {
    transform: translateY(-4px);
    border-color: #0076ff;
    background: #ffffff;
    box-shadow: 0 12px 20px rgba(0, 118, 255, 0.08);
}

.itw-card-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.itw-card h3 {
    font-size: 18px;
    color: #0f172a;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.itw-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 20px;
    min-height: 40px;
}

.itw-card-btn {
    background: #0076ff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.itw-card:hover .itw-card-btn {
    background: #0056b3;
}

/* Плавающая кнопка WhatsApp в стиле израильских лендингов */
.itw-whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    z-index: 99999;
    display: flex;
    align-items: center;
    padding: 4px 4px 4px 18px;
    transition: all 0.3s ease;
}

.itw-whatsapp-float:hover {
    transform: scale(1.05);
    background-color: #20ba5a;
    color: #fff;
}

.itw-float-text {
    font-weight: 600;
    font-size: 14px;
    margin-right: 10px;
    font-family: inherit;
}

.itw-wa-icon-container {
    width: 42px;
    height: 42px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.itw-wa-svg {
    width: 24px;
    height: 24px;
}

/* Модальное окно квиза */
.itw-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15,23,42,0.6);
    backdrop-filter: blur(4px);
}

.itw-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 30px;
    border-radius: 16px;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    text-align: center;
}

.itw-close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #94a3b8;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.itw-close:hover {
    color: #0f172a;
}

.itw-step-subtitle {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 20px;
}

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

.itw-opt-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: right; /* RTL friendly */
    direction: rtl;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.itw-opt-btn:hover {
    background: #e0f2fe;
    border-color: #0076ff;
    color: #0369a1;
}

.itw-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    outline: none;
}

.itw-input:focus {
    border-color: #0076ff;
    box-shadow: 0 0 0 3px rgba(0,118,255,0.1);
}

.itw-submit-btn {
    background: #25d366;
    color: white;
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.itw-submit-btn:hover {
    background: #20ba5a;
}
