/* ===== CONTRIBUA.CSS ===== */

/* Reset da página */
.contribua-page {
    background: #f7f8fa;
}

/* Main layout */
.contribua-main {
    min-height: calc(100vh - 64px);
    padding: 32px 0 60px;
}

.contribua-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === CAMP HEADER === */
.camp-header {
    margin-bottom: 24px;
}

.camp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #555;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.camp-back-link:hover {
    color: #31B475;
}

.camp-info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.camp-thumb-wrap {
    width: 72px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e0e0e0;
}

.camp-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camp-category-small {
    font-size: 10px;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.camp-title-small {
    font-size: 14px;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 3px;
}

.camp-id-small {
    font-size: 12px;
    color: #888;
}

/* === FORM === */
.contribua-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-section {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.form-section-title {
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 18px;
}

/* Segurança banner */
.seguranca-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0faf5;
    border: 1px solid #b2dfdb;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    color: #333;
    margin-bottom: 16px;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 540px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.required {
    color: #e53e3e;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-family: 'Nunito', sans-serif;
    border: 1.5px solid #d0d0d0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
    color: #1a1a1a;
}

.form-input:focus {
    border-color: #31B475;
    box-shadow: 0 0 0 3px rgba(49, 180, 117, 0.12);
}

.form-input.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.field-error {
    font-size: 12px;
    color: #e53e3e;
    font-weight: 600;
    min-height: 16px;
}

/* Botões de valor rápido */
.quick-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.quick-val-btn {
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    border: 2px solid #d0d0d0;
    border-radius: 100px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.quick-val-btn:hover {
    border-color: #31B475;
    color: #31B475;
}

.quick-val-btn.selected {
    border-color: #31B475;
    background: #31B475;
    color: white;
}

/* Valor input */
.valor-input-wrap {
    display: flex;
    align-items: center;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.valor-input-wrap:focus-within {
    border-color: #31B475;
    box-shadow: 0 0 0 3px rgba(49, 180, 117, 0.12);
}

.valor-input-wrap.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.valor-prefix {
    padding: 14px 12px 14px 16px;
    font-size: 16px;
    font-weight: 800;
    color: #555;
    background: #f5f5f5;
    border-right: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.valor-input {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    font-size: 20px;
    font-weight: 800;
    padding: 14px 16px;
    flex: 1;
    outline: none;
}

.valor-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #e53e3e;
    font-weight: 600;
}

.valor-hint {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

/* PIX only */
.pix-only-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pix-selected-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 2px solid #31B475;
    border-radius: 100px;
    background: #31B475;
    color: white;
    font-size: 14px;
    font-weight: 700;
    width: fit-content;
}

.pix-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #f0faf5;
    border: 1px solid #b2dfdb;
    border-radius: 10px;
    font-size: 13px;
    color: #333;
    line-height: 1.6;
}

.pix-info-box p {
    margin-bottom: 4px;
}

.pix-info-box p:last-child {
    margin-bottom: 0;
}

/* Turbine */
.turbine-section {
    padding: 20px 24px;
}

.turbine-header-static {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.turbine-badge {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #31B475;
    background: #e8f8ef;
    padding: 5px 12px;
    border-radius: 100px;
    border: 1.5px solid #31B475;
}

.turbine-preco-total {
    font-size: 14px;
    font-weight: 800;
    color: #31B475;
}

.turbine-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Label/wrapper do card turbine */
.turbine-opt-label {
    display: block;
    cursor: pointer;
}

.turbine-opt-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 16px;
    transition: border-color 0.2s, background 0.18s;
}

.turbine-opt-label:hover .turbine-opt-card {
    border-color: #b2dfdb;
    background: #fafffe;
}

/* Estado selecionado via JS */
.turbine-opt-card.selected {
    border-color: #31B475;
    background: #f0faf5;
}

.turbine-opt-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

/* Esconde o checkbox nativo mas mantém acessível */
.turbine-chk {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: #31B475;
    cursor: pointer;
}

.turbine-opt-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.turbine-opt-text {
    flex: 1;
}

.turbine-opt-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.turbine-opt-preco {
    font-size: 13px;
    font-weight: 800;
    color: #31B475;
    white-space: nowrap;
    flex-shrink: 0;
}

.turbine-opt-preco.gratis {
    color: #888;
    font-weight: 700;
}

.turbine-opt-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* Resumo */
.resumo-section {
    background: #fafafa;
}

.resumo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #555;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.resumo-row:last-child {
    border-bottom: none;
}

.resumo-total-row {
    font-size: 16px;
    color: #1a1a1a;
    padding-top: 14px;
}

/* LGPD */
.lgpd-section {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 18px 24px;
    margin-bottom: 16px;
}

.lgpd-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.lgpd-checkbox {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #31B475;
    margin-top: 2px;
    cursor: pointer;
}

/* Erro global */
.global-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff0f0;
    border: 1.5px solid #e53e3e;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #c53030;
    margin-bottom: 16px;
    animation: shake 0.35s ease;
}

@keyframes shake {

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

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}

/* Botão contribuir */
.btn-contribuir {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: #31B475;
    color: white;
    font-size: 17px;
    font-weight: 900;
    font-family: 'Nunito', sans-serif;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 16px rgba(49, 180, 117, 0.3);
    margin-bottom: 16px;
}

.btn-contribuir:hover {
    background: #28a065;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(49, 180, 117, 0.38);
}

.btn-contribuir:active {
    transform: translateY(0);
}

/* Aviso contribuição */
.aviso-contribuicao {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 20px 24px;
    font-size: 12px;
    color: #888;
    line-height: 1.6;
    text-align: center;
}

.aviso-contribuicao a {
    color: #31B475;
    font-weight: 700;
    text-decoration: underline;
}

.selos-seguranca-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.selo-seg-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #31B475;
}

/* Mobile */
@media (max-width: 480px) {
    .contribua-container {
        padding: 0 12px;
    }

    .contribua-main {
        padding: 16px 0 40px;
    }

    .form-section {
        padding: 18px 16px;
    }

    .turbine-section {
        padding: 16px;
    }

    .turbine-options {
        gap: 8px;
    }

    .camp-info-row {
        padding: 12px;
    }

    .camp-thumb-wrap {
        width: 56px;
        height: 38px;
    }

    .turbine-opt-card {
        padding: 12px;
    }
}