/* --- BODY --- */
body,
html {
    margin: 0;
    font-family: sans-serif;
    background: linear-gradient(135deg, #f8fbff, #edf5ff, #e3efff);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* --- PAGE CONTAINER --- */
.page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
    width: 100%
}

/* --- TOP SECTION --- */
.top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* --- BOTTOM SECTION --- */
.bottom-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60%;
}

/* --- WELCOME TEXT --- */
#welcome-text {
    font-size: 2.3rem;
    font-weight: 600;
    color: #004DCE;
    opacity: 0;
}

.welcome-visible {
    animation: fadeIn 1.4s forwards ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MESSAGE AFTER ANIMATION --- */
#after-message {

    text-align: start;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #070707ff;


}

.message-container {
    margin-top: 20px;
    max-width: 75%;
    min-height: 120px;
    overflow-wrap: break-word;

}

/* --- LETTER BY LETTER --- */
.letter {
    opacity: 0;
    display: inline;
    animation: msgFadeIn 0.04s forwards;
}

@keyframes msgFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- LOGO ANIMATION --- */
.logo-full-container {
    display: flex;
    align-items: center;
}

.logo-letter {
    color: #004DCE;
    font-size: 2.5rem;
    font-weight: bold;
    padding: 0 5px;
    opacity: 0;
    animation: fall-in 0.9s forwards ease-out;
}

.logo-icon {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
    opacity: 0;
    animation: fall-in 0.9s forwards ease-out;
}

@keyframes fall-in {
    0% {
        opacity: 0;
        transform: translateY(-100vh) scale(0.5);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animation delays */
.logo-icon {
    animation-delay: 0.1s;
}

.logo-full-container :nth-child(2) {
    animation-delay: 0.2s;
}

.logo-full-container :nth-child(3) {
    animation-delay: 0.3s;
}

.logo-full-container :nth-child(4) {
    animation-delay: 0.4s;
}

.logo-full-container :nth-child(5) {
    animation-delay: 0.5s;
}

.logo-full-container :nth-child(6) {
    animation-delay: 0.6s;
}

.logo-full-container :nth-child(7) {
    animation-delay: 0.7s;
}

.logo-full-container :nth-child(8) {
    animation-delay: 0.8s;
}

/* --- BOUTON CTA & VALIDATION --- */
#cta-button {
    padding: 12px 35px;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    background-color: #004DCE;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 77, 206, 0.4);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

#cta-button:hover {
    background-color: #003AA8;
    box-shadow: 0 6px 20px rgba(0, 77, 206, 0.6);
}


.cta-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* --- MODERN INPUT --- */
.modern-floating-group {
    width: 100%;
}

.modern-input {
    position: relative;
}

.modern-input .input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #7aa9ff;
    opacity: 0.8;
}

.modern-input .form-control {
    padding-right: 45px !important;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    transition: all 0.25s ease;
}

.modern-input .form-control:focus {
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 12px rgba(90, 150, 255, 0.55);
    border-color: #7aa9ff;
}

.modern-input label {
    padding-left: 12px;
    color: #4b6dbf;
    font-weight: 500;
}

.modern-input .form-control:not(:placeholder-shown)~label {
    color: #3c5cb0;
}

.modern-input .form-control:hover {
    border-color: #8fb7ff;
}

.modern-input .form-control:focus~.input-icon {
    color: #4d7dff;
    opacity: 1;
    cursor: pointer;
}

.input-icon.active {
    opacity: 1;
    cursor: pointer;
    color: #4d7dff;
}


/* Email readonly style */
.form-control.readonly {
    background: rgba(235, 235, 235, 0.6) !important;
    cursor: not-allowed;
}


#email-container,
#password-container,
#confirmPassword-container,
#firstName-container,
#lastName-container,
#sector-container,
#business-container,
#phone-container {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    margin-top: 20px;
    width: 60%;
    justify-content: center;
}

#plan-display {
    display: flex;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    margin-top: 20px;
    justify-content: center;
    display: flex !important;
    flex-direction: column;
    margin-bottom: 20px;
}

#email-container.show,
#password-container.show,
#confirmPassword-container.show,
#firstName-container.show,
#lastName-container.show,
#sector-container.show,
#business-container.show,
#phone-container.show,
#plan-display.show {
    display: flex;
    opacity: 1;
    transform: translateY(-10px);
}

.plan-summary-box {
    padding: 15px;
    border-radius: 10px;
    background: #f7f7f7;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}


.intro-question {
    color: #3c5cb0;
    opacity: 0;
    margin-bottom: 20px;
    font-size: 1rem;
}

.input-container {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.answer-bubble {
    padding: 10px 18px;
    margin: 8px 0;
    font-size: 1rem;
    color: white;
    text-align: left;
    width: fit-content;
}


@keyframes bubbleFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.answers-list {
    width: 90%;
    margin-bottom: 20px;
    display: flex;
    justify-content: end;
}

#final-spacer {
    height: 70px;
}

.validate-btn {
    display: flex;
    justify-content: center;
}

.validate-button {
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background-color: #004DCE;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 77, 206, 0.4);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}


.validate-button:hover {
    background-color: #003AA8;
    box-shadow: 0 6px 20px rgba(0, 77, 206, 0.6);
}

.single-plan-summary-box {
    cursor: pointer;
    transition: all 0.3s ease;
    padding-right: 40px;
}

.single-plan-summary-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.single-plan-summary-box.selected-plan {
    border: 2px solid #0d6efd;
    background-color: #e7f1ff;
}

.plan-radio-bubble {
    width: 20px;
    height: 20px;
    border: 2px solid #e7f1ff;
    border-radius: 4px;
    background-color: white;
    position: relative;
    transition: all 0.2s ease;
}

.plan-radio-bubble.selected {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.plan-radio-bubble.selected::after {
    content: "✔";
    color: white;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.answer-bubble-wrapper {
    display: flex;
    align-items: center;
    background: #7aa9ff;
    border-radius: 12px;

}


.edit-icon {
    padding: 10px;
    font-size: 18px;
    opacity: 0.7;
    transition: 0.2s;
}

.edit-icon:hover {
    opacity: 1;
    transform: scale(1.2);
}

.ai-builder-addon {
    background-color: #007bff;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ai-builder-addon .card-title {
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.2;
    color: white;
}

.card-addon-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.ai-builder-addon .card-description {
    font-size: 1em;
    line-height: 1.5;
}

.addon-price-block {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.addon-price {
    font-size: 1.6em;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
}

.addon-price-details {
    font-size: 1.1em;
    font-weight: 500;
    opacity: 0.9;
}

.promo-icon {
    font-size: 2.5rem;
    color: var(--primary);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

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



.join-button {
    background-color: #f4f6fa;
    color: #233156;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.join-button:hover {
    background-color: #e0e0e0;
}

.addon-button {
    width: 100%;
    padding: 12px 0;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 30px 40px;
}

.price-content {
    min-height: 220px;
    transition: opacity 0.3s ease;
}

.error-message {
    color: #e63946;
    font-size: 0.9rem;
    margin-top: 5px;
    padding-left: 5px;
}


@media (max-width: 576px) {

    .bottom-section {
        width: 100%;
    }

    #email-container,
    #password-container,
    #confirmPassword-container,
    #firstName-container,
    #lastName-container,
    #sector-container,
    #business-container,
    #phone-container {
        width: 100%;
    }
}