/* === Form: Checkbox, Privacy, Partners grid === */

/* Checkbox styling */
.ig-popup-body .wpcf7-acceptance input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    accent-color: var(--teal) !important;
    cursor: pointer !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    border-radius: 3px !important;
}

/* The text "Я погоджуюся з" — keep on same line */
.ig-popup-body .wpcf7-form p:has(.wpcf7-acceptance) > br {
    display: none !important;
}

/* Privacy policy link — teal, visible, underlined */
.ig-popup-body .wpcf7-form p:has(.wpcf7-acceptance) a,
.ig-popup-body .ig-cf7-privacy a {
    color: var(--teal) !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    opacity: 1 !important;
}
.ig-popup-body .wpcf7-form p:has(.wpcf7-acceptance) a:hover {
    opacity: 0.8 !important;
}

/* Fallback for browsers without :has() support */
.ig-popup-body .wpcf7-acceptance {
    display: inline-flex !important;
}
.ig-popup-body .wpcf7-form > p {
    /* Generic reset for all CF7 paragraphs in popup */
    margin-bottom: 14px !important;
}

/* ══════════════════════════════════════════════════════
   ALLIANCE MEMBERS SECTION
══════════════════════════════════════════════════════ */

.members-section {
    padding: 72px 0;
    background: var(--bg);
}

.members-intro {
    max-width: 680px;
    margin: 20px auto 0;
    color: rgba(232,240,248,0.65);
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.member-card {
    background: linear-gradient(145deg, rgba(15,34,64,0.9) 0%, rgba(11,26,48,0.95) 100%);
    border: 1px solid rgba(0,201,167,0.12);
    border-radius: 6px;
    padding: 0;
    display: block;
    height: 88px;
    overflow: hidden;
    gap: 0;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.member-card:hover {
    border-color: rgba(0,201,167,0.3);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.member-card:hover::before {
    opacity: 1;
}

.member-card-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.member-name {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.member-spec {
    font-family: var(--font-code);
    font-size: 11px;
    color: var(--teal);
    opacity: 0.8;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.member-desc {
    font-size: 14px;
    color: rgba(232,240,248,0.6);
    line-height: 1.65;
    flex: 1;
    margin: 0;
}

.member-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    color: var(--teal);
    text-decoration: none;
    opacity: 0.75;
    margin-top: 4px;
    transition: opacity 0.2s ease, gap 0.2s ease;
}

.member-link:hover {
    opacity: 1;
    gap: 8px;
}

.member-link svg {
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* 3-column on tablet */
@media (max-width: 1024px) {
    .members-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 2-column on small tablet */
@media (max-width: 640px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* 2-column on mobile */
@media (max-width: 420px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .members-section {
        padding: 60px 0;
    }
}

/* Keep old .partner / .partners-grid styles for back-compat if referenced elsewhere */

/* ══════════════════════════════════════════════════════
   HERO STATS BAR
══════════════════════════════════════════════════════ */

.hero-stats-bar {
    background: rgba(11,26,48,0.97);
    border-top: 1px solid rgba(0,201,167,0.15);
    border-bottom: 1px solid rgba(0,201,167,0.08);
    padding: 22px 0;
}

.hero-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 40px;
}

.hero-stat-val {
    font-family: var(--font-main);
    font-size: 28px;
    font-weight: 800;
    color: var(--teal);
    line-height: 1;
    letter-spacing: -0.01em;
}

.hero-stat-label {
    font-size: 12px;
    color: rgba(232,240,248,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.hero-stat-sep {
    width: 1px;
    height: 36px;
    background: rgba(0,201,167,0.2);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hero-stats-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 4px 0;
    }
    .hero-stat { padding: 14px 12px; text-align: center; }
    .hero-stat-val { font-size: 22px; }
    .hero-stat-sep { display: none; }
    /* Centre the last stat if odd count */
    .hero-stat:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

