/* ===================================================
   ACTIVE EVENT COMPONENT - Minimal styling
   Only affects #active-event-container
   ================================================= */

#active-event-container {
  margin-bottom: 3rem;
}

.active-event-section {
  background: #ffffff;
  border: 2px solid #e85d26;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.active-event-section.completed {
  border-color: #22c55e;
}

.active-event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.active-event-title h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #1a1a1a;
  margin: 0.5rem 0 0;
}

.event-label {
  display: inline-block;
  background: #e85d26;
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.event-label.completed {
  background: #22c55e;
}

.event-meta {
  color: #666;
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}

.bullet {
  margin: 0 0.3rem;
  color: #e85d26;
}

.event-countdown {
  background: #f9f9f9;
  border: 2px solid #e85d26;
  border-radius: 8px;
  padding: 1.2rem;
  text-align: center;
  min-width: 100px;
}

.days-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: #e85d26;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.days-label {
  font-size: 0.75rem;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
}

.event-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #ddd;
}

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

.detail-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #e85d26;
  margin-bottom: 0.4rem;
}

.detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
}

/* Attendee List */
.attendee-list-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #ddd;
}

.attendee-list-section h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #e85d26;
  margin: 0 0 1rem 0;
}

.attendee-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.attendee-item {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a1a;
}

.attendee-item:hover {
  background: #f0f7f0;
  border-color: #e85d26;
}

/* Form */
.rsvp-form {
  max-width: 500px;
}

.rsvp-form h3 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #e85d26;
  margin: 0 0 1.5rem 0;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 0.4rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 0.6rem;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}

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

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.radio-label input[type="radio"] {
  cursor: pointer;
  accent-color: #e85d26;
}

.radio-label span {
  font-size: 1rem;
  color: #1a1a1a;
}

.btn-primary,
.btn-secondary {
  padding: 0.7rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
}

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

.btn-primary:hover {
  background: #d14a1a;
}

.btn-secondary {
  background: #22c55e;
  color: white;
  display: inline-block;
  margin-top: 1rem;
}

.btn-secondary:hover {
  background: #16a34a;
}

.form-message {
  padding: 0.8rem;
  border-radius: 4px;
  margin-top: 1rem;
  font-weight: 600;
  text-align: center;
}

.form-message.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #22c55e;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.form-note {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Results Table - keep minimal */
.results-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.results-table thead {
  background: #f5f5f5;
  border-bottom: 2px solid #e85d26;
}

.results-table th {
  padding: 0.8rem;
  text-align: left;
  font-weight: 700;
  color: #e85d26;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.results-table td {
  padding: 0.8rem;
  border-bottom: 1px solid #eee;
  color: #1a1a1a;
}

.results-table tbody tr.winner {
  background: #fef3c7;
}

/* Responsive */
@media (max-width: 768px) {
  .active-event-header {
    flex-direction: column;
  }

  .active-event-title h2 {
    font-size: 1.4rem;
  }

  .event-details-grid {
    grid-template-columns: 1fr;
  }

  .attendee-list {
    grid-template-columns: 1fr;
  }
}

/* Dropdown styling */
.form-group select {
  width: 100%;
  padding: 0.6rem;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
  color: #1a1a1a;
  cursor: pointer;
}

.form-group select:focus {
  outline: none;
  border-color: #e85d26;
  box-shadow: 0 0 0 2px rgba(232, 93, 38, 0.1);
}

.name-input-group {
  position: relative;
}

#rsvp-name-input {
  width: 100%;
}
