/* =============================================
   Blog CTA Section
   ============================================= */

/* 1. CORE SECTION STYLE */
.blog-cta-section {
    position: relative;
    padding: 120px 0 100px 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
    color: #111;
}

/* 2. LAYOUT & GRID */
.blog-cta-section .container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.giant-layout {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* 3. TEXT SIDE */
.giant-headline {
    font-size: 72px;
    line-height: 1.05;
    font-weight: 800 !important;
    color: #111;
    margin: 0 0 30px -5px;
}

/* Badges */
.giant-badges {
    display: flex;
    align-items: center;
    gap: 30px;
}

.g-badge {
    display: flex;
    flex-direction: column;
    cursor: default;
    position: relative;
}

.gb-val {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    line-height: 1;
    margin-bottom: 5px;
}

.gb-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    line-height: 1.3;
}

.g-separator {
    width: 1px;
    height: 40px;
    background: #ddd;
}

/* Tooltip */
.has-tooltip .badge-trigger {
    cursor: help;
    border-bottom: 1px dotted #bbb;
    padding-bottom: 2px;
}

.trust-popup {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.9);
    background: #FFFFFF;
    width: 220px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
    text-align: center;
    pointer-events: none;
}

.trust-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #FFF transparent transparent transparent;
}

.has-tooltip:hover .trust-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.stars {
    color: #FCDB00;
    letter-spacing: 2px;
    font-size: 14px;
}

.score-txt {
    font-weight: 800;
    font-size: 12px;
    color: #111;
}

.popup-sub {
    font-size: 10px;
    color: #666;
    margin: 0 0 10px 0;
}

.popup-logos {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.verified-check {
    font-size: 10px;
    font-weight: 700;
    color: #34a853;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* 4. FORM CARD STYLE */
.form-hero-wrapper {
    position: relative;
    z-index: 10;
    margin-top: 20px;
}

.brand-floating-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background-color: #FCDB00;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(252, 219, 0, 0.4);
    z-index: 20;
    border: 2px solid #f0f0f0;
    animation: floatBadge 4s ease-in-out infinite;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.trust-form-card.brand-focused {
    background: #ffffff;
    width: 100%;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border-top: 8px solid #FCDB00;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.trust-form-card.brand-focused:hover {
    transform: translateY(-5px);
}

.form-header {
    background: #fff;
    padding: 30px 40px 20px 40px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.trust-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    font-weight: 700;
    margin-bottom: 10px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    opacity: 0.6;
    filter: grayscale(100%);
}

.trust-logos img {
    height: 20px;
    width: auto;
}

.form-header h2 {
    margin: 0 0 5px 0;
    color: #111;
    font-size: 24px;
    font-weight: 700;
}

.sub-head {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.modern-form {
    padding: 30px 35px;
    background: #fff;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

.modern-form label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

/* Inputs */
.blog-cta-section input[type="text"],
.blog-cta-section input[type="email"],
.blog-cta-section input[type="tel"],
.blog-cta-section select {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #111;
    box-sizing: border-box;
    transition: 0.2s;
}

.blog-cta-section input:focus,
.blog-cta-section select:focus {
    border-color: #000;
    outline: none;
}

.input-wrapper {
    position: relative;
}



/* Radio Select */
.radio-select-group {
    display: flex;
    gap: 10px;
}

.radio-card {
    flex: 1;
    cursor: pointer;
    position: relative;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.card-content {
    display: block;
    text-align: center;
    padding: 10px 5px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    transition: all 0.2s;
    background: #fff;
}

.radio-card input:checked+.card-content {
    background: #111;
    color: #fff;
    border-color: #111;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.select-wrapper .arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #888;
    pointer-events: none;
}

/* Button */
.cta-button,
#blog-cta-submit-btn.cta-button {
    width: 100% !important;
    padding: 16px !important;
    background: #000000 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s, background 0.2s;
    margin-top: 10px !important;
    box-shadow: none;
    line-height: normal !important;
    text-shadow: none !important;
}

.cta-button:hover,
#blog-cta-submit-btn.cta-button:hover {
    background: #FCDB00 !important;
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.btn-arrow {
    margin-left: 10px;
    transition: transform 0.2s;
}

.cta-button:hover .btn-arrow {
    transform: translateX(5px);
}

.security-note {
    margin-top: 15px;
    font-size: 11px;
    color: #999;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Animations */
.anim-item {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.blog-cta-section.is-visible .anim-item {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.4s;
}

.focus-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid #FCDB00;
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    animation: pulseRing 2s infinite;
}

.focus-hint {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: 700;
    color: #000;
    background: #FCDB00;
    padding: 3px 8px;
    border-radius: 4px;
    opacity: 1;
    pointer-events: none;
    animation: hintBounce 2s infinite;
    transition: opacity 0.2s;
}

.animation-killed {
    display: none !important;
    animation: none !important;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.98);
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(252, 219, 0, 0.7);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 10px 0 rgba(252, 219, 0, 0.1);
    }

    100% {
        transform: scale(1.02);
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(252, 219, 0, 0);
    }
}

@keyframes hintBounce {

    0%,
    100% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(-55%);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.shimmer-btn {
    position: relative;
    overflow: hidden;
}

.shimmer-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    animation: shimmer 3s infinite 2s;
}

/* =========================================
   MOBILE OPTIMIZATION
   ========================================= */
@media (max-width: 900px) {

    /* 1. Section Padding reduzieren */
    .blog-cta-section {
        padding: 80px 0 60px 0;
    }

    /* 2. Stack Layout (Text oben, Form unten) */
    .giant-layout {
        display: flex;
        flex-direction: column;
        gap: 60px;
    }

    /* 3. Text Anpassung */
    .giant-text-side {
        text-align: center;
    }

    .giant-headline {
        font-size: 42px;
        margin-bottom: 20px;
    }

    .giant-badges {
        justify-content: center;
    }

    /* 4. Formular Padding anpassen für Mobile */
    .modern-form {
        padding: 25px 20px;
    }

    .form-header {
        padding: 25px 20px;
    }

    /* 5. Inputs Stapeln statt nebeneinander */
    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-group.half {
        width: 100%;
    }

    /* 6. Touch-Targets vergrößern */
    .blog-cta-section input,
    .blog-cta-section select,
    .cta-button {
        min-height: 50px;
    }

    /* 7. Floating Badge perfekt zentrieren */
    .brand-floating-badge {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        top: -15px;
        width: max-content;
        animation: none;
    }
}