/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Poppins, sans-serif;
}

body {
  background: #0b0214;
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 15px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== LOGO ===== */
.logo {
  text-align: center;
  margin: 40px 0;
  padding: 0 20px;
}

.logo img {
  max-width: 180px;
  width: 100%;
  height: auto;
}

/* ===== HEADER BANNER ===== */
.header-banner {
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: center;
  background: linear-gradient(90deg, #e326ff, #26b3e1);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(227, 38, 255, 0.4), 0 0 45px rgba(38, 179, 225, 0.3);
}

.header-banner h1 {
  font-size: clamp(20px, 5vw, 26px);
  color: #000;
  font-weight: 800;
  margin-bottom: 10px;
}

.header-banner .subtitle {
  font-size: clamp(14px, 3vw, 16px);
  font-weight: 600;
  color: #000;
  margin-bottom: 5px;
}

.header-banner .deadline,
.header-banner .date {
  font-size: clamp(13px, 2.5vw, 15px);
  font-weight: 700;
  color: #000;
  margin-top: 10px;
}

/* ===== INFO SECTION ===== */
.info-section {
  max-width: 900px;
  margin: 0 auto 50px auto;
  padding: 20px;
  background: rgba(15, 15, 15, 0.85);
  border-radius: 20px;
  border: 1px solid rgba(227, 38, 255, 0.25);
  box-shadow: 0 0 40px rgba(227, 38, 255, 0.25), 0 0 80px rgba(38, 179, 225, 0.15);
}

.info-section h2 {
  font-size: clamp(22px, 4vw, 28px);
  background: linear-gradient(90deg, #e326ff, #26b3e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 20px;
}

.info-section .event-info {
  text-align: center;
  margin-bottom: 15px;
  font-size: clamp(14px, 2.5vw, 16px);
}

.info-section .location {
  display: block;
  font-size: clamp(16px, 3vw, 18px);
  margin-top: 5px;
}

.info-section p {
  margin-bottom: 12px;
  font-size: clamp(14px, 2.5vw, 16px);
  opacity: 0.85;
}

.info-section ul {
  list-style: none;
  padding-left: 20px;
  margin-bottom: 15px;
}

.info-section ul li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 25px;
  font-size: clamp(13px, 2.5vw, 15px);
}

.info-section ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #e326ff;
  font-weight: bold;
}

.info-section strong {
  color: #26b3e1;
}

/* ===== REGISTER SECTION ===== */
#register {
  background: linear-gradient(180deg, #0b0b0b, #050505);
  padding: 40px 15px 80px 15px;
  position: relative;
  overflow: hidden;
}

#register::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(227, 38, 255, 0.18), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(38, 179, 225, 0.18), transparent 60%);
}

.register-content {
  max-width: 720px;
  margin: auto;
  background: rgba(15, 15, 15, 0.9);
  border-radius: 24px;
  padding: 30px 20px;
  border: 1px solid rgba(227, 38, 255, 0.25);
  box-shadow: 0 0 50px rgba(227, 38, 255, 0.3), 0 0 90px rgba(38, 179, 225, 0.15);
  backdrop-filter: blur(14px);
  position: relative;
}

.register-content h2 {
  text-align: center;
  font-size: clamp(24px, 5vw, 32px);
  background: linear-gradient(90deg, #e326ff, #26b3e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

/* ===== FORM STYLING ===== */
.register-form {
  display: grid;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: clamp(13px, 2.5vw, 14px);
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 15px;
  color: #fff;
  outline: none;
  transition: 0.3s;
  font-size: clamp(13px, 2.5vw, 14px);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #e326ff;
  box-shadow: 0 0 12px rgba(227, 38, 255, 0.6);
  transform: scale(1.02);
}

/* Mobile input group for country code + phone */
.mobile-input-group {
  display: flex;
  gap: 10px;
  width: 100%;
}

.mobile-input-group select {
  flex: 0 0 auto;
  min-width: 100px;
  max-width: 140px;
}

.mobile-input-group input {
  flex: 1;
  min-width: 0;
}

/* Form row for side-by-side inputs */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* Radio buttons */
.radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: clamp(13px, 2.5vw, 14px);
}

.radio-group input[type="radio"] {
  width: auto;
  cursor: pointer;
}

/* Waiver text */
.waiver-text {
  font-size: clamp(12px, 2vw, 13px);
  opacity: 0.8;
  text-align: justify;
  line-height: 1.6;
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

/* Submit button */
.submit-btn {
  margin-top: 20px;
  padding: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  background: linear-gradient(90deg, #e326ff, #26b3e1);
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.35s;
  box-shadow: 0 8px 20px rgba(227, 38, 255, 0.3), 0 8px 20px rgba(38, 179, 225, 0.3);
  font-size: clamp(14px, 3vw, 16px);
  width: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(227, 38, 255, 0.4), 0 12px 28px rgba(38, 179, 225, 0.4);
}

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

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

/* Date picker styling */
.dob-input {
  position: relative;
  cursor: pointer;
}

.dob-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.8;
  cursor: pointer;
  transition: 0.3s ease;
}

.dob-input:hover::-webkit-calendar-picker-indicator {
  filter: drop-shadow(0 0 8px #26b3e1);
}

input[type="date"] {
  color-scheme: dark;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 30px;
  padding: 0 20px;
  font-size: clamp(12px, 2.5vw, 14px);
  opacity: 0.7;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablets (portrait) - 768px and below */
@media (max-width: 768px) {
  .header-banner {
    margin: 0 15px 30px 15px;
    padding: 20px 15px;
  }

  .info-section {
    margin: 0 15px 40px 15px;
    padding: 20px 15px;
  }

  .register-content {
    padding: 25px 15px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mobile-input-group select {
    min-width: 90px;
    max-width: 110px;
  }
}

/* Mobile devices - 480px and below */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .logo {
    margin: 20px 0;
  }

  .logo img {
    max-width: 140px;
  }

  .header-banner {
    margin: 0 10px 20px 10px;
    padding: 15px 10px;
    border-radius: 12px;
  }

  .info-section {
    margin: 0 10px 30px 10px;
    padding: 15px 10px;
    border-radius: 16px;
  }

  #register {
    padding: 30px 10px 60px 10px;
  }

  .register-content {
    padding: 20px 12px;
    border-radius: 20px;
  }

  .register-form {
    gap: 18px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 10px;
  }

  .mobile-input-group {
    flex-direction: column;
    gap: 10px;
  }

  .mobile-input-group select,
  .mobile-input-group input {
    width: 100%;
    max-width: 100%;
  }

  .radio-group {
    flex-direction: column;
    gap: 12px;
  }

  .submit-btn {
    padding: 14px;
  }

  .footer {
    margin-top: 20px;
    font-size: 12px;
  }
}

/* Extra small devices - 360px and below */
@media (max-width: 360px) {
  .header-banner h1 {
    font-size: 18px;
    line-height: 1.3;
  }

  .header-banner .subtitle {
    font-size: 13px;
  }

  .info-section ul {
    padding-left: 10px;
  }

  .info-section ul li {
    padding-left: 20px;
    font-size: 12px;
  }

  .form-group label {
    font-size: 12px;
  }

  .form-group input,
  .form-group select {
    font-size: 13px;
    padding: 10px 8px;
  }

  .waiver-text {
    font-size: 11px;
    padding: 10px;
  }
}

/* Large tablets and small desktops - 992px and above */
@media (min-width: 992px) {
  .register-content {
    padding: 50px 40px;
  }

  .info-section {
    padding: 30px;
  }
}

/* Desktop - 1200px and above */
@media (min-width: 1200px) {
  #register {
    padding: 80px 20px 120px 20px;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
  .logo {
    margin: 20px 0;
  }

  .header-banner {
    margin-bottom: 20px;
    padding: 15px;
  }

  .info-section {
    margin-bottom: 30px;
  }

  #register {
    padding: 40px 15px 60px 15px;
  }
}

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
  }

  .submit-btn {
    display: none;
  }

  .register-content {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
