/* === SEÇÃO "RECEBA UMA LIGAÇÃO AGORA" - HOME CINNDI === */

.ligar {
    position: relative;
    overflow: hidden;
    padding: 46px 20px;
    background:
        radial-gradient(50% 140% at 100% 0%, rgba(96, 165, 250, .35), transparent 60%),
        radial-gradient(45% 120% at 0% 100%, rgba(52, 211, 153, .28), transparent 60%),
        linear-gradient(120deg, #1d4ed8, #2563eb 55%, #0ea5e9);
    color: #ffffff;
}

.ligar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.ligar-texto { max-width: 680px; }

.ligar::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 58%;
    width: 760px;
    height: 760px;
    margin: -380px 0 0 -380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 62%);
    animation: ligar-luz 5s ease-in-out infinite;
    pointer-events: none;
}

.ligar-container { position: relative; z-index: 1; }

.ligar-selo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ligar-pulso {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #4ade80;
}

.ligar-pulso::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #4ade80;
    animation: ligar-onda 1.8s ease-out infinite;
}

.ligar-titulo {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.ligar-sub {
    margin: 0;
    color: rgba(255, 255, 255, .9);
    font-size: 17px;
    line-height: 1.55;
}

.ligar-form {
    position: relative;
    width: 100%;
    max-width: 640px;
    padding: 22px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 22px 50px rgba(2, 6, 23, .28), 0 0 0 6px rgba(255, 255, 255, .14);
    text-align: left;
    animation: ligar-subir .7s ease-out backwards;
    transition: box-shadow .3s ease, transform .3s ease;
}

.ligar-form:focus-within,
.ligar-form.ligar-digitando {
    transform: translateY(-3px);
    box-shadow: 0 28px 60px rgba(2, 6, 23, .32), 0 0 0 8px rgba(74, 222, 128, .35);
}

.ligar-form.ligar-chamando { box-shadow: 0 28px 60px rgba(2, 6, 23, .32), 0 0 0 8px rgba(74, 222, 128, .55); }
.ligar-form.ligar-chamando .ligar-campo svg { animation: ligar-tocar .9s ease-in-out infinite; }

.ligar-mel {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ligar-linha {
    display: flex;
    gap: 10px;
}

.ligar-campo {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 10px;
    min-width: 0;
    height: 56px;
    padding: 0 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    transition: border-color .2s, background .2s;
}

.ligar-campo:focus-within {
    border-color: #2563eb;
    background: #ffffff;
    color: #2563eb;
}

.ligar-campo svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.ligar-campo input {
    flex: 1 1 0;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
}

.ligar-campo input::placeholder { color: #94a3b8; font-weight: 500; }

.ligar-botao {
    flex: 0 0 auto;
    height: 56px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(120deg, #16a34a, #22c55e);
    color: #ffffff;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(34, 197, 94, .35);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.ligar-botao { position: relative; overflow: hidden; }

.ligar-botao::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0));
    transform: skewX(-20deg);
    animation: ligar-brilho 3.2s ease-in-out infinite;
}

.ligar-botao:disabled::after { animation: none; }

.ligar-botao:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(34, 197, 94, .45); }
.ligar-botao:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }

.ligar-retorno {
    min-height: 20px;
    margin: 12px 2px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.ligar-retorno:empty { display: none; }

.ligar-previa {
    margin: 12px 2px 0;
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    animation: ligar-surgir .3s ease-out;
}

.ligar-previa:empty { display: none; }
.ligar-ok { color: #15803d; }
.ligar-erro { color: #b91c1c; }

@keyframes ligar-luz {
    0%, 100% { opacity: .55; transform: scale(.94); }
    50% { opacity: 1; transform: scale(1.04); }
}

@keyframes ligar-subir {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ligar-brilho {
    0%, 60% { left: -60%; }
    100% { left: 130%; }
}

@keyframes ligar-tocar {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-14deg); }
    40% { transform: rotate(14deg); }
    60% { transform: rotate(-10deg); }
    80% { transform: rotate(8deg); }
}

@keyframes ligar-surgir {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ligar-onda {
    from { transform: scale(1); opacity: .7; }
    to { transform: scale(3.2); opacity: 0; }
}

@media (max-width: 900px) {
    .ligar-container { gap: 22px; }
    .ligar::before { width: 520px; height: 520px; margin: -260px 0 0 -260px; }
}

@media (max-width: 560px) {
    .ligar { padding: 38px 16px; }
    .ligar-titulo { font-size: 26px; }
    .ligar-sub { font-size: 15px; }
    .ligar-form { padding: 16px; }
    .ligar-linha { flex-direction: column; }
    .ligar-campo { flex: 0 0 auto; }
    .ligar-botao { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .ligar-pulso::after,
    .ligar::before,
    .ligar-form,
    .ligar-botao::after,
    .ligar-form.ligar-chamando .ligar-campo svg,
    .ligar-previa { animation: none; }
}
