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

:root {
  --primary: #1a1a1a;
  --primary-light: #2d2d2d;
  --accent: #c9a55a;
  --accent-hover: #b8974d;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-light: #999999;
  --bg-light: #f8f8f8;
  --bg-white: #ffffff;
  --border: #e0e0e0;
  --success: #2d7a3e;
  --error: #c73838;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
  min-height: 100vh;
}

.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 80px 24px 120px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

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

.logo-mark {
  width: 80px;
  height: 80px;
  background: var(--accent);
  margin: 0 auto 32px;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 8px 32px rgba(201, 165, 90, 0.3);
}

.logo-mark::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-white);
  border-radius: 50%;
}

.event-title {
  font-size: 48px;
  font-weight: 300;
  color: var(--bg-white);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.event-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
}

.container {
  max-width: 800px;
  margin: -60px auto 80px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.checkout-card {
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.card-header {
  padding: 48px 48px 32px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.card-header h2 {
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

.registration-form {
  padding: 48px;
}

.form-section {
  margin-bottom: 48px;
}

.form-section:last-of-type {
  margin-bottom: 0;
}

.section-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--text-primary);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.required {
  color: var(--accent);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 165, 90, 0.1);
}

.form-group input::placeholder {
  color: var(--text-light);
}

.date-selector {
  display: grid;
  gap: 16px;
}

.date-option {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: var(--bg-white);
}

.date-option:hover:not(.date-option-disabled) {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.date-option.selected {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(201, 165, 90, 0.05) 0%, rgba(201, 165, 90, 0.02) 100%);
  box-shadow: var(--shadow-md);
}

.date-option.date-option-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-light);
}

.date-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.date-info h4 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.date-info p {
  font-size: 14px;
  color: var(--text-secondary);
}

.shift-badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  background: var(--accent);
  color: var(--bg-white);
}

.capacity-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.capacity-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.capacity-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
  transition: width 0.3s ease;
}

.capacity-text {
  font-weight: 500;
  color: var(--text-primary);
}

.loading-state,
.error-state,
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

.spinner-small {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--bg-white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.form-actions {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.btn-submit {
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--bg-white);
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(201, 165, 90, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 165, 90, 0.4);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-submit .btn-loader {
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-message {
  text-align: center;
  padding: 80px 48px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--success);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(45, 122, 62, 0.3);
}

.success-message h3 {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.success-message p {
  font-size: 16px;
  color: var(--text-secondary);
}

.error-message {
  background: rgba(199, 56, 56, 0.1);
  border: 1px solid var(--error);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  color: var(--error);
  font-size: 14px;
  display: none;
}

.error-message.show {
  display: block;
}

.cpf-feedback {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  min-height: 16px;
}

.cpf-feedback.valid {
  color: var(--success);
}

.cpf-feedback.invalid {
  color: var(--error);
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.popup-box {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: popup-in 0.2s ease;
}

@keyframes popup-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.popup-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.popup-box h3 {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.popup-box p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.btn-popup-close {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--bg-white);
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-popup-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201, 165, 90, 0.3);
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 20px 100px;
  }

  .event-title {
    font-size: 36px;
  }

  .event-subtitle {
    font-size: 18px;
  }

  .container {
    margin-top: -40px;
    padding: 0 16px;
  }

  .card-header {
    padding: 32px 24px 24px;
  }

  .card-header h2 {
    font-size: 24px;
  }

  .registration-form {
    padding: 32px 24px;
  }

  .form-section {
    margin-bottom: 32px;
  }

  .date-option {
    padding: 20px;
  }

  .date-option-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .success-message {
    padding: 60px 24px;
  }
  
  .logo-image {
    max-width: 150px; /* Largura máxima */
    width: 100%; /* Responsivo */
    height: auto; /* Mantém proporção */
    display: block;
    margin: 0 auto 20px auto; /* Centraliza */
  } 
}
