/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #000;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden {
  display: none !important;
}

/* Added Matrix animation background styles */
.matrix-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

#matrixCanvas {
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

/* Background Effects */
.background-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.blur-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.blur-1 {
  top: 10%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  animation: float 6s ease-in-out infinite;
}

.blur-2 {
  bottom: 20%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  animation: float 8s ease-in-out infinite reverse;
}

.blur-3 {
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #ec4899, #7c3aed);
  animation: float 7s ease-in-out infinite;
  transform: translate(-50%, -50%);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(75, 85, 99, 0.3);
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo {
  width: 40px;
  height: 40px;
  /*background-image: url("img/barbosa.png");*/
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1rem;
}

.logo_pequena {
  width: 100%;
}

.logo-text-section {
  display: flex;
  flex-direction: column;
}

.college-name {
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.event-name {
  color: #9ca3af;
  font-size: 0.75rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: #d1d5db;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav a:hover {
  color: white;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Main Content */
.main-content {
  padding-top: 100px;
  min-height: 100vh;
  position: relative;
}

/* Form Header */
.form-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 2rem 0;
}

.badge {
  display: inline-block;
  background: rgba(147, 51, 234, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(147, 51, 234, 0.4);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(4px);
  font-weight: 500;
}

.main-title {
  margin-bottom: 1rem;
  line-height: 1;
}

.setec-text {
  display: block;
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.05em;
}

.year-text {
  display: block;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 300;
  color: #d1d5db;
  margin-top: 1rem;
}

.subtitle {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #9ca3af;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Form Type Selection */
.form-type-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.type-card {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(75, 85, 99, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.type-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(59, 130, 246, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.type-card:hover::before,
.type-card.active::before {
  opacity: 1;
}

.type-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.6);
}

.type-card.active {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
}

.type-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  color: white;
  position: relative;
  z-index: 1;
}

.type-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.type-card p {
  color: #9ca3af;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* Form Container */
.form-container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(75, 85, 99, 0.3);
  border-radius: 1.5rem;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.form-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(6, 182, 212, 0.05));
  pointer-events: none;
}

/* Student Type Selection */
.student-type-selection {
  margin-bottom: 2rem;
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.radio-option {
  position: relative;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-option label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(31, 41, 55, 0.6);
  border: 2px solid rgba(75, 85, 99, 0.3);
  border-radius: 0.75rem;
  color: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.radio-option label:hover {
  border-color: rgba(124, 58, 237, 0.5);
  background: rgba(124, 58, 237, 0.1);
}

.radio-option input[type="radio"]:checked + label {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.2);
  color: white;
}

.radio-option label i {
  font-size: 1.25rem;
  color: #7c3aed;
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  color: white;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
}

.form-group input,
.form-group select {
  background: rgba(31, 41, 55, 0.8);
  border: 2px solid rgba(75, 85, 99, 0.4);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group input::placeholder {
  color: #6b7280;
}

.form-group select option {
  background: #1f2937;
  color: white;
}

/* Student Only Fields */
.student-only-field {
  transition: all 0.3s ease;
}

.student-only-field.hidden {
  display: none;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 160px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary span,
.btn-primary i {
  position: relative;
  z-index: 1;
}

.btn-outline {
  background: transparent;
  color: #d1d5db;
  border: 2px solid rgba(209, 213, 219, 0.3);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 160px;
  justify-content: center;
}

.btn-outline:hover {
  background: rgba(209, 213, 219, 0.1);
  border-color: #d1d5db;
  color: white;
  transform: translateY(-2px);
}

/* Loading State */
.btn-primary.loading {
  pointer-events: none;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Popup */
.popup-container {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.popup-content {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(75, 85, 99, 0.3);
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.popup-header h2 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.popup-close {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.popup-close:hover {
  background: rgba(75, 85, 99, 0.3);
  color: white;
}

.pix-container {
  text-align: center;
  margin-bottom: 2rem;
}

.pix-icon {
  font-size: 3rem;
  color: #7c3aed;
  margin-bottom: 1rem;
}

.pix-placeholder {
  width: 200px;
  height: 200px;
  background: rgba(31, 41, 55, 0.6);
  border: 2px dashed rgba(124, 58, 237, 0.5);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #9ca3af;
}

.pix-placeholder i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: #7c3aed;
}

.pix-text {
  color: #d1d5db;
  line-height: 1.6;
}

.popup-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Custom Alert */
.custom-alert {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(75, 85, 99, 0.3);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  max-width: 400px;
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.custom-alert.show {
  transform: translateX(0);
}

.custom-alert-success {
  border-left: 4px solid #10b981;
}

.custom-alert-error {
  border-left: 4px solid #ef4444;
}

.alert-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-icon {
  font-size: 1.25rem;
  font-weight: bold;
}

.custom-alert-success .alert-icon {
  color: #10b981;
}

.custom-alert-error .alert-icon {
  color: #ef4444;
}

.alert-message {
  color: white;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.4;
}

.alert-close {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.alert-close:hover {
  background: rgba(75, 85, 99, 0.3);
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .nav {
    display: none;
  }

  .nav.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid rgba(75, 85, 99, 0.3);
    backdrop-filter: blur(12px);
  }

  .nav.active a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(75, 85, 99, 0.2);
    text-align: center;
  }

  .nav.active a:last-child {
    border-bottom: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .main-content {
    padding-top: 80px;
  }

  .form-container {
    padding: 2rem 1.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .radio-group {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
  }

  .popup-content {
    margin: 1rem;
    padding: 1.5rem;
  }

  .popup-actions {
    flex-direction: column;
  }

  .popup-actions .btn-primary,
  .popup-actions .btn-outline {
    width: 100%;
  }

  .custom-alert {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }

  .setec-text {
    font-size: clamp(3rem, 15vw, 6rem);
  }

  .year-text {
    font-size: clamp(1.5rem, 8vw, 3rem);
  }

  .subtitle {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
  }
}

@media (max-width: 480px) {
  .form-type-selection {
    grid-template-columns: 1fr;
  }

  .type-card {
    padding: 1.5rem;
  }

  .form-container {
    padding: 1.5rem 1rem;
  }

  .badge {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Focus styles for accessibility */
.form-group input:focus,
.form-group select:focus,
.btn-primary:focus,
.btn-outline:focus,
.type-card:focus {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .type-card,
  .form-container {
    border-width: 2px;
  }

  .form-group input,
  .form-group select {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .blur-circle {
    animation: none;
  }
}
