/* =========================================
   REGISTER / CTA SECTION
   Scoped to .register-section-root
   Design: Asymmetrical Glass Panels
========================================= */

.register-section-root {
    --reg-bg-gradient: linear-gradient(180deg, #2a1b3d 0%, #442661 100%);
    --reg-accent-purple: #9d4edd;
    /* Lavender/Purple */
    --reg-accent-dark: #7e22ce;
    --reg-glass-surface: rgba(157, 78, 221, 0.12);
    --reg-glass-border: rgba(157, 78, 221, 0.3);
    --reg-text-main: #ffffff;
    --reg-text-muted: #f3e8ff;
    --reg-whatsapp-green: #25D366;
    --reg-shadow: 0 25px 50px -12px rgba(157, 78, 221, 0.25);
}

.register-section {
    background: var(--reg-bg-gradient);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    color: var(--reg-text-main);
}

/* Ambient Background Glows */
.register-section::before,
.register-section::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.register-section::before {
    background: var(--reg-accent-purple);
    top: -100px;
    left: -100px;
}

.register-section::after {
    background: #4f46e5;
    /* Indigo hint */
    bottom: -100px;
    right: -100px;
}

.register-container {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header --- */
.register-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 1;
    /* GSAP will handle anim */
}

.register-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.register-title .highlight {
    background: linear-gradient(to right, #e0aaff, #9d4edd);
    -webkit-background-clip: text;
    background-clip: text;
    /* standard compliant */
    -webkit-text-fill-color: transparent;
}

.register-subtitle {
    font-size: 1.2rem;
    color: var(--reg-text-muted);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Asymmetrical Layout --- */
.register-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Common Card Styles */
.register-card {
    background: var(--reg-glass-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--reg-glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--reg-shadow);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.register-card:hover {
    transform: translateY(-5px);
    border-color: rgba(157, 78, 221, 0.5);
}

/* Left Card: Highlights */
.highlights-card {
    padding: 40px;
    position: relative;
    z-index: 10;
}

.card-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--reg-accent-purple);
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

.highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.highlight-icon {
    width: 40px;
    height: 40px;
    background: rgba(157, 78, 221, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--reg-accent-purple);
    flex-shrink: 0;
}

.highlight-text {
    font-weight: 500;
    font-size: 1.05rem;
}

/* Featured Highlight Item */
.highlight-item.highlight-item-featured {
    grid-column: span 2;
    background: linear-gradient(90deg, rgba(157, 78, 221, 0.25), rgba(157, 78, 221, 0.1));
    border: 1px solid var(--reg-accent-purple);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.4);
    padding: 16px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.highlight-item-featured .highlight-icon {
    background: var(--reg-accent-purple);
    color: #fff;
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.6);
    transform: scale(1.1);
}

.highlight-item-featured .highlight-text {
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    text-shadow: 0 0 8px rgba(157, 78, 221, 0.6);
}

/* Shine effect */
.highlight-item-featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* Tooltip Styles */
.highlight-tooltip {
    visibility: hidden;
    width: 320px;
    background-color: var(--reg-text-muted);
    /* Using existing variable for light background? No, better dark */
    background: rgba(18, 12, 36, 0.98);
    color: #ffffff;
    text-align: center;
    border-radius: 12px;
    padding: 16px;

    /* Position */
    position: absolute;
    z-index: 100;
    top: 125%;
    /* Start from below */
    left: 50%;
    transform: translateX(-50%);

    /* Animation */
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);

    /* Visuals */
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
    border: 1px solid var(--reg-accent-purple);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

/* Arrow */
.highlight-tooltip::after {
    content: " ";
    position: absolute;
    bottom: 100%;
    /* At the top of the tooltip */
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent var(--reg-accent-purple) transparent;
}

/* Show on Hover */
.highlight-item-featured:hover {
    overflow: visible;
    /* Show tooltip outside */
    z-index: 10;
    border-color: #e0aaff;
    background: rgba(157, 78, 221, 0.2);
}

/* Hide shine on hover to prevent unsightly spillover when overflow is visible */
.highlight-item-featured:hover::after {
    opacity: 0;
    transition: opacity 0.2s;
}

.highlight-item-featured:hover .highlight-tooltip {
    visibility: visible;
    opacity: 1;
    top: 115%;
    /* Slide up slightly into position */
    transform: translateX(-50%) translateY(0);
}

/* Right Card: Connect */
.connect-card {
    background: linear-gradient(145deg, rgba(157, 78, 221, 0.15), rgba(157, 78, 221, 0.05));
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(157, 78, 221, 0.3);
    transform: translateY(30px);
    /* Visual offset offset */
}

/* Fix hover transform conflict for offset card */
.connect-card:hover {
    transform: translateY(25px);
    /* Lift slightly from offset */
}

.connect-text {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--reg-text-muted);
    line-height: 1.5;
    text-align: justify;
}

/* Buttons */
.btn-whatsapp {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid var(--reg-whatsapp-green);
    color: var(--reg-whatsapp-green);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
}

.btn-whatsapp:hover {
    background: var(--reg-whatsapp-green);
    color: #fff;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

/* Bottom Main CTA */
.register-cta-wrapper {
    margin-top: 50px;
    text-align: center;
}

.btn-register-main {
    background: linear-gradient(to right, #9d4edd, #e0aaff);
    color: white;
    padding: 18px 50px;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.btn-register-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-register-main:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 20px 40px rgba(157, 78, 221, 0.5);
}

.btn-register-main:hover::before {
    left: 100%;
}


/* --- Responsive --- */
@media (max-width: 992px) {
    .register-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .connect-card {
        transform: translateY(0);
        text-align: center;
        padding: 30px;
    }

    .connect-card:hover {
        transform: translateY(-5px);
    }

    .register-title {
        font-size: 2.5rem;
    }

    .register-header {
        margin-bottom: 40px;
    }

    .highlight-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .highlight-item.highlight-item-featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .register-section {
        padding: 60px 0;
    }

    .register-card {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .register-title {
        font-size: 2rem;
    }

    .highlight-text {
        font-size: 1rem;
    }

    .btn-register-main {
        width: 100%;
        padding: 16px 20px;
        font-size: 1.1rem;
    }

    .register-title br {
        display: none;
    }

    .register-subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .register-section {
        padding: 50px 0;
    }

    .register-title {
        font-size: 1.75rem;
    }

    .highlight-text {
        font-size: 0.9rem;
    }

    .highlight-item-featured .highlight-text {
        font-size: 0.95rem;
    }

    .highlight-tooltip {
        width: 260px;
        max-width: calc(100vw - 30px);
        font-size: 0.85rem;
        padding: 10px;
    }

    .register-subtitle {
        font-size: 0.95rem;
    }

    .btn-whatsapp {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .btn-register-main {
        font-size: 1rem;
        padding: 14px 20px;
    }
}