/* ===== Afiliados Pro — Formulário Frontend ===== */

@keyframes afpro-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}
.afpro-shake {
    animation: afpro-shake 0.5s ease;
}
.afpro-wrap {
    max-width: 540px;
    margin: 0 auto;
    font-family: inherit;
}

.afpro-wrap * {
    box-sizing: border-box;
}

.afpro-messages {
    margin-bottom: 16px;
}

.afpro-messages .afpro-notice {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 8px;
}

.afpro-messages .afpro-notice--success {
    background: #e6f4ea;
    border: 1px solid #34a853;
    color: #1e7e34;
}

.afpro-messages .afpro-notice--error {
    background: #fce8e6;
    border: 1px solid #ea4335;
    color: #c5221f;
}

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

.afpro-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}

.afpro-field .required {
    color: #e53935;
}

.afpro-field input[type="text"],
.afpro-field input[type="tel"],
.afpro-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.afpro-field input:focus,
.afpro-field select:focus {
    border-color: #6c63ff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}

.afpro-field select:disabled {
    background: #f5f5f5;
    color: #999;
}

.afpro-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    background: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.02em;
}

.afpro-btn:hover {
    background: #5a51e0;
}

.afpro-btn:active {
    transform: scale(0.98);
}

.afpro-btn:disabled {
    background: #b0aaff;
    cursor: not-allowed;
}

.afpro-link {
    display: inline-block;
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    word-break: break-all;
}
