@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

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

.encontro-presidentes-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ep-banner-container {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(12, 67, 146, 0.2);
}

.ep-banner {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Nova Seção: Informações do Evento */
.ep-event-info {
    background: linear-gradient(135deg, rgba(0, 75, 129, 0.88) 0%, rgba(0, 48, 82, 0.96) 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 16px 40px rgba(0, 48, 82, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Glass shine overlay */
.ep-event-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%),
        radial-gradient(ellipse at 15% 85%, rgba(0, 140, 255, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 10%, rgba(255, 255, 255, 0.07) 0%, transparent 45%);
    z-index: 1;
    pointer-events: none;
}

/* SVG decorativo moderno */
.ep-event-info::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 220px;
    height: 220px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3ClinearGradient id='g1' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23ffffff' stop-opacity='0.08'/%3E%3Cstop offset='100%25' stop-color='%23ffffff' stop-opacity='0.02'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='100' cy='100' r='90' fill='none' stroke='url(%23g1)' stroke-width='1.5'/%3E%3Ccircle cx='100' cy='100' r='68' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='46' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Cpath d='M100 10 L190 100 L100 190 L10 100 Z' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3Cpath d='M100 35 L165 100 L100 165 L35 100 Z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='6' fill='rgba(255,255,255,0.1)'/%3E%3Cline x1='100' y1='10' x2='100' y2='35' stroke='rgba(255,255,255,0.07)' stroke-width='1'/%3E%3Cline x1='190' y1='100' x2='165' y2='100' stroke='rgba(255,255,255,0.07)' stroke-width='1'/%3E%3Cline x1='100' y1='190' x2='100' y2='165' stroke='rgba(255,255,255,0.07)' stroke-width='1'/%3E%3Cline x1='10' y1='100' x2='35' y2='100' stroke='rgba(255,255,255,0.07)' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
}

.ep-event-info-content {
    position: relative;
    z-index: 2;
    color: white;
}

.ep-event-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(to right, #ffffff, #e0f7fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.ep-event-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.ep-event-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ep-event-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.ep-event-item:last-child {
    border-bottom: none;
}

.ep-event-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15);
}

.ep-event-icon svg {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.ep-event-text {
    flex: 1;
}

.ep-event-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
    display: block;
}

.ep-event-value {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: white;
    display: block;
}

.ep-event-link {
    color: #a5d6ff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    margin-top: 5px;
}

.ep-event-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ep-event-link svg {
    width: 14px;
    height: 14px;
}

/* Container do Formulário */
.ep-form-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 12px 35px rgba(0, 75, 129, 0.15);
    border: 2px solid #004b81;
    position: relative;
    overflow: hidden;
}

.ep-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #004b81, #ff7500);
    z-index: 1;
}

.ep-section-title {
    font-size: 22px;
    color: #ffffff;
    margin: -30px -30px 25px -30px;
    padding: 18px 24px;
    border-bottom: none;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #004b81 0%, #003c67 100%);
    border-radius: 14px 14px 0 0;
    box-shadow: 0 4px 16px rgba(0, 60, 103, 0.25);
    letter-spacing: -0.3px;
}

.ep-section-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 22px;
    background: linear-gradient(180deg, #ffffff, #ff7500);
    border-radius: 3px;
    flex-shrink: 0;
}

/* Ajuste: Formulário em 2 colunas com layout específico */
.ep-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

.ep-form-group {
    margin-bottom: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Ajuste: Empresa e Cargo com largura de 50% cada */
.ep-form-group.half-width {
    grid-column: span 1;
}

/* Ajuste: Labels maiores no desktop */
.ep-label {
    display: block;
    margin-bottom: 8px;
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
    position: relative;
}

.ep-label .required {
    color: #ef4444;
    margin-left: 4px;
    font-size: 16px;
}

/* Ajuste: Todas as inputs com altura igual ao combobox */
.ep-input {
    width: 100%;
    padding: 14px 18px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #1e293b;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 48px;
    height: 48px;
    line-height: 1.4;
}

select.ep-input {
    height: 48px;
    line-height: 48px;
    padding-top: 0;
    padding-bottom: 0;
}

textarea.ep-input {
    min-height: 100px;
    height: auto;
    resize: vertical;
    line-height: 1.5;
    padding-top: 12px;
    padding-bottom: 12px;
}

@media (max-width: 768px) {
    .ep-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .ep-form-group.half-width {
        grid-column: span 1;
    }

    /* Labels menores no mobile */
    .ep-label {
        font-size: 13px;
    }
}

.ep-input:focus {
    outline: none;
    border-color: #004b81;
    box-shadow: 0 0 0 3px rgba(0, 75, 129, 0.1);
    background: #ffffff;
}

.ep-input:hover {
    border-color: #cbd5e1;
}

.ep-input.error {
    border-color: #ef4444;
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.ep-input.success {
    border-color: #ff7500;
    background: #f0fdf4;
}

select.ep-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23004b81' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px;
    padding-right: 45px;
    cursor: pointer;
}

.ep-checkbox-group {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 10px;
    border: 1px solid #bae6fd;
    transition: all 0.2s ease;
}

.ep-checkbox-group.error {
    border-color: #ef4444;
    background: #fff5f5;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.ep-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

/* ── Input nativo oculto — width/height iguais ao visual para que o
   cursor:pointer cubra exatamente a área do quadradinho.
   NÃO usa display:none nem visibility:hidden para preservar
   acessibilidade e o mecanismo nativo do label em todos os browsers. ── */
.ep-terms-native-input {
    position: absolute;
    opacity: 0;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
    z-index: 1;
    flex-shrink: 0;
}

/* ── Quadradinho visual ────────────────────────────────────── */
.ep-checkbox {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #004b81;
    border-radius: 4px;
    background: white;
    flex-shrink: 0;
    margin-top: 1px;
    position: relative;
    cursor: pointer;
    transition: all 0.18s ease;
    outline: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    pointer-events: none; /* cliques vão para o input nativo sobreposto */
}

.ep-checkbox:hover,
.ep-terms-native-input:hover + .ep-checkbox {
    border-color: #005a9a;
    box-shadow: 0 0 0 3px rgba(0, 75, 129, 0.12);
    background: #f0f9ff;
}

.ep-terms-native-input:focus-visible + .ep-checkbox {
    box-shadow: 0 0 0 3px rgba(0, 75, 129, 0.25);
}

/* ── Estado de erro ───────────────────────────────────────── */
.ep-checkbox.error {
    border-color: #ef4444;
}

/* ── Estado marcado via CSS puro — sem JS para toggle ──────── */
.ep-terms-native-input:checked + .ep-checkbox {
    background-color: #004b81;
    border-color: #004b81;
}

.ep-terms-native-input:checked + .ep-checkbox::after {
    content: '\2713'; /* ✓ */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 13px;
    line-height: 1;
}

.ep-checkbox-label {
    font-size: 14px;
    color: #1e293b;
    line-height: 1.5;
    user-select: none;
    cursor: pointer;
}

.ep-checkbox-label a {
    color: #004b81;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.ep-checkbox-label a:hover {
    border-bottom-color: #004b81;
}



.ep-btn-dynamic {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(0, 75, 129, 0.10) 0%, rgba(0, 75, 129, 0.06) 55%, rgba(255, 117, 0, 0.10) 100%);
    border: 1px solid rgba(0, 75, 129, 0.10);
    box-shadow: 0 14px 34px -24px rgba(0, 75, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}

.ep-btn-dynamic-top {
    width: 100%;
    min-height: 32px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ep-btn-dynamic-prefix {
    width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    font-size: 16px;
    line-height: 1;
}

.ep-btn-dynamic-viewport {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 32px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ep-btn-dynamic-track {
    position: relative;
    width: 100%;
    height: 32px;
}

.ep-btn-dynamic-item {
    position: absolute;
    inset: 0;
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    font-size: clamp(13px, 1.6vw, 15px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.22px;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.32s ease, transform 0.32s ease;
    background: linear-gradient(135deg, #004b81 0%, #ff7500 145%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    pointer-events: none;
}

.ep-btn-dynamic-item.is-active {
    opacity: 1;
    transform: translateY(0);
}

.ep-btn-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 8px;
}

.ep-btn-dots-outside {
    width: 100%;
    margin-top: -2px;
    margin-bottom: 2px;
}

.ep-btn-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(0, 75, 129, 0.22);
    transition: all 0.28s ease;
}

.ep-btn-dot.is-active {
    width: 18px;
    background: linear-gradient(90deg, #004b81 0%, #ff7500 100%);
    box-shadow: 0 0 0 3px rgba(0, 75, 129, 0.08);
}

/* Wrapper garante centralização independente do tema */
.ep-btn-wrapper {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 10px !important;
}

.ep-btn {
    background: linear-gradient(135deg, #004b81 0%, #003c67 72%, #ff7500 145%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    padding: 18px 28px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: auto !important;
    min-width: 320px !important;
    max-width: 100% !important;
    margin: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-family: 'Inter', sans-serif !important;
    letter-spacing: 0.35px !important;
    text-decoration: none !important;
    text-transform: none !important;
    box-shadow: 0 14px 30px -12px rgba(0, 75, 129, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
    position: relative !important;
    overflow: hidden !important;
    min-height: 62px !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ep-btn span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.ep-btn-icon,
.ep-btn-arrow,
.ep-btn-label {
    position: relative;
    z-index: 2;
}

.ep-btn-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.ep-btn-icon svg {
    width: 17px;
    height: 17px;
}

.ep-btn-label {
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
}

.ep-btn-arrow {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.ep-btn-support {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(30, 41, 59, 0.74);
    text-align: center;
    letter-spacing: 0.2px;
}

.ep-btn::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 48%, transparent 100%);
    pointer-events: none;
}

.ep-btn::after {
    content: '';
    position: absolute;
    top: -120%;
    left: -20%;
    width: 38%;
    height: 300%;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.20) 50%, transparent 100%);
    transform: rotate(20deg);
    transition: transform 0.45s ease, left 0.45s ease;
    pointer-events: none;
}

.ep-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.012) !important;
    box-shadow: 0 18px 34px -12px rgba(0, 48, 82, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
    background: linear-gradient(135deg, #005a9a 0%, #004470 68%, #ff7500 140%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.ep-btn:hover:not(:disabled) .ep-btn-arrow {
    transform: translateX(4px);
}

.ep-btn:hover:not(:disabled)::after {
    left: 96%;
    transform: rotate(20deg) translateX(12px);
}

.ep-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ep-btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: ep-spin 0.8s linear infinite;
}

@keyframes ep-spin {
    to { transform: rotate(360deg); }
}

.ep-message {
    padding: 18px 20px;
    border-radius: 10px;
    margin: 20px 0;
    display: none;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    animation: ep-fadeIn 0.5s ease;
}

@keyframes ep-fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ep-success {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 2px solid #ff7500;
    color: #15803d;
}

.ep-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    color: #991b1b;
}

.ep-field-hint {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
}

.ep-field-error {
    display: none;
    margin-top: 6px;
    color: #ef4444;
    font-size: 11px;
    font-weight: 500;
    padding: 6px 10px;
    background: #fef2f2;
    border-radius: 5px;
    border-left: 3px solid #ef4444;
}

.ep-input-mask {
    position: relative;
}

.ep-mask-placeholder {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 14px;
    transition: all 0.2s ease;
    line-height: 1;
}

.ep-mask-placeholder.hidden {
    opacity: 0;
    transform: translateY(-50%) translateX(8px);
}

.ep-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 75, 129, 0.1);
    color: #475569;
    font-size: 12px;
    text-align: center;
}

.ep-footer p {
    margin: 6px 0;
    line-height: 1.5;
}

.ep-required-note {
    text-align: right;
    margin: 10px 0 20px;
    color: #64748b;
    font-size: 12px;
}

.ep-required-note .required {
    color: #ef4444;
}

/* Responsividade para a nova seção */
@media (max-width: 768px) {
    .encontro-presidentes-form {
        padding: 0 10px;
    }

    .ep-event-info {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .ep-event-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .ep-event-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .ep-event-item {
        gap: 12px;
        padding: 10px 0;
    }

    .ep-event-icon {
        width: 20px;
        height: 20px;
    }

    .ep-event-icon svg {
        width: 14px;
        height: 14px;
    }

    .ep-event-value {
        font-size: 14px;
    }

    .ep-event-link {
        padding: 5px 10px;
        font-size: 13px;
    }

    .ep-form-container {
        padding: 25px 15px;
    }

    .ep-section-title {
        font-size: 18px;
        margin: -25px -15px 20px -15px;
        padding: 16px 18px;
        border-radius: 12px 12px 0 0;
    }

    .ep-btn-dynamic {
        width: 100%;
        padding: 12px 14px;
    }

    .ep-btn-dynamic-top {
        min-height: 28px;
        gap: 8px;
        grid-template-columns: 18px minmax(0, 1fr);
    }

    .ep-btn-dynamic-prefix {
        width: 18px;
        font-size: 14px;
    }

    .ep-btn-dynamic-viewport {
        width: 100%;
        height: 28px;
    }

    .ep-btn-dynamic-track {
        height: 28px;
    }

    .ep-btn-dynamic-item {
        padding: 0 6px;
        font-size: 12px;
        line-height: 1.1;
        letter-spacing: 0.16px;
    }

    .ep-btn {
        padding: 16px 22px !important;
        font-size: 15px !important;
        min-height: 56px !important;
        min-width: 240px !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .ep-btn-label {
        font-size: 14px;
        white-space: normal;
        text-align: center;
    }

    .ep-btn-support {
        font-size: 11px;
        max-width: 280px;
    }

    .ep-checkbox-group {
        padding: 15px;
    }
}



/* ============================================================
   SEÇÕES BIO: CEO INAED e Professor Palestrante
   ============================================================ */

.ep-bio-section {
    border-radius: 16px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

/* CEO Section — fundo glass escuro com gradiente azul */
.ep-ceo-section {
    background: linear-gradient(135deg, rgba(0, 48, 82, 0.94) 0%, rgba(12, 67, 146, 0.90) 100%);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 20px 50px rgba(0, 48, 82, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.ep-ceo-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.01) 55%, transparent 100%),
        radial-gradient(ellipse at 80% 100%, rgba(255, 117, 0, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 10%, rgba(255, 255, 255, 0.06) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

/* Professor Section — fundo glass claro */
.ep-prof-section {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.97) 0%, rgba(240, 244, 255, 0.97) 100%);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid rgba(12, 67, 146, 0.15);
    box-shadow:
        0 20px 50px rgba(12, 67, 146, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ep-prof-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.1) 55%, transparent 100%),
        radial-gradient(ellipse at 90% 90%, rgba(255, 117, 0, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 5% 5%, rgba(12, 67, 146, 0.05) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

/* Faixa superior decorativa */
.ep-bio-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0c4392, #ff7500);
    z-index: 2;
}

/* Layout interno */
.ep-bio-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
    padding: 38px 38px 34px;
}

.ep-bio-inner--reverse {
    flex-direction: row;
}

/* Conteúdo textual */
.ep-bio-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.ep-bio-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #ff7500;
    background: rgba(255, 117, 0, 0.14);
    border: 1px solid rgba(255, 117, 0, 0.35);
    border-radius: 20px;
    padding: 5px 14px;
    width: fit-content;
    font-family: 'Inter', sans-serif;
}

.ep-bio-badge--prof {
    color: #0c4392;
    background: rgba(12, 67, 146, 0.10);
    border: 1px solid rgba(12, 67, 146, 0.25);
}

.ep-bio-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin: 0;
}

.ep-prof-section .ep-bio-title {
    color: #0c4392;
}

.ep-bio-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #ff7500, rgba(255, 117, 0, 0.3));
    border-radius: 2px;
}

.ep-bio-text {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
    font-family: 'Inter', sans-serif;
    margin: 0;
    text-align: justify;
    hyphens: auto;
}

.ep-prof-section .ep-bio-text {
    color: #334155;
}

.ep-bio-text strong {
    color: #ffffff;
    font-weight: 600;
}

.ep-prof-section .ep-bio-text strong {
    color: #0c4392;
}

/* Foto */
.ep-bio-photo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    width: 175px;
}

.ep-bio-photo-frame {
    width: 175px;
    height: 175px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.ep-bio-photo-frame--prof {
    border: 2px solid rgba(12, 67, 146, 0.22);
    box-shadow:
        0 10px 30px rgba(12, 67, 146, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ep-bio-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}

.ep-bio-photo-frame:hover .ep-bio-photo {
    transform: scale(1.04);
}

.ep-bio-photo-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
}

.ep-bio-photo-name {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.2px;
}

.ep-prof-section .ep-bio-photo-name {
    color: #0c4392;
}

.ep-bio-photo-role {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.ep-prof-section .ep-bio-photo-role {
    color: #64748b;
}

/* Responsividade das seções bio */
@media (max-width: 768px) {
    .ep-bio-inner,
    .ep-bio-inner--reverse {
        flex-direction: column;
        padding: 24px 18px 22px;
        gap: 18px;
    }

    .ep-bio-photo-wrap {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
        align-items: center;
    }

    .ep-bio-photo-frame {
        width: 80px;
        height: 80px;
        border-radius: 10px;
        flex-shrink: 0;
    }

    .ep-bio-photo-label {
        align-items: flex-start;
        text-align: left;
    }

    .ep-bio-title {
        font-size: 20px;
    }

    .ep-bio-text {
        font-size: 13.5px;
        text-align: left;
        hyphens: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .ep-bio-inner,
    .ep-bio-inner--reverse {
        gap: 22px;
        padding: 28px 24px;
    }

    .ep-bio-photo-wrap {
        width: 145px;
    }

    .ep-bio-photo-frame {
        width: 145px;
        height: 145px;
    }

    .ep-bio-title {
        font-size: 22px;
    }
}


/* =============================================================
   MODAL: Termos de Uso e Política de Privacidade
   ============================================================= */

.ep-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 20, 45, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ep-modal-overlay.ep-modal-active {
    display: flex;
    animation: ep-overlay-in 0.22s ease forwards;
}

@keyframes ep-overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ep-modal {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 32px 80px rgba(12, 67, 146, 0.22),
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(12, 67, 146, 0.08);
    overflow: hidden;
    animation: ep-modal-in 0.28s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

@keyframes ep-modal-in {
    from { opacity: 0; transform: translateY(28px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ep-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 24px 20px;
    background: linear-gradient(135deg, #0c4392 0%, #1560bd 100%);
    flex-shrink: 0;
}

.ep-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ep-modal-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #fbba16;
}

.ep-modal-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

/* Botão X — fundo vermelho, ícone branco */
.ep-modal-close {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: #e02020;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    flex-shrink: 0;
}

.ep-modal-close svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
    stroke-width: 2.5;
    pointer-events: none;
}

.ep-modal-close:hover {
    background: #b91c1c;
    border-color: rgba(255, 255, 255, 0.55);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 16px rgba(224, 32, 32, 0.45);
}

.ep-modal-close:active {
    transform: scale(0.95) rotate(90deg);
}

.ep-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #bae6fd #f0f9ff;
}

.ep-modal-body::-webkit-scrollbar { width: 6px; }
.ep-modal-body::-webkit-scrollbar-track { background: #f0f9ff; border-radius: 3px; }
.ep-modal-body::-webkit-scrollbar-thumb { background: #93c5fd; border-radius: 3px; }

.ep-modal-intro {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.ep-modal-intro p {
    font-size: 14px;
    color: #1e40af;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

.ep-modal-btn-external {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0c4392, #1560bd);
    color: #ffffff !important;
    text-decoration: none !important;
    border-bottom: none !important;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(12, 67, 146, 0.3);
}

.ep-modal-btn-external svg { width: 16px; height: 16px; flex-shrink: 0; }

.ep-modal-btn-external:hover {
    background: linear-gradient(135deg, #0a3578, #1251a3);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(12, 67, 146, 0.4);
    color: #ffffff !important;
}

.ep-modal-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 22px 0;
}

.ep-modal-summary h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
    margin-bottom: 14px;
}

.ep-modal-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ep-modal-summary ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #334155;
    line-height: 1.55;
}

.ep-modal-summary ul li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.ep-modal-summary ul li strong { color: #0c4392; }

.ep-modal-footer {
    display: flex;
    gap: 10px;
    padding: 18px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}

/* Botão Aceitar — texto SEMPRE branco */
.ep-modal-btn-accept {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    background: linear-gradient(135deg, #ff7500, #e86400);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(255, 117, 0, 0.35);
    -webkit-text-fill-color: #ffffff;
}

.ep-modal-btn-accept svg { width: 16px; height: 16px; flex-shrink: 0; }

.ep-modal-btn-accept:hover {
    background: linear-gradient(135deg, #e86400, #cc5700);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 117, 0, 0.45);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.ep-modal-btn-accept:active { transform: translateY(0); }

.ep-modal-btn-cancel {
    padding: 13px 22px;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
    white-space: nowrap;
}

.ep-modal-btn-cancel:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #334155;
    transform: translateY(-1px);
}

/* Estado aceito no grupo */
.ep-checkbox-group.ep-terms-accepted {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #86efac;
}

/* Mobile — bottom-sheet */
@media (max-width: 600px) {
    .ep-modal-overlay { align-items: flex-end; padding: 0; }
    .ep-modal {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        animation: ep-modal-slide-up 0.3s cubic-bezier(0.34, 1.1, 0.64, 1) forwards;
    }
    @keyframes ep-modal-slide-up {
        from { opacity: 0; transform: translateY(100%); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .ep-modal-header { padding: 18px 20px 16px; }
    .ep-modal-title  { font-size: 15px; }
    .ep-modal-body   { padding: 20px; }
    .ep-modal-footer { padding: 14px 20px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}


@media (prefers-reduced-motion: reduce) {
    .ep-btn,
    .ep-btn::after,
    .ep-btn-arrow,
    .ep-btn-dynamic-track,
    .ep-btn-dot {
        transition: none !important;
        animation: none !important;
    }
}
