/* ═══════════════════════════════════════════════════════════════
   STICKY HEADER FIX
   Add these styles to make the header stay at the top when scrolling
   ═══════════════════════════════════════════════════════════════ */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

/* Add shadow and blur effect when scrolled */
.header.scrolled {
  background: rgba(248, 250, 252, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}


/* ═══════════════════════════════════════════════════════════════
   RADIO BUTTON LABEL FIX
   Prevents text from overflowing outside its container
   ═══════════════════════════════════════════════════════════════ */

/* Fix for radio button labels to prevent text overflow */
label input[type="radio"] {
  flex-shrink: 0; /* Prevent radio button from shrinking */
  margin: 0;
}

label input[type="radio"] + span {
  flex: 1; /* Allow text to take remaining space */
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal; /* Allow text to wrap */
  min-width: 0; /* Allow flex item to shrink below content size */
}

/* Ensure radio button containers are properly laid out */
label:has(input[type="radio"]) {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap; /* Keep radio and text on same line */
}


/* ═══════════════════════════════════════════════════════════════
   IMPROVED FORM ELEMENTS
   Better spacing and alignment for form elements
   ═══════════════════════════════════════════════════════════════ */

.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--accent);
}


/* ═══════════════════════════════════════════════════════════════
   CARD IMPROVEMENTS
   Better mobile responsiveness and padding
   ═══════════════════════════════════════════════════════════════ */

.card {
  background: var(--surface);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .card {
    padding: 16px;
    border-radius: 10px;
  }
  
  .header {
    padding: 12px 16px !important;
  }
}

