@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

.wppos-steps { display: flex; justify-content: space-around; margin-bottom: 30px; }
.step-item { opacity: 0.3; font-weight: bold; border-bottom: 3px solid #ccc; padding: 10px; flex: 1; text-align: center; }
.step-item.active { opacity: 1; border-color: #2ecc71; color: #2ecc71; }

.plan-cards-container { display: flex; gap: 15px; margin-bottom: 20px; }
.plan-card {
    flex: 1;
    border: 2px solid #eee;
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}
.plan-card input[type="radio"] { display: none; }

.dynamic-field { position: relative; margin-bottom: 10px; }
.remove-field { 
    position: absolute; right: 10px; top: 10px; 
    color: red; cursor: pointer; font-weight: bold; 
}

/* Loading Overlay */
#wppos-loader {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.8); z-index: 9999; justify-content: center; align-items: center;
}

#pix-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 999999 !important; /* Força ficar acima de tudo */
    display: none; /* JS vai mudar para flex */
    justify-content: center;
    align-items: center;
}

#pix-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 99%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

input {
    border: 1px solid #cdcdcd;
    width: 100%;
    border-radius: 12px;
    padding: 15px 20px;
    font-size: 16px;
    background: #f3f3f3;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

h3 {
    font-size: 25px;
    text-align: center;
    font-weight: 500;
    margin: 0;
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 15px 20px;
    font-size: 1rem;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width:100%;
}
.form-control:focus {
    border: 2px solid #909193;
}

/* Layout Geral do Form */
#wppos-form-wrapper { font-family: Inter, Roboto, sans-serif; max-width: 800px; margin: 0 auto; font-size: 16px; background: #fff; padding: 20px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

/* Cards de Planos Modernos */
.plan-cards-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 25px 0; }
.plan-card { border: 2px solid #f0f0f0; border-radius: 12px; padding: 15px; text-align: center; cursor: pointer; transition: 0.3s; position: relative; }

.plan-card:hover { transform: translateY(-5px); border-color: #2ecc71; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.plan-card.selected { border-color: #2ecc71; background-color: #d1ebd8; }

.plan-card h4 { margin: 0; color: #333; font-size: 21px; font-weight: 600; }
.plan-card .price { font-size: 28px; font-weight: 800; color: #00a859; margin-top: 10px; }

.offer-box {
    margin: 20px 0;
    border: 2px solid #2ecc71; border-radius: 12px; padding: 15px; cursor: pointer; transition: 0.3s; position: relative;
    background-color: #dcefe2;
}

.btn-next, #btn-submit-pix {
    background: linear-gradient(135deg, #1a3789, #2c4ba3);
    border: none;
    border-radius: 16px;
    padding: 16px 32px;
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(26, 55, 137, 0.12);
    cursor: pointer;
    align-self: end;
}
#btn-submit-pix {
    background: linear-gradient(135deg, #51891a, #68a144);
}

.btn-back {
    border: none;
    border-radius: 16px;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 14px;
    color: #555353;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* MODAL PIX (Fiel à imagem) */
#pix-modal-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.7); z-index: 999999; display: flex; align-items: center; justify-content: center; }
#pix-modal-container { background: #fff; width: 90%; max-width: 700px; border-radius: 15px; overflow: hidden; animation: modalFadeIn 0.3s ease; }

.pix-header { background: #00a859; color: #fff; padding: 18px 25px; display: flex; justify-content: space-between; align-items: center; }
.pix-header-title { font-size: 1.4em; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.pix-close { font-size: 28px; cursor: pointer; line-height: 1; }

.pix-body { padding: 30px; }
.pix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.pix-label { font-weight: 600; color: #2c3e50; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }

#qrcode-container img { border: 1px solid #eee; padding: 10px; border-radius: 10px; }
.pix-code-box textarea { width: 100%; height: 85px; background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 12px; padding: 10px; font-size: 12px; color: #666; resize: none; }

.pix-subtext { font-size: 16px; color: #000000; }

.btn-pix-copy { width: 100%; background: transparent; border: 2px solid #1a237e; color: #1a237e; padding: 12px; border-radius: 30px; font-weight: 700; cursor: pointer; margin-top: 15px; transition: 0.2s; }
.btn-pix-copy:hover { background: #1a237e; color: #fff; }

.pix-divider { margin: 30px 0; border: 0; border-top: 1px solid #eee; }
.pix-waiting { text-align: center; color: #f39c12; }

/* Footer Badges */
.pix-footer-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 30px; }
.badge-item { display: flex; flex-direction: column; align-items: center }
.badge-item i { font-size: 24px; color: #00a859; display: block; margin-bottom: 5px; }
.badge-item strong { display: block; font-size: 14px; color: #333; }
.badge-item span { font-size: 12px; color: #777; }

@keyframes modalFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }


@media only screen and (max-width: 690px) {
    .plan-card h4 { font-size: 16px; font-weight: 700; }
    .plan-card .price { font-size: 22px; margin-top: 15px; }
}
