/* ===============================
   Registration Wizard - Modern Design
================================ */

/* Overlay */
.registration-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 20, 0.85);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s ease;
  z-index: 2000;
  padding: 20px;
}

.registration-overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* Wizard Container */
.registration-wizard {
  width: min(980px, 95vw);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  transform: translateY(40px) scale(0.94);
  opacity: 0;
  transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.registration-overlay.show .registration-wizard {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Header */
.wizard-header {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(229, 71, 56, 0.25), rgba(245, 107, 90, 0.15));
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.wizard-title {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.4px;
  background: linear-gradient(135deg, #ff0050, #ff5c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wizard-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.wizard-close:hover {
  background: rgba(255, 0, 80, 0.2);
  transform: rotate(90deg);
}

/* Progress Bar */
.wizard-progress-wrap {
  padding: 14px 22px;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.wizard-progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.wizard-bar {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #ff0050, #ff5c00);
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(255, 0, 80, 0.5);
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

/* Body */
.wizard-body {
  padding: 18px 22px;
  max-height: calc(92vh - 170px);
  overflow: auto;
}

.wizard-body::-webkit-scrollbar {
  width: 8px;
}

.wizard-body::-webkit-scrollbar-track {
  background: rgba(255, 0, 80, 0.05);
  border-radius: 10px;
}

.wizard-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff0050, #ff5c00);
  border-radius: 10px;
}

/* Steps */
.wizard-step {
  display: none;
  animation: slideIn 0.45s ease both;
}

.wizard-step.active {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Step Chip */
.step-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 0, 80, 0.15);
  color: #ffb399;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 0, 80, 0.3);
}

/* Form Grid */
.form-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.form-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.form-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}

/* Form Fields */
.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 5px;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #eaf0ff;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 13px;
}

.form-field textarea {
  min-height: 100px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #ff5c00;
  box-shadow: 0 0 0 3px rgba(255, 0, 80, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.form-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ff5c00' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-field select option {
  background: #0f1423;
  color: #eaf0ff;
}

.required {
  color: #ff5c00;
}

/* Participant Card */
.participant-card {
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 12px;
  margin-top: 12px;
  background: rgba(255, 0, 80, 0.03);
  transition: all 0.3s ease;
}

.participant-card:hover {
  border-color: rgba(255, 0, 80, 0.4);
  background: rgba(255, 0, 80, 0.06);
}

.participant-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #ff5c00;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.wizard-btn {
  padding: 10px 20px;
  border-radius: 12px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.3px;
}

.wizard-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.wizard-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.wizard-btn.primary {
  background: linear-gradient(135deg, #ff0050, #ff5c00);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 0, 80, 0.3);
}

.wizard-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255, 0, 80, 0.5);
  background: linear-gradient(135deg, #ff5c00, #ff7a18);
  filter: brightness(1.1);
}

/* Toast */
.registration-toast {
  position: fixed;
  right: 24px;
  bottom: 68px;
  padding: 16px 24px;
  border-radius: 14px;
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #cafff1;
  /* opacity: 0; */
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 3000;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

.registration-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Validation Toast */
.validation-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 14px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 3500;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  max-width: 90%;
  width: auto;
  white-space: nowrap;
}

.validation-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.validation-toast-error {
  background: rgba(255, 68, 68, 0.15);
  border: 1px solid rgba(255, 68, 68, 0.4);
  color: #ffcccb;
}

.validation-toast-success {
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #cafff1;
}

.validation-toast .toast-icon {
  font-size: 18px;
  font-weight: bold;
}

.validation-toast .toast-message {
  flex: 1;
}

/* Responsive - Industry Standard */
@media (max-width: 768px) {
  .registration-overlay {
    padding: 12px;
  }

  .registration-wizard {
    width: 100%;
    max-height: 95vh;
  }

  .form-grid.two-col,
  .form-grid.three-col {
    grid-template-columns: 1fr;
  }

  .wizard-header {
    padding: 14px 16px;
  }

  .wizard-title {
    font-size: 18px;
  }

  .wizard-progress-wrap {
    padding: 12px 16px;
  }

  .wizard-body {
    padding: 16px;
    max-height: calc(95vh - 200px);
    overflow-y: auto;
  }

  .wizard-nav {
    flex-direction: column;
    gap: 12px;
  }

  .wizard-btn {
    width: 100%;
    padding: 14px 20px;
  }

  .validation-toast {
    bottom: 80px;
    max-width: 85%;
    font-size: 13px;
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  .registration-overlay {
    padding: 0;
  }

  .registration-wizard {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
  }

  .wizard-header {
    padding: 16px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, rgba(229, 71, 56, 0.3), rgba(245, 107, 90, 0.2));
  }

  .wizard-title {
    font-size: 18px;
  }

  .wizard-close {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  .wizard-progress-wrap {
    padding: 14px 16px;
    position: sticky;
    top: 60px;
    z-index: 9;
    background: rgba(0, 0, 0, 0.2);
  }

  .wizard-progress {
    height: 8px;
  }

  .wizard-body {
    padding: 20px 16px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
  }

  .step-chip {
    font-size: 12px;
    padding: 6px 12px;
  }

  .form-label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 8px;
  }

  .wizard-nav {
    position: sticky;
    bottom: 0;
    padding: 16px;
    margin: 0 -16px -20px -16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    gap: 12px;
  }

  .wizard-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 8px;
  }

  .validation-toast {
    bottom: 90px;
    max-width: 90%;
    font-size: 12px;
    padding: 10px 16px;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .wizard-header {
    padding: 14px 12px;
  }

  .wizard-title {
    font-size: 16px;
  }

  .wizard-close {
    width: 32px;
    height: 32px;
    font-size: 22px;
  }

  .wizard-progress-wrap {
    padding: 12px;
  }

  .wizard-body {
    padding: 16px 12px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 10px 12px;
    font-size: 15px;
  }

  .wizard-nav {
    padding: 12px;
    margin: 0 -12px -16px -12px;
  }

  .wizard-btn {
    padding: 12px 16px;
    font-size: 14px;
  }
}


/* Hide loading screen */
.loading {
  display: none !important;
}


/* Fallback: Show content if JavaScript doesn't load */
html.no-js [data-scroll] {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Ensure hero section is always visible */
.bournfire-hackathon-hero [data-scroll] {
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bournfire-hackathon-hero [data-scroll]:nth-child(1) {
  animation-delay: 0.1s;
}

.bournfire-hackathon-hero [data-scroll]:nth-child(2) {
  animation-delay: 0.2s;
}

.bournfire-hackathon-hero [data-scroll]:nth-child(3) {
  animation-delay: 0.3s;
}

.bournfire-hackathon-hero [data-scroll]:nth-child(4) {
  animation-delay: 0.4s;
}


/* Error State for Form Fields */
.form-field input.error,
.form-field select.error,
.form-field textarea.error {
  border-color: #ff4444;
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.2);
  background: rgba(255, 68, 68, 0.08);
}

/* Field Error Message */
.field-error-message {
  display: block;
  color: #ff4444;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
  animation: errorSlideIn 0.3s ease;
}

@keyframes errorSlideIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Disabled Button State */
.wizard-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* OTP Input Styles */
.input-with-button {
  display: flex;
  gap: 8px;
  align-items: center;
}

.input-with-button input {
  flex: 1;
}

/* OTP Validation Field Animation */
#otpValidationField,
#otpValidationField2,
#otpValidationField3 {
  animation: slideInFromRight 0.4s ease-out;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.otp-action-btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #ff0050, #ff5c00);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 110px;
  box-shadow: 0 4px 12px rgba(255, 0, 80, 0.3);
}

.otp-action-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 0, 80, 0.4);
  background: linear-gradient(135deg, #ff5c00, #ff7a18);
}

.otp-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.otp-action-btn.success {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.otp-action-btn.success:hover:not(:disabled) {
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.otp-status {
  display: block;
  font-size: 12px;
  margin-top: 6px;
  font-weight: 600;
  min-height: 18px;
}

.otp-status.success {
  color: #4caf50;
}

.otp-status.error {
  color: #ff4444;
}

.otp-status.info {
  color: #2196f3;
}

/* OTP Input - Only allow numbers */
#otpInput {
  letter-spacing: 3px;
  font-weight: 600;
  text-align: center;
  font-size: 15px;
}

/* Responsive OTP Styles */
@media (max-width: 768px) {
  .input-with-button {
    flex-direction: column;
    gap: 10px;
  }

  .input-with-button input,
  .otp-action-btn {
    width: 100%;
  }

  .otp-action-btn {
    min-width: unset;
  }
}
