/* Programa de Indicação — /indique e /i/{codigo}
   Usa as variáveis do style.css. Nada aqui sobrescreve componente global. */

.ind-hero {
    background: linear-gradient(135deg, #0066FF 0%, #0052CC 100%);
    color: #fff;
    padding: 140px 0 70px;
}

.ind-hero h1 {
    color: #fff;
    margin-bottom: 18px;
}

.ind-hero p {
    font-size: 1.15rem;
    opacity: .92;
    max-width: 640px;
    margin: 0 auto;
}

.ind-hero .label {
    background: rgba(255, 255, 255, .18);
    color: #fff;
    margin-bottom: 18px;
}

.ind-hero-inner {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

/* Passo a passo */
.ind-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    max-width: 980px;
    margin: 0 auto;
}

.ind-step {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.ind-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--blue-light);
    color: var(--blue);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.ind-step h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.ind-step p {
    color: var(--gray-700);
    font-size: .95rem;
    line-height: 1.65;
    margin: 0;
}

/* Formulário */
.ind-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 34px;
}

.ind-field {
    margin-bottom: 18px;
}

.ind-field label {
    display: block;
    font-weight: 600;
    font-size: .92rem;
    margin-bottom: 7px;
    color: var(--gray-800);
}

.ind-field .ind-opt {
    font-weight: 400;
    color: var(--gray-500);
}

.ind-field input,
.ind-field select,
.ind-field textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--gray-900);
    background: var(--white);
    transition: border-color .15s, box-shadow .15s;
}

.ind-field input:focus,
.ind-field select:focus,
.ind-field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, .12);
}

.ind-field textarea {
    resize: vertical;
    min-height: 96px;
}

.ind-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ind-help {
    font-size: .85rem;
    color: var(--gray-600);
    margin-top: 6px;
}

.ind-consent {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: .9rem;
    color: var(--gray-700);
    line-height: 1.55;
    margin: 22px 0;
}

.ind-consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--blue);
}

.ind-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    font-size: .92rem;
    margin-bottom: 18px;
}

/* Honeypot: fora da tela, mas não display:none — robô ignora campo escondido assim */
.ind-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Resultado: o link gerado */
.ind-result {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border: 2px solid var(--green);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 34px;
    text-align: center;
}

.ind-result-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.ind-link-box {
    display: flex;
    gap: 10px;
    margin: 22px 0 8px;
}

.ind-link-box input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue);
    background: var(--gray-100);
    text-align: center;
}

.ind-copied {
    color: #16a34a;
    font-size: .9rem;
    font-weight: 600;
    min-height: 22px;
}

.ind-share {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 18px;
}

/* Landing do indicado */
.ind-by {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    padding: 10px 22px 10px 12px;
    margin-bottom: 22px;
}

.ind-by-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    font-family: var(--font-display);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ind-by-text {
    text-align: left;
    line-height: 1.3;
}

.ind-by-text small {
    display: block;
    opacity: .8;
    font-size: .78rem;
}

.ind-by-text strong {
    font-size: 1.02rem;
}

@media (max-width: 768px) {

    .ind-steps,
    .ind-row {
        grid-template-columns: 1fr;
    }

    .ind-hero {
        padding: 120px 0 50px;
    }

    .ind-form-wrap,
    .ind-result {
        padding: 24px 20px;
    }

    .ind-link-box {
        flex-direction: column;
    }
}
