* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f0f2f5;
    color: #333;
    -webkit-text-size-adjust: 100%;
}

.container {
    max-width: 560px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
    overflow: hidden;
}

.header {
    background: #1a1a2e;
    color: #fff;
    padding: 24px;
    text-align: center;
}

.header h1 { font-size: 1.4rem; }
.header p  { font-size: .9rem; opacity: .8; margin-top: 4px; }

.body { padding: 28px; }

.steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.step {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #ddd;
    color: #999;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 700;
    flex-shrink: 0;
}

.step.active  { background: #e94560; color: #fff; }
.step.done    { background: #28a745; color: #fff; }

.form-group { margin-bottom: 16px; }

label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #555;
}

input, select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border .2s;
    -webkit-appearance: none;
    appearance: none;
}

input[type="date"] {
    -webkit-appearance: textfield;
    appearance: textfield;
    min-height: 48px;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

input:focus, select:focus {
    outline: none;
    border-color: #e94560;
}

.btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #e94560;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: background .2s;
    text-align: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover, .btn:active { background: #c73652; }

.btn-outline {
    background: #fff;
    color: #e94560;
    border: 2px solid #e94560;
    margin-top: 10px;
}

.btn-outline:hover, .btn-outline:active { background: #fdf0f2; }

.price-tag {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 12px 0;
}

.price-tag span { font-size: 1rem; color: #888; }

.pay-option {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: border .2s, background .2s;
    text-decoration: none;
    display: block;
    color: #333;
    -webkit-tap-highlight-color: transparent;
}

.pay-option:hover, .pay-option:active { border-color: #e94560; background: #fdf0f2; }

.pay-option h3 { font-size: 1rem; margin-bottom: 4px; }
.pay-option p  { font-size: .85rem; color: #777; }
.pay-option .icon { font-size: 1.8rem; margin-bottom: 8px; }

.qr-box {
    text-align: center;
    padding: 16px 0;
}

.qr-box img {
    max-width: 220px;
    width: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
}

.copy-code {
    background: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 12px;
    font-size: .8rem;
    word-break: break-all;
    margin: 14px 0;
    cursor: pointer;
    user-select: all;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: .9rem;
    line-height: 1.5;
}

.alert-success { background: #d4edda; color: #155724; }
.alert-error   { background: #f8d7da; color: #721c24; }

.row { display: flex; gap: 12px; }
.row .form-group { flex: 1; min-width: 0; }

.secure {
    text-align: center;
    font-size: .78rem;
    color: #aaa;
    margin-top: 18px;
}

.product-hero {
    text-align: center;
    padding: 10px 0 20px;
}

.product-hero img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 16px;
}

.product-hero p {
    color: #555;
    line-height: 1.6;
    font-size: .95rem;
}

.benefits { list-style: none; margin: 16px 0; }
.benefits li { padding: 6px 0; font-size: .9rem; }
.benefits li::before { content: '✅ '; }

/* ── Tablet (max 600px) ───────────────────────────────────────── */
@media (max-width: 600px) {
    body { background: #fff; }

    .container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }

    .header { padding: 20px 16px; }
    .header h1 { font-size: 1.2rem; }

    .body { padding: 20px 16px; }

    .price-tag { font-size: 1.7rem; }
}

/* ── Mobile pequeno (max 400px) ──────────────────────────────── */
@media (max-width: 400px) {
    .header h1 { font-size: 1.1rem; }

    input, select { font-size: .95rem; padding: 11px 12px; }

    .btn { padding: 14px; font-size: .95rem; }

    /* Empilha os campos lado a lado em telas muito pequenas */
    .row { flex-direction: column; gap: 0; }

    .price-tag { font-size: 1.5rem; }

    .qr-box img { max-width: 180px; }
}

/* ── Campo data em mobile ─────────────────────────────────────── */
@media (max-width: 600px) {
    input[type="date"] {
        font-size: .9rem;
        padding: 10px 12px;
    }
}
