/**
 * Seção OTP via WhatsApp - CINNDI
 */

.otp {
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
}

.otp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.otp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Badge */
.otp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #dcfce7 0%, #dbeafe 100%);
    color: #16a34a;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.otp-badge svg {
    width: 16px;
    height: 16px;
}

.otp-titulo {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 20px;
}

.otp-titulo span {
    background: linear-gradient(90deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.otp-descricao {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 32px;
}

.otp-vantagens {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.otp-vantagem {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.otp-vantagem-icone {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.otp-vantagem-icone svg {
    width: 18px;
    height: 18px;
    color: #16a34a;
}

.otp-vantagem strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}

.otp-vantagem span {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

.otp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    background: #25d366;
    color: white;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.otp-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

/* Visual */
.otp-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.otp-mockup {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Balão do código chegando */
.otp-mockup-chat {
    background: #ffffff;
    border-radius: 20px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

.otp-mockup-topo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.otp-mockup-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.otp-mockup-avatar svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

.otp-mockup-topo strong {
    display: block;
    font-size: 0.85rem;
    color: #0f172a;
}

.otp-mockup-topo span {
    font-size: 0.7rem;
    color: #64748b;
}

.otp-mockup-balao {
    background: #dcf8c6;
    border-radius: 12px;
    border-bottom-right-radius: 2px;
    padding: 12px 14px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #111827;
}

.otp-mockup-balao b {
    letter-spacing: 0.05em;
}

.otp-mockup-selo {
    margin-top: 8px;
    text-align: right;
    font-size: 0.7rem;
    color: #16a34a;
    font-weight: 600;
}

/* Form de confirmação */
.otp-mockup-form {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
}

.otp-mockup-form-titulo {
    display: block;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.otp-mockup-digitos {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.otp-mockup-digito {
    width: 38px;
    height: 46px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
}

.otp-mockup-digito--preenchido {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.12);
}

.otp-mockup-digito--ativo {
    border-color: #3b82f6;
    animation: otpDigitoPulso 1.2s ease-in-out infinite;
}

@keyframes otpDigitoPulso {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25); }
}

.otp-mockup-verificado {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6ee7b7;
}

.otp-mockup-verificado svg {
    width: 16px;
    height: 16px;
}

/* Responsivo */
@media (max-width: 968px) {
    .otp {
        padding: 80px 0;
    }

    .otp-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .otp-conteudo {
        order: 2;
        text-align: center;
    }

    .otp-visual {
        order: 1;
    }

    .otp-vantagens {
        text-align: left;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 36px;
    }

    .otp-btn {
        width: 100%;
        justify-content: center;
        max-width: 400px;
    }
}

@media (max-width: 640px) {
    .otp {
        padding: 60px 0;
    }

    .otp-mockup {
        max-width: 100%;
    }
}
