.presale-section {
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.presale-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.offer-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25));
  color: #c7d2fe;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  box-shadow: 0 0 18px rgba(99, 102, 241, 0.15);
}

.benefits-list {
  list-style: none;
  margin-top: 30px;
}

.benefits-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
}

.check-icon {
  color: var(--success);
  font-size: 1.2rem;
}

.countdown-wrapper {
  margin: 40px 0 0;
  text-align: left;
}

.countdown-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-timer {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}

.time-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 54px;
}

.time-item span {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 10px 0;
  border-radius: 10px;
  width: 100%;
  text-align: center;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.time-item small {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.countdown-finished {
  color: #ef4444;
  font-weight: 700;
  font-size: 0.95rem;
}

.form-card {
  padding: 15px;
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-2);
}

.spots-counter {
  text-align: center;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 12px;
}

.spots-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.form-input, .form-select {
  width: 100%;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

.form-select option {
  background: #1e293b;
  color: white;
}

.form-input.error,
.form-select.error,
.checkbox-group.error .custom-checkbox {
  border-color: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.3);
}

/* Error message */
.error-message {
  display: none;
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 4px;
  padding-left: 2px;
}

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

/* Checkbox required asterisk */
.checkbox-group .required {
  color: #ef4444;
  font-weight: bold;
  margin-left: 2px;
}

/* Custom Select */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  padding: 12px 36px 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-trigger:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

.custom-select-trigger .select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: rgba(255, 255, 255, 0.5);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.custom-select-wrapper.open .select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.custom-options {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  z-index: 50;
  overflow-y: auto;
  max-height: 200px;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.4) transparent;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.custom-options::-webkit-scrollbar {
  width: 4px;
}

.custom-options::-webkit-scrollbar-track {
  background: transparent;
}

.custom-options::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: 10px;
}

.custom-options::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.6);
}

.custom-select-wrapper.open .custom-options {
  display: block;
}

.custom-option {
  padding: 12px 14px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.custom-option:hover {
  background: rgba(99, 102, 241, 0.15);
}

.custom-option.selected {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

.custom-select-wrapper.error .custom-select-trigger {
  border-color: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.3);
}

.custom-select-trigger.has-value {
  color: white;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--gradient-1);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 16px;
}

.success-message {
  display: none;
  text-align: center;
  padding: 20px;
}

.success-message h3 {
  color: inherit;
  cursor: default;
  pointer-events: none;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.required {
  color: #ef4444;
  font-weight: bold;
  margin-left: 2px;
}

.optional {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: normal;
  font-style: italic;
}

@media (max-width: 900px) {
  .presale-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

:root {
  --link-visible: #06b6d4;
}

.presale-section {
    padding-top: 100px;
  }
}
