@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: white;
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.6;
  font-size: 14px;
}

/* Event Banner Styling */
.event-banner {
  margin-bottom: 15px;
  text-align: center;
  width: 100%;
  overflow: hidden;
}

.full-width-banner {
  width: 100%;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  max-height: 120px;
  object-fit: cover;
  object-position: center;
}

/* Event Information Styling */
.event-info {
  margin-bottom: 30px;
}

.event-header {
  text-align: center;
  margin-bottom: 20px;
}

.event-header h1 {
  color: #007bff;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 5px 0;
}

.event-header h2 {
  color: #495057;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

.event-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 20px 0;
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
}

.event-detail-item {
  display: flex;
  align-items: center;
  margin: 8px 0;
  flex-basis: 30%;
}

.detail-icon {
  margin-right: 10px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007bff;
  font-size: 16px;
}

.detail-content {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-weight: 500;
  font-size: 13px;
  color: #6c757d;
}

.detail-value {
  font-weight: 400;
  font-size: 14px;
}

.event-categories {
  margin: 20px 0;
}

.category-container {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.category {
  background-color: #e9f0ff;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  flex-basis: 45%;
}

.category h3 {
  color: #007bff;
  margin: 0 0 5px 0;
  font-size: 16px;
}

.category p {
  margin: 0;
  font-size: 14px;
}

.event-prizes {
  margin: 20px 0;
}

.event-prizes h3 {
  text-align: center;
  color: #495057;
  margin-bottom: 15px;
  font-size: 18px;
}

.prize-container {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.prize {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  flex-basis: 30%;
}

.prize-rank {
  font-weight: 500;
  margin-bottom: 5px;
}

.prize-amount {
  font-weight: 700;
  color: #007bff;
  font-size: 18px;
}

.fa-trophy.gold {
  color: #ffc107;
}

.fa-trophy.silver {
  color: #adb5bd;
}

.fa-trophy.bronze {
  color: #cd7f32;
}

/* Responsive adjustments for event info */
@media (max-width: 768px) {
  .event-details {
    flex-direction: column;
  }
  
  .event-detail-item {
    flex-basis: 100%;
  }
  
  .category-container, .prize-container {
    flex-direction: column;
    align-items: center;
  }
  
  .category, .prize {
    width: 80%;
  }
}

/* Horizontal rule with more elegant styling */
hr.section-divider {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
  margin: 30px 0;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  padding: 0;
  box-sizing: border-box;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 1px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 13px;
}

/* Field helper text - more visible */
.form-group .form-text {
  font-size: 12px;
  color: #555;
  margin-top: 5px;
  display: block;
  padding: 3px 5px;
  border-left: 2px solid #ddd;
}

/* Input container to help with icon positioning */
.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.form-control {
  width: 100%;
  padding: 10px 12px 10px 35px; /* Ensure enough padding for the icon */
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 1px;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  height: 40px; /* Set a fixed height for consistency */
}

/* Improved icon positioning for middle alignment */
.input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%); /* Perfectly center the icon vertically */
  color: #666;
  font-size: 14px;
  z-index: 10;
  pointer-events: none; /* Make sure icon doesn't interfere with clicks */
  display: flex;
  align-items: center;
}

/* Style select dropdown */
select.form-control {
  appearance: none; /* Remove default styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  cursor: pointer;
  padding-right: 30px; /* Make room for the custom arrow */
}

/* Style dropdown when focused */
select.form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.25);
}

/* Remove focus outline and use custom style */
.form-control:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.25);
}

/* Style for dropdown options */
select.form-control option {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  padding: 8px;
  background: white;
  color: #333;
}

/* Add hover effect on select options */
select.form-control option:hover,
select.form-control option:focus {
  background-color: #f8f9fa;
}

.btn {
  padding: 8px 20px;
  font-size: 13px;
  border-radius: 1px;
  cursor: pointer;
  border: none;
  text-align: center;
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  height: 40px; /* Match input height for consistency */
}

.btn-secondary {
  background-color: #343a40;
  color: white;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

.form-text {
  font-size: 12px;
  color: #555;
  margin-top: 5px;
  display: block;
  padding-left: 5px;
}

/* Helper text styling - make more visible */
.helper-text {
  font-size: 13px;
  color: #333;
  margin: 10px 0 20px;
  background-color: #f8f9fa;
  padding: 10px;
  border-left: 3px solid #007bff;
  display: block;
}

/* Section titles */
.section-title {
  text-align: left;
  font-size: 18px;
  margin: 20px 0;
  font-weight: 500;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

/* Separator styling */
.separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 30px 0;
}

.separator::before,
.separator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #ddd;
}

.separator span {
  padding: 0 10px;
  background-color: #fff;
  color: #666;
  font-size: 12px;
  text-transform: uppercase;
}

.field-label {
  font-size: 13px;
  margin-bottom: 5px;
  display: block;
  font-weight: 500;
}

footer {
  text-align: center;
  padding: 20px 0;
  color: #6c757d;
  font-size: 12px;
}

.alert {
  padding: 10px;
  margin: 20px 0;
  border-radius: 1px;
  text-align: left;
  font-size: 13px;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ID Check form */
.id-check-form {
  margin-bottom: 30px;
}

/* Text alignment overrides */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}