/* ════════════════════════════════════════════════════
   Inscrições Esportivas — Frontend (Premium SaaS Style)
   ════════════════════════════════════════════════════ */

:root {
    --ie-primary: #3b82f6;
    --ie-primary-dark: #2563eb;
    --ie-text: #1e293b;
    --ie-text-light: #64748b;
    --ie-bg: #f8fafc;
    --ie-white: #ffffff;
    --ie-border: #e2e8f0;
    --ie-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.ie-event-container {
    background-color: var(--ie-bg);
    padding: 40px 20px;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--ie-text);
}

.ie-event-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

/* Hero / Banner */
.ie-event-hero {
    background: var(--ie-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--ie-shadow);
    margin-bottom: 30px;
}

.ie-event-banner img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 450px;
    object-fit: cover;
}

.ie-event-title-box { padding: 35px; }
.ie-event-title-box h1 { font-size: 36px; font-weight: 800; margin: 0 0 15px 0; letter-spacing: -0.02em; }
.ie-event-meta-top { display: flex; gap: 25px; color: var(--ie-text-light); font-size: 16px; }

/* Grid Layout */
.ie-event-content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

/* Base Card Style */
.ie-event-card {
    background: var(--ie-white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--ie-shadow);
    margin-bottom: 25px;
    border: 1px solid var(--ie-border);
}

.ie-event-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 25px; color: var(--ie-text); }

/* ── Ticket Box (Sidebar) ────────────────────────────────────────────────── */
.ie-ticket-box { padding: 0 !important; overflow: hidden; }
.ie-ticket-box-header { background: #f8fafc; padding: 20px 25px; border-bottom: 1px solid #e2e8f0; }
.ie-ticket-box-header h3 { margin: 0; font-size: 16px; font-weight: 700; }

.ie-ticket-list { padding: 10px 25px; }
.ie-ticket-row { 
    padding: 18px 0; 
    border-bottom: 1px solid #f1f5f9; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.ie-ticket-row:last-child { border-bottom: none; }
.ie-ticket-name { font-weight: 700; color: var(--ie-text); display: block; }
.ie-ticket-price { font-size: 14px; color: var(--ie-text-light); margin-top: 4px; }

.ie-ticket-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 40px;
}

.ie-qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--ie-primary);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ie-qty-btn:disabled { opacity: 0.3; }
.ie-qty-input { width: 25px; border: none; background: transparent; text-align: center; font-weight: 700; }

.ie-ticket-box-footer { padding: 20px 25px; border-top: 1px solid #e2e8f0; }
.ie-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.ie-total-row span:first-child { font-size: 13px; color: var(--ie-text-light); text-transform: uppercase; }
#ie-total-display { font-size: 28px; font-weight: 800; color: var(--ie-primary); }

.ie-btn-primary {
    background: var(--ie-primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s;
}
.ie-btn-primary:hover:not(:disabled) { background: var(--ie-primary-dark); transform: translateY(-2px); }
.ie-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.ie-event-quick-info { padding: 15px 25px; background: #f8fafc; border-top: 1px solid #e2e8f0; }
.ie-event-quick-info ul { list-style: none; padding: 0; margin: 0; }
.ie-event-quick-info li { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }

/* ── Full-Screen Registration (Próxima Página) ─────────────────────────── */
.ie-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    overflow-y: auto;
    animation: ieFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ieFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.ie-modal-content.ie-modal-sympla {
    max-width: 850px;
    margin: 60px auto;
}

.ie-modal-header {
    text-align: center;
    margin-bottom: 50px;
}

.ie-participant-block {
    background: #ffffff;
    border: 1px solid var(--ie-border);
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.ie-participant-block h4 {
    background: #1e293b;
    color: white;
    margin: -35px -35px 30px -35px;
    padding: 15px 35px;
    border-radius: 16px 16px 0 0;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ie-remove-participant {
    background: #ef4444;
    color: white;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    font-weight: bold;
    transition: all 0.2s;
}

.ie-remove-participant:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

.ie-participant-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ie-field-nome, .ie-field-end { grid-column: span 2; }

.ie-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #475569; }
.ie-input, .ie-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--ie-border);
    border-radius: 10px;
    font-size: 15px;
    transition: 0.2s;
}
.ie-input:focus { border-color: var(--ie-primary); outline: none; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); }

.ie-modal-footer {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 25px 40px;
    border-top: 1px solid var(--ie-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 16px 16px;
}

.ie-total-summary {
    display: flex;
    flex-direction: column;
}

.ie-total-summary .ie-label {
    font-size: 12px;
    color: var(--ie-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#ie-total-display {
    font-size: 28px;
    font-weight: 800;
    color: var(--ie-primary);
}

.ie-add-more-container {
    padding: 0 40px 40px 40px;
    text-align: center;
}

.ie-btn-add-another {
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    color: #475569;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ie-btn-add-another span {
    font-size: 24px;
    line-height: 1;
}

.ie-btn-add-another:hover {
    background: #e2e8f0;
    border-color: var(--ie-primary);
    color: var(--ie-primary);
}

.ie-btn-submit {
    width: auto !important;
    padding-left: 40px;
    padding-right: 40px;
}

/* Global Helpers */
.ie-input-error { border-color: #ef4444 !important; background: #fef2f2 !important; }

@media (max-width: 900px) {
    .ie-event-content-grid { grid-template-columns: 1fr; }
    .ie-event-sidebar { order: -1; }
    .ie-participant-fields { grid-template-columns: 1fr; }
}
