

body {
    scroll-behavior: smooth;

}

/* Base reset for consistent sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Form container */
form {
  max-width: 640px;
  margin: 0 auto;
}

/* Labels */
label {
  display: block;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Inputs, selects, textareas */
input,
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* Prevents iOS zoom */
  padding: 0.75rem 1rem;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}

/* Textarea resize control */
textarea {
  min-height: 120px;
  resize: vertical;
}

/* Focus state */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Disabled */
input:disabled,
select:disabled,
textarea:disabled {
  background-color: #f2f4f7;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Buttons */
button,
input[type="submit"] {
  display: inline-block;
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background-color: #5b7984;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.05s ease;
}

/* Button hover (desktop only) */
@media (hover: hover) {
  button:hover,
  input[type="submit"]:hover {
    background-color: #0d2b36;
  }
}

/* Active press feedback */
button:active,
input[type="submit"]:active {
  transform: scale(0.98);
}


/* Improve tap size for checkboxes & radios */
input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  height: 20px;
}

/* Inline checkbox/radio label pairing */
.checkbox-group,
.radio-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}



input[type="submit"].logout-button {
	display: inline-block;
    width: auto;
    padding: 0.0em;
    font-size: 1em;
    font-weight: normal;
    border: none;
    border-radius: 3px;
    background-color: #5b7984;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.05s ease;
}


/* Container styling */
details {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

/* Open state styling */
details[open] {
  border-color: #007bff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Summary header (clickable area) */
summary {
  font-weight: bold;
  padding: 0.5rem;
  cursor: pointer;
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Custom indicator (+/-) */
summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: bold;
}

details[open] summary::after {
  content: '-';
}

/* Hide default marker in Webkit */
summary::-webkit-details-marker {
  display: none;
}

/* Content padding */
details p {
  padding: 0.5rem;
  margin: 0;
  color: #333;
}
