/* === CONSENT CHECKBOX - ФИНАЛЬНОЕ РЕШЕНИЕ === */
.consent-row {
  text-align: center;
  padding: 10px 20px 0 !important; /* Уменьшен верхний/нижний отступ */
  margin-bottom: -10px !important; /* Подтягиваем ближе к кнопке */
}

.consent-row .wpcf7-list-item {
  margin: 0 auto !important;
  padding: 0 !important;
  display: inline-block !important;
  max-width: 560px;
  text-align: left;
}

.consent-row .wpcf7-list-item-label {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
  cursor: pointer;
}

.consent-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0 8px 0 0;
  padding: 0;
  vertical-align: middle;
  cursor: pointer;
  accent-color: #7c3aed;
  position: relative;
  top: -1px;
  /* Добавляем красную рамку для привлечения внимания */
  outline: 1px solid #d1d5db;
  outline-offset: 1px;
  border-radius: 3px;
}

/* Красная рамка при ошибке или просто для акцента */
.wpcf7-not-valid .consent-row input[type="checkbox"],
.consent-row input[type="checkbox"]:required:invalid {
  outline: 1px solid #dc3545;
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.consent-row .wpcf7-list-item-label span {
  display: inline !important;
}

.consent-row a {
  color: #7c3aed;
  text-decoration: underline;
  font-weight: 500;
}

.consent-row a:hover {
  color: #6d28d9;
}

.consent-row span.wpcf7-not-valid-tip {
  display: block !important;
  margin: 5px auto 0;
  max-width: 560px;
  padding: 5px 10px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  font-size: 12px;
  color: #dc3545;
  text-align: center;
}

/* === SUBMIT BUTTON === */
.submit-wrapper {
  padding: 15px 0 10px !important; /* Уменьшен отступ сверху */
}

.wpcf7-submit {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #fff;
  border: none;
  padding: 18px 56px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.4);
  transition: all 0.3s ease;
}

.wpcf7-submit:hover:not([disabled]) {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(124, 58, 237, 0.5);
}

/* Стили для неактивной кнопки (опционально) */
.wpcf7-submit[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  background: #cbd5e1 !important; /* Серый фон для неактивной кнопки */
  color: #64748b !important;
}

/* === RECAPTCHA === */
.recaptcha-legal {
  margin-top: 15px;
  padding: 0 20px;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.6;
}

.recaptcha-legal a {
  color: #7c3aed;
  text-decoration: none;
}

/* === MESSAGES === */
.wpcf7-response-output {
  margin: 20px auto;
  padding: 16px 20px;
  max-width: 550px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
}

.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.wpcf7-mail-sent-ok {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .consent-row {
    padding: 10px 15px 0 !important;
  }
  
  .consent-row .wpcf7-list-item {
    max-width: 100%;
  }
  
  .consent-row .wpcf7-list-item-label {
    font-size: 13px;
  }
  
  .wpcf7-submit {
    padding: 16px 44px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .consent-row .wpcf7-list-item-label {
    font-size: 12px;
  }
  
  .wpcf7-submit {
    padding: 14px 36px;
    font-size: 14px;
  }
}

























/* --- НАЧАЛО СТИЛЕЙ ФОРМЫ WINNERSOFT --- */

/* Контейнер и заголовки */
.winnersoft-consult-form {
    padding: 10px;
    max-width: 900px;
    margin: 0 auto;
}

.winnersoft-consult-form h3 {
    font-weight: 800;
    margin-bottom: 15px;
    color: #16151A;
    line-height: 1.2;
}

.winnersoft-consult-form .sub-header {
    font-size: 16px;
    color: #555;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Отступы между полями */
.winnersoft-consult-form .mb-field {
    margin-bottom: 20px;
}

/* Стили полей ввода (input, select) */
.winnersoft-consult-form input.form-control,
.winnersoft-consult-form select.form-select,
.winnersoft-consult-form textarea.form-control {
    background: #ffffff;
    border: 1px solid #EAEAEA;
    border-radius: 16px !important;
    height: 56px;
    padding: 0 24px;
    font-size: 15px;
    color: #333;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
}

/* Эффект при клике на поле */
.winnersoft-consult-form input.form-control:focus,
.winnersoft-consult-form select.form-select:focus {
    border-color: #610897;
    box-shadow: 0 4px 25px rgba(97, 8, 151, 0.15);
    transform: translateY(-2px);
    outline: none;
}

/* Стили кнопки отправки */
.winnersoft-consult-form input.wpcf7-submit {
    background: linear-gradient(90deg, #BE6EEF 0%, #610897 100%);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    padding: 20px 50px;
    box-shadow: 0 10px 30px rgba(97, 8, 151, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 10px;
    width: auto;
    min-width: 300px;
}

/* Ховер кнопки (наведение мыши) */
.winnersoft-consult-form input.wpcf7-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(97, 8, 151, 0.5);
    background: linear-gradient(90deg, #610897 0%, #BE6EEF 100%);
}

/* ИСПРАВЛЕНИЕ ТЕКСТА РЕКАПЧИ (Убираем лишние отступы) */
.winnersoft-consult-form .recaptcha-legal,
.winnersoft-consult-form .recaptcha-legal p {
    font-size: 11px !important;
    color: #9AA0A6 !important;
    margin: 15px auto 0 auto !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    max-width: 400px;
    display: block !important;
}

/* Скрываем принудительные переносы строк от плагина CF7 */
.winnersoft-consult-form .recaptcha-legal br {
    display: none !important;
    content: "" !important;
}

.winnersoft-consult-form .recaptcha-legal a {
    color: #9AA0A6;
    text-decoration: underline;
}

.winnersoft-consult-form .recaptcha-legal a:hover {
    color: #610897;
}

/* Адаптив для мобильных телефонов */
@media (max-width: 767px) {
    .winnersoft-consult-form input.wpcf7-submit {
        width: 100%;
        padding: 18px 20px;
        min-width: unset;
    }
    .winnersoft-consult-form input.form-control,
    .winnersoft-consult-form select.form-select {
        height: 50px;
    }
}
/* --- КОНЕЦ СТИЛЕЙ --- */




/* Жестко выстраиваем всё в одну строку */
.winnersoft-consult-form .recaptcha-legal {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

/* Превращаем все абзацы и ссылки внутри в строчные элементы */
.winnersoft-consult-form .recaptcha-legal * {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
}

/* Полностью удаляем переносы строк */
.winnersoft-consult-form .recaptcha-legal br {
    display: none !important;
    content: " " !important; /* Заменяем перенос на пробел */
}

/* На всякий случай задаем отступы ссылкам, чтобы они не слипались */
.winnersoft-consult-form .recaptcha-legal a {
    margin: 0 3px !important;
}














/* рекапча скрыть */
.grecaptcha-badge { 
    visibility: hidden !important;
    opacity: 0 !important;
    display: none !important;
}







/* 1. Базовый стиль кнопки */
body .btn_two {
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #ffffff 0%, #dcdcdc 100%) !important;
    color: #4a0e68 !important;
    font-weight: 700 !important;
    border: 1px solid rgba(255,255,255,0.8) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    
    /* ИСПРАВЛЕНИЕ: Анимируем только трансформацию и тень, НЕ фон */
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease !important;
    
    z-index: 1;
}

/* 2. Блик (полоска света) */
body .btn_two::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60px;
    height: 100%;
    background: linear-gradient(
        120deg, 
        transparent, 
        rgba(255, 255, 255, 0.9), 
        transparent
    );
    transform: skewX(-20deg);
    /* Блик бегает каждые 3 секунды */
    animation: shine-effect 2s infinite;
    z-index: -1; 
    pointer-events: none; /* Чтобы блик не перекрывал клик */
}

/* 3. Анимация движения блика */
@keyframes shine-effect {
    0% { left: -150%; }
    20% { left: 150%; } /* Быстрый пролет */
    100% { left: 150%; } /* Пауза */
}

/* 4. Эффект при наведении (Hover) */
body .btn_two:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8) !important;
    
    /* Вместо сплошного цвета ставим очень светлый градиент, чтобы не было "мигания" */
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%) !important;
}

















/* ==================================================
   1. ТЕКСТ И ЛИНИЯ (ВАШ ОРИГИНАЛЬНЫЙ КОД)
   ================================================== */
.founder h1, .hero h1 {
    font-weight: 800;
    line-height: 1.1; 
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 25px;
    color: #fff !important;
    z-index: 5; /* Текст всегда сверху */
}

/* Линия-градиент */
.founder h1::after, .hero h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 80px;
    border-radius: 2px;
    
    background: linear-gradient(90deg, #FFD700, #FF00CC);
    background-size: 200% auto;
    animation: gradient-move 4s linear infinite alternate;
}

/* Мобильная версия текста */
@media (max-width: 768px) {
    .founder h1, .hero h1 {
        font-size: 26px !important;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        background: linear-gradient(135deg, #fff 30%, #ddd 50%, #fff 70%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: none !important;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    }
    
    .founder h1::after, .hero h1::after {
        height: 3px;
        width: 60px;
    }
}

@keyframes gradient-move {
    0% { background-position: 0% center; }
    100% { background-position: 100% center; }
}


/* ==================================================
   2. ФОНОВЫЕ ФИШКИ (ATMOSPHERIC CHIPS)
   ================================================== */

/* Контейнер: чтобы фишки не растягивали страницу */
.founder, .hero {
    position: relative;
    overflow: hidden; 
}

/* ФИШКА 1 (БОЛЬШАЯ СПРАВА) - ТЕПЕРЬ ТУТ ЗОЛОТАЯ ФИШКА */
.founder::before, .hero::before {
    content: '';
    position: absolute;
    z-index: 0; /* Строго на фоне */
    
    /* Смещаем смелее ВНУТРЬ экрана (эффект планеты) */
    top: -10%;
    right: -15%; 
    
    /* ОГРОМНЫЙ РАЗМЕР */
    width: 280px;
    height: 280px;
    
    /* === ЗАМЕНЕНО НА 6.png === */
    background-image: url('https://winnersofts.com/wp-content/uploads/2026/01/6.png');
    background-size: contain;
    background-repeat: no-repeat;
    
    opacity: 0.15; /* Легкая прозрачность */
    filter: blur(1px); /* Модный расфокус (боке) */
    
    /* Медленное вращение */
    animation: float-right 25s linear infinite;
}

/* ФИШКА 2 (ПОМЕНЬШЕ СЛЕВА СНИЗУ) - Оставил старую (золотую) или можно вернуть 6-2-3 */
.founder::after, .hero::after {
    content: '';
    position: absolute;
    z-index: 0;
    
    /* Позиция */
    bottom: 5%;
    left: -8%;
    
    /* Размер */
    width: 160px;
    height: 160px;
    
    /* Здесь тоже 6.png (как в вашем коде), если нужно разнообразие - поставьте сюда 6-2-3.png */
    background-image: url('https://winnersofts.com/wp-content/uploads/2026/01/6.png');
    background-size: contain;
    background-repeat: no-repeat;
    
    opacity: 0.1;
    
    /* Парение вверх-вниз */
    animation: float-left 10s ease-in-out infinite alternate;
}

/* === АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ === */
@media (max-width: 768px) {
    /* Фишка справа */
    .founder::before, .hero::before {
        width: 180px; /* Крупно и на телефоне */
        height: 180px;
        top: -30px;
        right: -50px; /* Задвигаем край */
        opacity: 0.2;
    }
    
    /* Фишка слева */
    .founder::after, .hero::after {
        width: 100px;
        height: 100px;
        bottom: 15%;
        left: -30px;
        opacity: 0.15;
    }
}

/* === АНИМАЦИИ === */
@keyframes float-right {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes float-left {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-30px) rotate(-10deg); }
}
















/* ===== кукис WPConsent: banner base ===== */
#wpconsent-container::part(wpconsent-banner) {
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.98), rgba(138, 43, 226, 0.98));
  border-top: 2px solid rgba(255, 215, 0, 0.35);
  backdrop-filter: blur(18px);
  box-shadow: 0 -6px 24px rgba(0,0,0,.35);

  /* ровная “пилюля” как на скрине, без перекосов */
  border-radius: 18px;
  padding: 18px 18px 14px;
}

/* Текст */
#wpconsent-container::part(wpconsent-banner-body) {
  color: rgba(255,255,255,.92);
  font-size: 15px;
  line-height: 1.45;

  /* чтобы текст и кнопки не прилипали */
  margin: 0 0 14px 0;
}

/* Ссылка */
#wpconsent-container::part(wpconsent-banner-body) a {
  color: #FFD700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== WPConsent: buttons layout ===== */
/* ВАЖНО: у WPConsent может отличаться имя part для контейнера кнопок.
   Если этот селектор не сработает — напиши, и подберу точный part по HTML. */
#wpconsent-container::part(wpconsent-banner-actions),
#wpconsent-container::part(wpconsent-banner-footer) {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr; /* Accept чуть шире */
  gap: 12px;
  align-items: center;
}

/* Общий стиль кнопок — одинаковая высота/типографика */
#wpconsent-container::part(wpconsent-button-accept),
#wpconsent-container::part(wpconsent-button-cancel),
#wpconsent-container::part(wpconsent-button-preferences) {
  height: 44px;
  padding: 0 18px;              /* убрали “разную” высоту из-за padding */
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  line-height: 44px;            /* вертикальное выравнивание текста */
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Accept */
#wpconsent-container::part(wpconsent-button-accept) {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #1a0033;
  border: none;
}

/* Reject */
#wpconsent-container::part(wpconsent-button-cancel) {
  background: rgba(255,255,255,.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
}

/* Preferences */
#wpconsent-container::part(wpconsent-button-preferences) {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.18);
}

/* Hover аккуратнее (без “прыжков”) */
#wpconsent-container::part(wpconsent-button-accept):hover,
#wpconsent-container::part(wpconsent-button-cancel):hover,
#wpconsent-container::part(wpconsent-button-preferences):hover {
  filter: brightness(1.06);
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  #wpconsent-container::part(wpconsent-banner) {
    border-radius: 16px;
    padding: 16px;
  }

  /* Кнопки в столбик — ровно и удобно */
  #wpconsent-container::part(wpconsent-banner-actions),
  #wpconsent-container::part(wpconsent-banner-footer) {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #wpconsent-container::part(wpconsent-button-accept),
  #wpconsent-container::part(wpconsent-button-cancel),
  #wpconsent-container::part(wpconsent-button-preferences) {
    width: 100%;
  }
}

