/* ================================================
   LP CRESCER — Custom Styles
   Lumni Educação Design System
   ================================================ */

/* ---- Topbar ---- */
.lp-topbar {
    background: white;
    box-shadow: 0 2px 8px rgba(8, 63, 207, 0.08);
    position: sticky;
    top: 0;
    z-index: 200;
    padding: 0.875rem 0;
}
.lp-topbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lp-topbar__logo img {
    height: 36px;
    width: auto;
}
.lp-topbar__cta {
    height: 44px;
    padding: 0 1.5rem;
    font-size: 0.9rem;
    text-decoration: none;
}

/* ---- Hero Form Card ---- */
.lp-hero-form-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.75rem 1.5rem;
    box-shadow: 0 24px 48px rgba(8, 63, 207, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 480px;
    margin-left: auto;
}
.lp-hero-form-card__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color, #083FCF);
    margin-bottom: 0.35rem;
}
.lp-hero-form-card__subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 0.875rem;
    color: var(--text-light, #6b7280);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

/* ---- Hero images override to accommodate form ---- */
.hero-images .lp-hero-form-card {
    align-self: center;
}

/* ---- Form shared styles ---- */
.lp-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}
.lp-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.lp-form-group label {
    font-family: 'Nunito', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #374151;
    letter-spacing: 0.01em;
}
.lp-form-group input,
.lp-form-group select {
    border: 1.5px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    padding: 0.6rem 0.875rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.875rem;
    color: var(--text-color, #1F2937);
    background: white;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}
.lp-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.25rem;
}
.lp-form-group input:focus,
.lp-form-group select:focus {
    border-color: var(--primary-color, #083FCF);
    box-shadow: 0 0 0 3px rgba(8, 63, 207, 0.1);
}
.lp-form-group input.lp-input-error,
.lp-form-group select.lp-input-error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.lp-field-error {
    font-size: 0.72rem;
    color: #EF4444;
    font-family: 'Nunito', sans-serif;
    margin-top: 0.1rem;
}
.lp-form-required {
    color: var(--secondary-color, #FC7D55);
}
.lp-form-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--secondary-color, #FC7D55) 0%, var(--tertiary-color, #B073FF) 100%);
    color: white;
    border: none;
    padding: 0;
    height: 52px;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    position: relative;
    overflow: hidden;
}
.lp-form-submit:hover {
    background: linear-gradient(135deg, var(--tertiary-color, #B073FF) 0%, var(--secondary-color, #FC7D55) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 125, 85, 0.4);
}
.lp-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.lp-form-note {
    text-align: center;
    font-family: 'Nunito', sans-serif;
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 0.625rem;
}

/* ---- Final form section at bottom ---- */
.lp-form-final-section {
    background: linear-gradient(135deg, var(--primary-color, #083FCF) 0%, var(--tertiary-color, #B073FF) 100%);
    padding: 5rem 0 4rem;
    color: white;
}
.lp-form-final-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}
.lp-form-final-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    line-height: 1.2;
}
.lp-form-final-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.lp-form-final-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2.25rem 2rem;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.25);
    text-align: left;
}

/* ---- Ripple animation for scroll-to-form buttons ---- */
.btn--scroll-to-form {
    position: relative;
    overflow: hidden;
}
.lp-btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    width: 10px;
    height: 10px;
    transform: scale(0);
    animation: lp-ripple-anim 0.6s linear forwards;
    pointer-events: none;
}
@keyframes lp-ripple-anim {
    to { transform: scale(6); opacity: 0; }
}

/* ---- Form section highlight when scrolling ---- */
@keyframes lp-form-highlight-anim {
    0%   { box-shadow: 0 32px 64px rgba(0,0,0,0.25); }
    30%  { box-shadow: 0 32px 64px rgba(0,0,0,0.25), 0 0 0 12px rgba(252, 125, 85, 0.25); }
    70%  { box-shadow: 0 32px 64px rgba(0,0,0,0.25), 0 0 0 24px rgba(252, 125, 85, 0.08); }
    100% { box-shadow: 0 32px 64px rgba(0,0,0,0.25), 0 0 0 32px rgba(252, 125, 85, 0); }
}
.lp-form-final-card--highlight {
    animation: lp-form-highlight-anim 0.9s ease-out;
}

/* ---- WhatsApp button (secondary variant for dark backgrounds) ---- */
.btn-whatsapp-lumni {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    padding: 0 1.5rem;
    height: 60px;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.btn-whatsapp-lumni:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-2px);
    color: white;
}
.btn-whatsapp-lumni svg {
    flex-shrink: 0;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .lp-hero-form-card {
        max-width: 100%;
        margin-left: 0;
        margin-top: 2rem;
    }
}
@media (max-width: 768px) {
    .lp-form-grid-2 {
        grid-template-columns: 1fr;
    }
    .lp-topbar__cta {
        display: none;
    }
    .lp-form-final-title {
        font-size: 1.875rem;
    }
    .lp-form-final-card {
        padding: 1.75rem 1.25rem;
    }
    .lp-form-final-subtitle {
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    .lp-form-final-title {
        font-size: 1.5rem;
    }
}
