* {
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px 0 80px;
}

.container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 400px;
    overflow: hidden;
}

/* ── HEADER ── */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #e53935;
}

.login-btn {
    background-color: #e53935;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

/* ── BANNER ── */
.event-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ── DETALHES DO EVENTO ── */
.event-details {
    padding: 20px 20px 10px;
    border-bottom: 1px solid #eee;
}

.event-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 14px 0;
    color: #1a1a1a;
}

.info {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    gap: 8px;
}

/* ── AÇÕES ── */
.actions {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    gap: 8px;
}

.action-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #555;
}

.likes {
    color: #555;
    font-size: 14px;
    transition: color 0.2s;
}

.likes-active {
    color: #e53935;
    font-weight: bold;
}

.heart-active {
    color: #e53935;
    animation: heartPop 0.3s ease;
}

@keyframes heartPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.4); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* ── INGRESSOS ── */
.tickets {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.tickets h2 {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    color: #1a1a1a;
}

/* ── CPF ── */
.cpf-container {
    margin-bottom: 16px;
}

.cpf-container label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
}

#cpf {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

#cpf:focus {
    border-color: #e53935;
}

#cpf-error {
    margin-top: 5px;
    font-size: 12px;
}

.cpf-validity-msg {
    margin: 6px 0 0 0;
    font-size: 12px;
    font-weight: 600;
    min-height: 18px;
    transition: color 0.2s;
}

.cpf-msg-valid {
    color: #2e7d32;
}

.cpf-msg-invalid {
    color: #c62828;
}

#cpf.cpf-valid {
    border-color: #2e7d32;
    box-shadow: 0 0 0 2px rgba(46,125,50,0.15);
}

#cpf.cpf-invalid {
    border-color: #c62828;
    box-shadow: 0 0 0 2px rgba(198,40,40,0.15);
}

/* ── OPÇÃO DE INGRESSO ── */
.ticket-category {
    margin-bottom: 16px;
}

.ticket-category-title {
    font-weight: bold;
    color: #333;
    font-size: 14px;
    margin-bottom: 10px;
}

.ticket-option {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-info span {
    font-size: 13px;
    color: #555;
}

.ticket-info .price {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 4px 0 2px;
}

.ticket-info .fee {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background-color: #e0e0e0;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.quantity {
    font-size: 18px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

/* ── BOTÃO FINALIZAR COMPRA ── */
.checkout-btn {
    background-color: #e53935;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    font-size: 16px;
    margin-top: 8px;
}

.checkout-btn:hover {
    background-color: #c62828;
}

/* ── EXTRA INFO (taxas e desconto) ── */
.extra-info {
    background-color: #fff;
}

.info-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.info-box span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box.discount {
    background-color: #fce4ec;
    color: #c62828;
    font-weight: bold;
    font-size: 13px;
}

.info-box-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* ── SEÇÕES (DESCRIÇÃO, POLÍTICAS, ORGANIZADOR) ── */
.description,
.policies,
.organizer {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.description h3,
.policies h3,
.organizer h3 {
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 14px 0;
    letter-spacing: 0.3px;
}

.description p {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.policies p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 4px 0;
}

.policy-label {
    color: #1a1a1a;
    font-weight: bold;
    margin-top: 8px !important;
}

.policy-value {
    color: #666;
}

/* ── ORGANIZADOR ── */
.organizer-details {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.organizer-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.organizer-details > div {
    flex-grow: 1;
}

.organizer-details p {
    margin: 0 0 3px 0;
    font-size: 14px;
    font-weight: bold;
    color: #1a1a1a;
    line-height: 1.4;
}

.organizer-details span {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.organizer-details .fa-chevron-right {
    color: #aaa;
    font-size: 14px;
}

/* ── RODAPÉ ── */
footer {
    background-color: #fff;
    padding: 24px 20px;
    border-top: 1px solid #eee;
}

.footer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-icons {
    display: flex;
    gap: 12px;
}

.footer-icons span {
    font-size: 18px;
    color: #555;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.link-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-column a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.footer-info {
    font-size: 12px;
    color: #888;
    line-height: 1.8;
    margin-bottom: 16px;
}

.footer-info p {
    margin: 0;
}

.footer-info u {
    cursor: pointer;
    color: #555;
}

.reclame-aqui {
    width: 70px;
    opacity: 0.8;
}

/* ── MENSAGEM CPF ── */
.cpf-info {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #777;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.cpf-info i {
    color: #e53935;
    margin-top: 2px;
    flex-shrink: 0;
}

.cpf-info strong {
    color: #555;
}

/* ── NOME COMPLETO ── */
.name-container {
    margin-bottom: 16px;
}

.name-container label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
}

#name {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

#name:focus {
    border-color: #e53935;
}

/* ── TELEFONE ── */
.phone-container {
    margin-bottom: 16px;
}

.phone-container label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
}

#phone {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

#phone:focus {
    border-color: #e53935;
}

/* ── E-MAIL ── */
.email-container {
    margin-bottom: 16px;
}

.email-container label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
}

#email {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

#email:focus {
    border-color: #e53935;
}

.email-info {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #777;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.email-info i {
    color: #e53935;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── MODAL ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px 28px;
    width: 100%;
    max-width: 360px;
    position: relative;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    animation: modalIn 0.22s ease;
}

@keyframes modalIn {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.modal-close-btn:hover { color: #555; }

.modal-icon {
    font-size: 48px;
    color: #e53935;
    margin-bottom: 14px;
}

.modal-title {
    font-size: 20px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0 0 10px;
}

.modal-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 24px;
}

.modal-text strong {
    color: #1a1a1a;
    word-break: break-all;
}

.modal-pay-btn {
    background-color: #e53935;
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-pay-btn:hover {
    background-color: #c62828;
}

/* ── BARRA FLUTUANTE DE RESUMO ── */
.summary-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    background-color: #fff;
    border-top: 2px solid #e53935;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    gap: 12px;
}

.summary-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.summary-info span:first-child {
    font-size: 12px;
    color: #888;
}

.summary-info span:last-child {
    font-size: 20px;
    font-weight: bold;
    color: #1a1a1a;
}

.summary-btn {
    background-color: #e53935;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.summary-btn:hover {
    background-color: #c62828;
}

/* ── PROMO BANNER ── */
.promo-banner {
    background: linear-gradient(135deg, #b71c1c 0%, #e53935 60%, #ff7043 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    color: #fff;
}

.promo-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.promo-badge-tag {
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    text-transform: uppercase;
}

.promo-limited-tag {
    background: #fff;
    color: #e53935;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    letter-spacing: 0.3px;
}

.promo-combo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.promo-combo-title {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.promo-combo-sub {
    font-size: 13px;
    opacity: 0.92;
    margin-top: 3px;
}

.promo-combo-sub strong {
    font-size: 15px;
    font-weight: 900;
}

.promo-combo-price {
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.promo-cpf-note {
    background: rgba(0,0,0,0.18);
    border-radius: 8px;
    font-size: 12px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    line-height: 1.4;
}

.promo-cpf-note i {
    flex-shrink: 0;
    font-size: 13px;
    opacity: 0.9;
}

/* ── INGRESSO LOCKED STATE ── */
.ticket-category.form-locked .ticket-option {
    opacity: 0.55;
    filter: grayscale(0.3);
}

.ticket-category.form-locked .quantity-btn {
    cursor: default;
}

/* ── MENSAGEM DADOS OBRIGATÓRIOS ── */
.form-required-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff3e0;
    border: 1px solid #ffb300;
    border-radius: 8px;
    color: #e65100;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 13px;
    margin-top: 10px;
    animation: fadeInDown 0.25s ease;
}

.form-required-msg i {
    flex-shrink: 0;
    font-size: 15px;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── DIVISOR DE SEÇÃO ── */
.form-section-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 16px;
    color: #999;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-section-divider::before,
.form-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

/* ── TICKET BADGE COMBO ── */
.ticket-label {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ticket-badge-combo {
    background: #fce4ec;
    color: #c62828;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* ── INPUT ERROR STATE ── */
.input-error {
    border-color: #e53935 !important;
    box-shadow: 0 0 0 2px rgba(229,57,53,0.25) !important;
    animation: inputShake 0.4s ease;
}

@keyframes inputShake {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-5px); }
    40%  { transform: translateX(5px); }
    60%  { transform: translateX(-4px); }
    80%  { transform: translateX(4px); }
    100% { transform: translateX(0); }
}
