/* =========== GLOBAL VARIABLES & RESET =========== */
:root {
    --primary-color: #2563EB;
    --primary-hover: #1D4ED8;
    --secondary-color: #f8fafc;
    --bg-color: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --error-color: #ef4444;
    --success-color: #10B981;
    --whatsapp-color: #25D366;
    --whatsapp-hover: #1EBE5D;
    --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --border-radius-lg: 16px;
    --border-radius-sm: 8px;
    --transition-speed: 0.3s;
    --max-width: 480px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    line-height: 1.5;
}

/* =========== LAYOUT & CARDS =========== */
.view-container {
    width: 100%;
    max-width: var(--max-width);
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.active-view {
    display: block;
}

.card {
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Subtle gradient accent line at the top of the card */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
}

/* =========== HEADER SECTION =========== */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #FEF2F2;
    color: #DC2626;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.main-heading {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.main-subheading {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* SOCIAL PROOF UPGRADE */
.social-proof-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: rgba(37, 99, 235, 0.05); /* Slightly darker for without character */
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.avatars-animated {
    overflow: hidden;
    width: 170px;
    height: 34px;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.avatar-strip {
    display: flex;
    gap: 8px;
    animation: slideAvatars 15s linear infinite;
    width: max-content;
}

.avatar-strip img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
    object-position: center 15%; /* Focus on faces in portraits */
}

@keyframes slideAvatars {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.social-text-box {
    text-align: center;
}

.counter-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.plus {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.social-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-main);
    max-width: 280px;
}

/* TRUST BADGES */
.trust-badges-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 2rem;
}

.trust-badge-pill {
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.tick {
    color: var(--success-color);
    font-weight: 800;
}

/* PRICING ELEMENT */
.pricing-container {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: var(--border-radius-sm);
    border: 1px dashed var(--primary-color);
}

.limited-offer-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.price-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.original-price {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 600;
    position: relative;
    opacity: 0;
    animation: fadeInPrice 0.5s forwards 1s;
}

.original-price::after {
    content: "";
    position: absolute;
    left: -10%;
    top: 50%;
    width: 0;
    height: 3px;
    background: var(--error-color);
    transform: rotate(-10deg);
    animation: strikePrice 0.5s forwards 1.8s;
}

.free-badge {
    font-size: 2rem;
    font-weight: 900;
    color: var(--success-color);
    background: #ecfdf5;
    padding: 2px 12px;
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.5);
    animation: popFree 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 2.5s;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.1);
}

@keyframes fadeInPrice {
    to { opacity: 0.6; }
}

@keyframes strikePrice {
    to { width: 120%; }
}

@keyframes popFree {
    to { opacity: 1; transform: scale(1); }
}

/* PREMIUM CTA BUTTON */
.special-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.special-cta:hover {
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px) scale(1.02);
}

/* =========== FORM ELEMENTS =========== */

/* =========== FORM ELEMENTS =========== */
.input-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.row {
    display: flex;
    gap: 1rem;
}

.half {
    flex: 1;
}

label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--text-main);
}

.required {
    color: var(--error-color);
}
.optional {
    color: var(--text-muted);
    font-weight: 400;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    color: var(--text-main);
    background-color: #fafbfc;
    transition: all var(--transition-speed) ease;
    appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Select Wrapper */
.select-wrapper {
    position: relative;
}
.select-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
}

/* Validator Messages */
.error-message {
    display: none;
    color: var(--error-color);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
}
.input-error input, .input-error select {
    border-color: var(--error-color);
    background-color: #FEF2F2;
}
.input-error .error-message {
    display: block;
    animation: slideDown 0.2s ease forwards;
}

/* =========== CHECKBOX =========== */
.checkbox-group {
    margin: 1.5rem 0;
}
.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
    position: relative;
}
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.checkmark {
    min-width: 20px;
    height: 20px;
    background-color: #fff;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    margin-right: 10px;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.checkbox-container input:checked ~ .checkmark::after {
    content: "";
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: block;
    margin-top: -2px;
}
.checkbox-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
}
.checkbox-error .checkmark { border-color: var(--error-color); }
.checkbox-error .error-message { display: block; }

/* =========== BUTTONS =========== */
.btn-primary {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px -1px rgba(37, 99, 235, 0.2);
}

/* Button Loading State */
.btn-primary.loading .btn-text {
    opacity: 0;
}
.btn-primary.loading .loader {
    display: block;
}

.loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
}
.hidden { display: none !important; }

/* Secure Note */
.secure-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* =========== SUCCESS VIEW =========== */
.success-card {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 4px solid #d1fae5;
}
.confetti-emoji {
    font-size: 2.5rem;
    animation: bounce 2s infinite ease-in-out;
}

.success-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.final-step-box {
    text-align: left;
    background: #f8fafc;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 4px var(--border-radius-sm) var(--border-radius-sm) 4px;
    margin-bottom: 1.5rem;
}
.step-label {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
}
.step-desc {
    font-size: 0.875rem;
    font-weight: 500;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* =========== PREMIUM TICKET STYLE =========== */
.premium-ticket {
    background: #ffffff;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    position: relative;
    margin: 1.5rem 0;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.08);
    transition: transform 0.3s ease;
}

.premium-ticket:hover {
    transform: scale(1.02);
}

.ticket-header {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.ticket-id {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

.ticket-footer {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #92400E;
    background: #FFF9F2;
    padding: 0.75rem;
    border-radius: 8px;
    line-height: 1.4;
    border: 1px solid #FDE68A;
}

/* Ticket Side Notches */
.ticket-accent-left, .ticket-accent-right {
    position: absolute;
    top: 50%;
    width: 24px;
    height: 24px;
    background: #ffffff; /* Matches card background */
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.ticket-accent-left {
    left: -14px;
    border-left-color: transparent;
    border-bottom-color: transparent;
    transform: translateY(-50%) rotate(45deg);
}

.ticket-accent-right {
    right: -14px;
    border-right-color: transparent;
    border-top-color: transparent;
    transform: translateY(-50%) rotate(45deg);
}


/* Courses Reward Section */
.courses-reward-section {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.reward-header {
    margin-bottom: 1.25rem;
}

.reward-tag {
    font-size: 0.625rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.reward-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.reward-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.course-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid #eef2f6;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.course-card:hover {
    transform: translateX(4px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.course-check {
    font-size: 1.25rem;
}

.course-info {
    flex: 1;
}

.course-info strong {
    display: block;
    font-size: 0.875rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.course-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.course-card .chevron {
    width: 16px;
    height: 16px;
    color: var(--border-color);
    transition: color 0.2s;
}

.course-card:hover .chevron {
    color: var(--primary-color);
}

@media (max-width: 400px) {
    .zoom-download-btns {
        grid-template-columns: 1fr;
    }
}

.registration-id {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px dashed var(--border-color);
    padding-top: 1rem;
}

/* =========== ANIMATIONS =========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* =========== MEDIA QUERIES =========== */
@media (max-width: 480px) {
    .row {
        flex-direction: column;
        gap: 0;
    }
    .card {
        padding: 1.5rem;
    }
    h1 {
        font-size: 1.375rem;
    }
}
