/* Fonts loaded via Google Fonts - @font-face removed for performance */

/* SVG icons are used instead of Font Awesome for better performance */

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: linear-gradient(180deg, #1e1e1e 0%, #0f0f0f 50%, #000000 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Force mobile layout on all screens */
@media (min-width: 768px) {
  .container {
    max-width: 600px;
    padding: 0 30px;
  }

  /* Fix top-section and main-heading overlap on desktop */
  .top-section {
    padding: 15px 0;
    margin-bottom: 10px;
  }

  .main-content-section {
    margin-top: 0;
    padding-top: 20px;
  }

  .main-heading {
    margin-top: 20px;
  }
}

/* ===== TOP SECTION ===== */
.top-section {
  background: transparent;
  padding: 5px 0 5px 0;
  text-align: center;
  border-bottom: none;
}

.top-info {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.top-date,
.top-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #000000;
  letter-spacing: 0.3px;
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 24px;
}

.top-date svg,
.top-time svg {
  width: 12px;
  height: 12px;
  fill: #000000;
  flex-shrink: 0;
}

/* ===== MAIN CONTENT SECTION (DARK BACKGROUND) ===== */
.main-content-section {
  background: transparent;
  padding: 0px 20px 20px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-top: -45px;
  contain: layout style paint;
}

.main-heading {
  font-size: 28px;
  font-weight: 400;
  text-align: center;
  /* margin-bottom: 5px; */
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: "Bebas Neue", "Inter", sans-serif;
}

.heading-line {
  display: block;
  line-height: 1;
  font-size: 32px;
  padding-top: 8px;
}

.main-heading strong {
  color: #ff6b00;
  font-weight: 400;
}

/* Mentor Image */
.mentor-image-container {
  text-align: center;
  margin-bottom: -50px;
  padding: 0;
  flex-shrink: 0;
  height: 300px;
  position: relative;
}

.mentor-image {
  max-width: 260px;
  width: 100%;
  height: 300px;
  border-radius: 0;
  margin-top: -8px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Removed unused date-banner styles */

/* CTA Buttons */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: stretch;
  margin: 0;
  width: 100%;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  overflow: visible;
  animation: pulse 2s ease-in-out infinite;
  width: 100%;
  max-width: none;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.btn-primary {
  background: #ff6b00;
  color: #ffffff;
  height: 80px;
}

.btn-primary:first-of-type {
  padding: 21px 25px;
  font-size: 15px;
  position: relative;
  overflow: visible;
}

.bepul-badge {
  position: absolute;
  top: -10px;
  left: -15px;
  background: #ff0000;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 2px solid #ffffff;
  transform: rotate(-12deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #ff8533;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(255, 107, 0, 0.5);
  animation: none;
}

.btn-outline {
  background: #ff6b00;
  color: white;
  border: 3px solid #ff6b00;
}

.btn-outline:hover {
  background: #ff6b00;
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  animation: none;
  box-shadow: 0 10px 25px rgba(255, 107, 0, 0.3);
}

.btn-submit {
  background: #000000;
  color: #ffffff;
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: #333333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-disclaimer {
  text-align: center;
  font-size: 14px;
  color: #888888;
  margin-top: 15px;
  font-weight: 400;
}

/* Countdown Timer */
.countdown-timer {
  text-align: center;
  margin: 5px 0;
}

.timer-text {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin-right: 8px;
}

.timer-value {
  color: #ff6b00;
  font-size: 24px;
  font-weight: 700;
  font-family: "Bebas Neue", "Inter", sans-serif;
}

/* Benefits Section */
.benefits-section {
  margin: 10px 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
}

.benefits-title {
  font-size: 26px;
  font-weight: 600;
  text-align: center;
  /* line-height: 1; */
  margin-bottom: 10px;
  color: #ffffff;
}

.benefits-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
  min-height: 500px; /* Prevent layout shift */
}

.benefit-item {
  padding: 25px 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: none;
  box-shadow: none;
  transition: all 0.3s ease;
  text-align: left;
}

.benefit-item:hover {
  transform: translateY(-5px);
  border-color: #ffd700;
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
}

.benefit-item p {
  font-size: 18px;
  line-height: 1.8;
  color: #ffffff;
}

.benefit-item strong {
  color: #ff6b00;
  font-weight: 700;
}

/* Removed unused sections for performance */

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
  color: #000000;
}

.form-group input::placeholder {
  color: #999999;
}

.form-group input:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Phone Input Styling */
.phone-input-wrapper {
  display: flex;
  gap: 0;
  align-items: stretch;
  border: 1px solid #cccccc;
  border-radius: 8px;
  overflow: hidden;
}

.phone-country {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: none;
  border-radius: 0;
  padding: 12px 12px;
  border-right: 1px solid #cccccc;
}

.uz-flag {
  font-size: 20px;
  line-height: 1;
}

.country-code {
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: #000000;
  cursor: default;
  outline: none;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.country-code option {
  padding: 10px;
}

.phone-input-wrapper input {
  flex: 1;
  border: none;
  border-radius: 0;
  padding: 12px 15px;
  background: transparent;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  overflow: hidden;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: #ffffff;
  border: none;
  border-radius: 15px;
  padding: 40px 30px;
  max-width: 500px;
  width: 90%;
  z-index: 1001;
  animation: modalSlideIn 0.3s ease-out;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

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

.modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 10px;
  line-height: 1.4;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: #666666;
  font-size: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  padding: 5px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #000000;
}

body.modal-open {
  overflow: hidden;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .top-section {
    padding: 20px 0;
  }

  .top-date,
  .top-time {
    font-size: 18px;
    padding: 10px 20px;
  }

  .main-content-section {
    padding: 40px 15px;
  }

  .main-heading {
    font-size: 36px;
  }

  .heading-line {
    display: block;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .benefits-section {
    padding: 10px 20px;
  }

  .benefits-title {
    padding-top: 10px;
    font-size: 20px;
    line-height: 1.4;
    /* letter-spacing: 5px; */
    font-weight: 800;
  }

  .registration-section {
    padding: 40px 25px;
  }

  .form-title {
    font-size: 22px;
  }

  .modal-content {
    padding: 30px 20px;
  }

  .modal-header h2 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .top-date,
  .top-time {
    font-size: 16px;
    padding: 8px 15px;
  }

  .main-heading {
    font-size: 22px;
  }

  .modal-content {
    padding: 30px 20px;
  }
}
