/* Base & Design System Definitions (Earthy Warm Tones - Brown & Beige) */
:root {
  --primary-color: #5c3d2e;     /* Deep Devotional Warm Brown */
  --secondary-color: #865439;   /* Terracotta / Mid Warm Brown */
  --accent-color: #c68b59;      /* Soft Sandy Gold / Copper */
  --accent-light: #e4cca6;      /* Beige Highlight */
  
  --text-dark: #3d2b1f;         /* Dark Brownish Charcoal */
  --text-light: #7e685a;        /* Soft Muted Brown */
  --bg-light: #fdfaf5;          /* Warm Light Cream / Beige */
  --white: #ffffff;
  
  --success-color: #27ae60;
  --pending-color: #d35400;     /* Warm Amber */
  --danger-color: #c0392b;
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --box-shadow: 0 10px 30px rgba(92, 61, 46, 0.08);
  --box-shadow-hover: 0 20px 40px rgba(92, 61, 46, 0.15);
  
  --font-heading: 'Cinzel', serif;
  --font-body: 'Montserrat', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.main-header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(92, 61, 46, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 8px 0;
}

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

.logo {
  display: flex;
  align-items: center;
}

.header-logo {
  max-height: 85px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover, 
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.btn-admin-toggle {
  background-color: #f3ede2;
  padding: 8px 16px !important;
  border-radius: 30px;
  color: var(--primary-color) !important;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
}

.btn-admin-toggle:hover {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  border-color: var(--primary-color);
}

.btn-admin-toggle::after {
  display: none !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 100px 0 80px 0;
  overflow: hidden;
  color: var(--white);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  text-align: center;
  margin: 0 auto;
}

.hero-logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.hero-logo {
  max-width: 320px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(92, 61, 46, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 24px;
  color: var(--white);
  letter-spacing: 0.5px;
}

.hero-badge i {
  color: var(--accent-color);
}

.hero-description {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 36px;
  line-height: 1.7;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Screen reader only utility class for SEO */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Info Section */
.info-section {
  padding: 80px 0;
  background-color: var(--white);
}

.section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  color: var(--primary-color);
  margin-bottom: 48px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 12px auto 0 auto;
  border-radius: 2px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.info-card {
  padding: 40px 32px;
  border-radius: var(--border-radius-md);
  background-color: #faf6f0;
  transition: var(--transition-smooth);
  border: 1px solid #efe6da;
  text-align: center;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
  background-color: var(--white);
  border-color: rgba(92, 61, 46, 0.1);
}

.card-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(92, 61, 46, 0.05);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 24px auto;
  transition: var(--transition-smooth);
}

.info-card:hover .card-icon {
  background-color: var(--primary-color);
  color: var(--accent-light);
}

.info-card h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.info-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Registration Section & Form Card */
.registration-section {
  padding: 80px 0 100px 0;
  background: linear-gradient(180deg, var(--bg-light) 0%, #f0e6d6 100%);
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  box-shadow: var(--box-shadow-hover);
}

/* Stepper Indicator */
.stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  flex: 1;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ebdcd0;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
}

.step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  transition: var(--transition-smooth);
  text-align: center;
}

.step-line {
  flex: 1;
  height: 3px;
  background-color: #ebdcd0;
  margin: 0 -20px 24px -20px;
  z-index: 1;
  transition: var(--transition-smooth);
}

.step.active .step-num {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--accent-color);
}

.step.active .step-label {
  color: var(--primary-color);
  font-weight: 700;
}

.step.completed .step-num {
  background-color: var(--success-color);
  color: var(--white);
}

.step.completed .step-label {
  color: var(--success-color);
}

.step-line.completed {
  background-color: var(--success-color);
}

/* Form Section Divider */
.form-section-divider {
  border-bottom: 1.5px solid #ebdcd0;
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.form-section-divider h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-section-divider h4 i {
  color: var(--secondary-color);
}

/* Form Styles */
.step-content {
  display: none;
}

.step-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.form-step-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.form-step-subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -12px;
  margin-left: -12px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  padding-right: 12px;
  padding-left: 12px;
  min-width: 250px;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.form-group label i {
  color: var(--secondary-color);
  margin-right: 4px;
}

.form-group input, 
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--border-radius-sm);
  border: 1.5px solid #cbd0c4; /* greyish-beige */
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background-color: var(--white);
  transition: var(--transition-smooth);
  outline: none;
  height: 52px; /* ensure equal height */
}

.form-group input:focus, 
.form-group select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(134, 84, 57, 0.15);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%235c3d2e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 12px;
  padding-right: 40px !important;
  cursor: pointer;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 32px;
}

.form-checkbox input {
  margin-top: 5px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.form-checkbox label {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  cursor: pointer;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 32px;
}

.form-actions.border-top {
  border-top: 1px solid #ebdcd0;
  padding-top: 24px;
}

/* Payment Layout (Step 2) */
.payment-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.pix-value-tag {
  background: linear-gradient(135deg, var(--primary-color) 0%, #462c20 100%);
  color: var(--white);
  padding: 18px 24px;
  border-radius: var(--border-radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(92, 61, 46, 0.15);
}

.pix-value-tag span:first-child {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.8;
}

.pix-value-tag .value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-light);
}

.registration-details-box {
  background-color: #faf6f0;
  border-left: 4px solid var(--accent-color);
  padding: 16px;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  margin-bottom: 24px;
  font-size: 0.9rem;
  border-top: 1px solid #efe6da;
  border-right: 1px solid #efe6da;
  border-bottom: 1px solid #efe6da;
}

.registration-details-box p {
  margin-bottom: 6px;
  color: var(--text-dark);
}

.registration-details-box p:last-child {
  margin-bottom: 0;
}

.registration-details-box code {
  background-color: #efe6da;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.pix-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pix-step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pix-step-item .num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(134, 84, 57, 0.15);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.pix-step-item p {
  font-size: 0.9rem;
  color: var(--text-dark);
}

/* QR Code & Copy-Paste Container */
.payment-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  padding: 24px;
  border-radius: var(--border-radius-md);
  border: 1px solid #efe6da;
  box-shadow: 0 4px 12px rgba(92, 61, 46, 0.02);
}

.qr-code-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  background-color: #faf6f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid #efe6da;
}

.qr-code-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.qr-loader i {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.copia-cola-container {
  width: 100%;
  margin-bottom: 20px;
}

.copia-cola-container label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.input-copy-group {
  display: flex;
  width: 100%;
  border-radius: var(--border-radius-sm);
  border: 1.5px solid #cbd0c4;
  overflow: hidden;
}

.input-copy-group input {
  flex: 1;
  padding: 10px 12px;
  border: none;
  font-size: 0.85rem;
  color: var(--text-dark);
  background-color: #faf6f0;
  outline: none;
}

.input-copy-group button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.input-copy-group button:hover {
  background-color: var(--secondary-color);
}

.copy-success-msg {
  display: none;
  color: var(--success-color);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 6px;
}

.payment-status-monitor {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
}

.pulse-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--pending-color);
  animation: pulse 1.5s infinite;
}

/* Success Layout (Step 3) */
.success-container {
  text-align: center;
  padding: 24px 0;
  max-width: 650px;
  margin: 0 auto;
}

.success-icon {
  font-size: 4.5rem;
  color: var(--success-color);
  margin-bottom: 24px;
}

.success-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.success-subtitle {
  color: var(--text-light);
  margin-bottom: 40px;
}

/* Voucher Ticket Card */
.voucher-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: 0 8px 24px rgba(92, 61, 46, 0.08);
  overflow: hidden;
  border: 1px solid #efe6da;
  text-align: left;
  margin-bottom: 40px;
  position: relative;
}

.voucher-card::before, .voucher-card::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #f0e6d6; /* Matches page background gradient end */
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.voucher-card::before { left: -10px; }
.voucher-card::after { right: -10px; }

.voucher-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.voucher-header h4 {
  font-family: var(--font-heading);
  letter-spacing: 1px;
  font-weight: 700;
}

.badge-confirmed {
  background-color: rgba(39, 174, 96, 0.2);
  color: #27ae60;
  border: 1px solid #27ae60;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.voucher-body {
  padding: 30px 24px;
  border-bottom: 2px dashed #efe6da;
}

.voucher-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.voucher-info-row:last-child {
  margin-bottom: 0;
}

.voucher-info-row .label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.voucher-info-row .val {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.font-mono {
  font-family: monospace;
  letter-spacing: 1px;
}

.voucher-footer {
  padding: 24px;
  text-align: center;
  background-color: #faf8f5;
}

.bar-code-simulation {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.voucher-footer p {
  font-size: 0.8rem;
  color: var(--text-light);
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-whatsapp {
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: 30px;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  text-decoration: none;
  background-color: #25D366;
  color: var(--white) !important;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transform: translateY(-1px);
}

/* Global Buttons */
.btn-primary, .btn-secondary {
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: 30px;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(134, 84, 57, 0.3);
  transform: translateY(-1px);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-secondary {
  background-color: #efe6da;
  color: var(--text-dark);
}

.btn-secondary:hover {
  background-color: #ebdcd0;
}

.btn-danger-outline {
  background-color: transparent;
  color: var(--danger-color);
  border: 1px solid var(--danger-color);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-danger-outline:hover {
  background-color: var(--danger-color);
  color: var(--white);
}

.btn-link {
  background: none;
  border: none;
  color: var(--text-light);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.btn-link:hover {
  color: var(--primary-color);
}

/* Centered Admin Modal Panel Style */
.admin-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 95%;
  max-width: 1000px;
  height: 90vh;
  background-color: var(--white);
  z-index: 1000;
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
  overflow: hidden;
}

.admin-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 10px 45px rgba(92, 61, 46, 0.25), 0 0 0 100vmax rgba(0, 0, 0, 0.4);
}

.admin-header {
  background-color: #2b1f1a;
  color: var(--white);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-admin-close {
  background: none;
  border: none;
  color: #a09088;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-admin-close:hover {
  color: var(--white);
}

.admin-body {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
}

.admin-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 20px;
  background-color: #faf6f0;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  border-left: 3px solid var(--secondary-color);
}

.admin-actions-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.table-container {
  overflow-x: auto;
  border: 1px solid #efe6da;
  border-radius: var(--border-radius-sm);
  -webkit-overflow-scrolling: touch;
}

#admin-registrations-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 0.8rem;
}

#kit-table {
  width: 100%;
  min-width: 450px;
  border-collapse: collapse;
  font-size: 0.8rem;
}

#admin-registrations-table th, #admin-registrations-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #efe6da;
}

#admin-registrations-table th {
  background-color: #faf6f0;
  font-weight: 700;
  color: var(--primary-color);
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.7rem;
}

.status-badge.pago {
  background-color: #eafaf1;
  color: var(--success-color);
}

.status-badge.pendente {
  background-color: #fef5eb;
  color: var(--pending-color);
}

.btn-admin-approve {
  background-color: var(--success-color);
  color: var(--white);
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.75rem;
  transition: var(--transition-smooth);
}

.btn-admin-approve:hover {
  background-color: #219653;
}

/* Health badge styles for admin dashboard */
.health-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  margin-right: 4px;
  margin-top: 4px;
}

.health-badge.danger {
  background-color: #fce8e6;
  color: var(--danger-color);
  border: 1px solid rgba(192, 57, 43, 0.2);
}

.health-badge.warning {
  background-color: #fef5eb;
  color: #d35400;
  border: 1px solid rgba(211, 84, 0, 0.2);
}

.health-badge.info {
  background-color: #eef7fc;
  color: var(--secondary-color);
  border: 1px solid rgba(134, 84, 57, 0.2);
}

/* Footer styling */
.main-footer {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer-sub {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 8px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(211, 84, 0, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(211, 84, 0, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(211, 84, 0, 0); }
}

.animate-scale-up {
  animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delayed {
  animation: fadeIn 0.8s ease-out 0.3s both;
}

/* Administrative Icon Buttons (Square, brown background, rounded corners) */
.btn-icon-admin {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background-color: var(--primary-color);
  color: var(--white) !important;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  flex-shrink: 0;
}

.btn-icon-admin:hover {
  background-color: var(--secondary-color);
  box-shadow: 0 4px 8px rgba(92, 61, 46, 0.2);
  transform: translateY(-1px);
}

.btn-icon-admin::after {
  display: none !important;
}

/* Administrative Rectangular Buttons for Mobile (Brown, text + icon, full width) */
.btn-icon-admin-rect {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  height: 48px;
  background-color: var(--primary-color);
  color: var(--white) !important;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  width: 100%;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  gap: 10px;
  box-sizing: border-box;
}

.btn-icon-admin-rect:hover {
  background-color: var(--secondary-color);
  box-shadow: 0 4px 8px rgba(92, 61, 46, 0.2);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
}

/* Helper display utilities for responsive visibility */
.d-desktop-only {
  display: inline-flex !important;
}

.d-mobile-only {
  display: none !important;
}

/* Responsive Grid adjustments */
@media (max-width: 768px) {
  .d-desktop-only {
    display: none !important;
  }
  .d-mobile-only {
    display: flex !important;
  }

  .hero-logo {
    max-width: 240px;
  }
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .payment-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .stepper {
    flex-wrap: wrap;
    gap: 12px;
  }
  .step-line {
    display: none;
  }
  .step {
    flex: 0 0 30%;
  }
  .glass-card {
    padding: 24px;
  }

  /* Mobile Header Layout: Logo centered -> links row -> buttons block */
  .header-container {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px;
  }
  
  .logo {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    width: 100%;
  }
  
  .header-logo {
    max-height: none;
    width: 100%;
    height: auto;
    max-width: 290px; /* Larger logo to fill the white space */
  }
  
  .mobile-admin-row {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    margin: 40px auto 20px auto;
    width: 100%;
    max-width: 420px; /* Centered with max boundary */
    box-sizing: border-box;
  }
  
  .nav-links {
    display: none !important;
  }
  
  .mobile-user-row {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    margin: 12px auto 0 auto;
    width: 100%;
    max-width: 420px; /* Centered with max boundary */
    box-sizing: border-box;
  }
  
  .btn-mobile-nav {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    height: 48px;
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    width: 100%;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    gap: 10px;
    box-sizing: border-box;
  }
  
  .btn-mobile-nav:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 8px rgba(92, 61, 46, 0.2);
    transform: translateY(-1px);
  }

  .admin-panel {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    top: 0 !important;
    left: 0 !important;
    transform: translate(0, 100%) !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    opacity: 1 !important;
    pointer-events: none !important;
  }
  
  .admin-panel.open {
    transform: translate(0, 0) !important;
    pointer-events: auto !important;
    box-shadow: none !important;
  }
}

/* Print Styling */
@media print {
  /* Ocultar todos os elementos exceto a seção de inscrição */
  .main-header, .hero-section, .info-section, .main-footer, .admin-panel, .success-actions, .success-title, .success-subtitle, .success-icon, .stepper {
    display: none !important;
  }
  
  /* Resetar o layout do corpo e do html */
  body, html {
    background-color: #fff !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
  }
  
  /* Remover restrições de layout dos containers pais */
  .registration-section {
    padding: 0 !important;
    background: none !important;
  }
  
  .glass-card {
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  .success-container {
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  
  /* Centralizar e ajustar o card do voucher na página única */
  .voucher-card {
    border: 1px solid #000 !important;
    box-shadow: none !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 600px !important;
    page-break-inside: avoid !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
  }
  
  .voucher-header {
    background-color: #000 !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  
  .voucher-kit-box {
    background-color: #eafaf1 !important;
    color: #27ae60 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    border-top: 1.5px dashed #efe6da !important;
    border-bottom: 1.5px dashed #efe6da !important;
  }

  .voucher-card::before, .voucher-card::after {
    display: none !important;
  }
}

/* Kit Alert and Voucher Banner Styling */
.kit-alert-box {
  padding: 14px 18px;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}
.kit-alert-box.info {
  background-color: #faf6f0;
  color: #5c3d2e;
  border: 1px solid #efe6da;
}
.kit-alert-box.warning {
  background-color: #fff5ed;
  color: #d35400;
  border: 1px solid rgba(211, 84, 0, 0.15);
}
.kit-alert-box i {
  font-size: 1.2rem;
  color: var(--secondary-color);
}
.kit-alert-box.warning i {
  color: #d35400;
}
.voucher-kit-box {
  background-color: #eafaf1;
  color: #27ae60;
  border-top: 1.5px dashed #efe6da;
  border-bottom: 1.5px dashed #efe6da;
  padding: 14px 24px;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}
.voucher-kit-box i {
  font-size: 1.25rem;
  color: #27ae60;
}

/* Closed Registration Box Styling */
.closed-container {
  text-align: center;
  padding: 40px 0;
  max-width: 600px;
  margin: 0 auto;
}

.closed-icon {
  font-size: 4rem;
  color: var(--danger-color);
  margin-bottom: 24px;
}

.closed-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.closed-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.closed-message-box {
  background-color: #fef5eb;
  border-left: 4px solid var(--pending-color);
  padding: 20px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  margin-bottom: 36px;
  border-top: 1px solid rgba(211, 84, 0, 0.1);
  border-right: 1px solid rgba(211, 84, 0, 0.1);
  border-bottom: 1px solid rgba(211, 84, 0, 0.1);
}

.closed-message-box i {
  font-size: 1.5rem;
  color: var(--pending-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.closed-message-box p {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.closed-actions {
  display: flex;
  justify-content: center;
}
