/* ==========================================================================
   CENTRAL DE EVENTOS E INSCRIÇÕES — COMPETITIVA
   Domain: eventos.grupocompetitiva.com.br
   ========================================================================== */

:root {
  /* Competitiva Corporate Colors */
  --navy-900: #030C1C;
  --navy-800: #061630;
  --navy-700: #0B1E3D;
  --navy-600: #122B52;
  
  --orange-500: #E85A0C;
  --orange-600: #D44F08;
  --orange-100: #FFF3EB;

  --green-600: #059669;
  --green-100: #D1FAE5;

  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50:  #F9FAFB;
  --white:    #FFFFFF;

  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px rgba(6, 22, 48, 0.08);
  --shadow-lg: 0 12px 32px rgba(6, 22, 48, 0.12);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

html, body {
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--gray-50);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   HEADER & NAVBAR (COMPETITIVA BRAND)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 10px rgba(6, 22, 48, 0.05);
  transition: all var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-competitiva-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-competitiva-logo img {
  height: 48px;
  width: auto;
}

.brand-tag-sub {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange-500);
  text-transform: uppercase;
  border-left: 2px solid var(--gray-300);
  padding-left: 0.75rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--navy-800);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--orange-500);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  width: 100%;
  height: 2.5px;
  background-color: var(--navy-800);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   HERO / BANNER CENTRAL DE EVENTOS
   -------------------------------------------------------------------------- */
.central-hero {
  background: radial-gradient(circle at 80% 20%, #122B52 0%, var(--navy-800) 60%, var(--navy-900) 100%);
  color: var(--white);
  padding-top: 130px;
  padding-bottom: 60px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--orange-500);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  background: rgba(232, 90, 12, 0.12);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(232, 90, 12, 0.3);
}

.central-hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.central-hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 720px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   FEATURED EVENT CARD (ESTILO AGENDA LIDERAR)
   -------------------------------------------------------------------------- */
.featured-event-wrapper {
  margin-bottom: 3rem;
  margin-top: -45px;
  position: relative;
  z-index: 20;
}

.featured-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem 2.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 10px 30px rgba(6, 22, 48, 0.1);
  border: 1px solid rgba(6, 22, 48, 0.08);
  transition: all var(--transition-normal);
}

.featured-card:hover {
  box-shadow: 0 14px 38px rgba(6, 22, 48, 0.15);
  transform: translateY(-3px);
  border-color: rgba(232, 90, 12, 0.35);
}

.featured-badge-date {
  background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  width: 96px;
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(232, 90, 12, 0.35);
  flex-shrink: 0;
}

.featured-badge-date .badge-day {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  font-family: var(--font-family);
}

.featured-badge-date .badge-month {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.featured-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.featured-tag {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--orange-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.featured-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--gray-600);
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.featured-card-action {
  flex-shrink: 0;
}

.featured-card-action .btn {
  padding: 0.9rem 2.25rem;
  white-space: nowrap;
  font-size: 0.95rem;
}

@media (max-width: 868px) {
  .featured-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.25rem;
  }

  .featured-card-content {
    align-items: center;
  }

  .featured-meta {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   FILTER & CARDS GRID
   -------------------------------------------------------------------------- */
.events-section {
  padding: 50px 0 90px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-300);
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232, 90, 12, 0.3);
}

.event-card-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-program-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-800);
  background: rgba(6, 22, 48, 0.06);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
}

.event-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.status-aberto {
  background: var(--green-100);
  color: var(--green-600);
}

.status-em_breve {
  background: var(--orange-100);
  color: var(--orange-600);
}

.status-encerrado {
  background: var(--gray-200);
  color: var(--gray-600);
}

.event-card-body {
  padding: 1.75rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.event-card-chamada {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.event-card-description {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 1rem;
  background: var(--gray-50);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--orange-500);
}

.event-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--gray-200);
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-row svg {
  width: 16px;
  height: 16px;
  stroke: var(--gray-500);
  flex-shrink: 0;
}

.event-card-footer {
  padding: 1.25rem 1.5rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-orange {
  background-color: var(--orange-500);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(232, 90, 12, 0.3);
}

.btn-orange:hover:not(:disabled) {
  background-color: var(--orange-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232, 90, 12, 0.4);
}

.btn-disabled, .btn-disabled:hover {
  background-color: var(--gray-300) !important;
  color: var(--gray-600) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* --------------------------------------------------------------------------
   FORMULÁRIO DE INSCRIÇÃO (/inscricao)
   -------------------------------------------------------------------------- */
.form-page-wrapper {
  padding: 120px 0 80px;
}

.form-container-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
}

.form-header-event-summary {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: var(--white);
  padding: 2.25rem 2.5rem;
  position: relative;
}

.event-summary-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-500);
  background: rgba(232, 90, 12, 0.15);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.event-summary-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.event-summary-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.85);
}

.back-to-events-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--orange-500);
  font-weight: 700;
}

.back-to-events-link:hover {
  text-decoration: underline;
}

.form-body-content {
  padding: 2.5rem;
}

.form-title-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gray-100);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.4rem;
}

.form-label span.req {
  color: var(--orange-500);
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  transition: all var(--transition-fast);
}

.form-input:focus {
  background: var(--white);
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(232, 90, 12, 0.15);
  outline: none;
}

.form-input.has-error {
  border-color: #EF4444;
  background-color: #FEF2F2;
}

.field-error-msg {
  font-size: 0.8rem;
  color: #DC2626;
  margin-top: 0.35rem;
  display: none;
}

.consent-box {
  background: var(--gray-50);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.consent-checkbox {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--orange-500);
  cursor: pointer;
}

.consent-text {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* Etapa 3 — Confirmação Sucesso */
.success-card {
  text-align: center;
  padding: 3.5rem 2rem;
}

.success-icon-circle {
  width: 72px;
  height: 72px;
  background: var(--green-100);
  color: var(--green-600);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-800);
  margin-bottom: 0.75rem;
}

.success-text {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 540px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}

.success-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--navy-900);
  color: var(--white);
  padding: 40px 0 25px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-domain {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-tech-signature {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.875rem;
}

.tech-signature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.tech-text-white {
  color: var(--white);
}

.tech-text-orange {
  color: var(--orange-500);
  font-weight: 700;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
  .central-hero h1 {
    font-size: 2.1rem;
  }
  
  .form-header-event-summary {
    padding: 1.75rem 1.5rem;
  }

  .form-body-content {
    padding: 1.5rem 1.25rem;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
}
