body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f5f5f5;
    padding-top: 20px;
    color: #555555;
}
.container {
    max-width: 450px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 0px;
    box-sizing: border-box;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
}
.logo {
    width: 50%;
    max-width: 300px;
    display: block;
    margin: 0 auto 20px;
}
input, textarea {
    width: 90%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}
input[type="tel"], input[type="email"] {
    font-size: 16px;
}
textarea {
    font-size: 16px;
    height: 150px;
    resize: vertical;
}
textarea#notes {
    height: 180px;
}
textarea::placeholder {
    color: #999;
    font-style: italic;
}
label {
    display: block;
    margin-bottom: 8px;
    text-align: left;
}
.checkboxes {
    width: 90%;
    margin: 10px auto 0;
    text-align: left;
    box-sizing: border-box;
}
.checkboxes label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    text-align: left;
}
input[type="checkbox"] {
    width: auto;
    margin: 0 10px 0 0;
    padding: 0;
    vertical-align: middle;
}
.btn {
    width: 90%;
    max-width: 100%;
    padding: 12px;
    border: none;
    background-color: #7a9c59;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin: 10px auto 0;
    border-radius: 0px;
    box-sizing: border-box;
}
.btn:hover {
    background-color: #627D47;
}
.btn:active {
    background-color: white;
    color: black;
}
#activateBtn {
    display: none;
}
.error {
    color: white;
    background-color: #DB7741;
    padding: 10px;
    border-radius: 0px;
    margin-top: 10px;
    display: none;
}
#signupForm {
    display: block;
    margin-top: 20px;
}
#signupForm h2 {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    font-size: 16px;
}
#detailsContainer p {
    text-align: left;
    margin: 5px 0;
}
#detailsContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#agbContent {
  background: #f9f9f9;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 0px;
}

.btn:disabled {
  background-color: #ccc;
  color: #777;
  cursor: not-allowed;
}

select {
  width: 90%;
  padding: 0.5em;
  font-size: 1em;
  margin-bottom: 1em;
}

input:disabled,
select:disabled,
textarea:disabled {
  background-color: #f0f0f0;
  color: #666;
  cursor: not-allowed;
  opacity: 1; /* keeps text legible */
}

input[disabled]::placeholder,
textarea[disabled]::placeholder {
  color: #aaa;
}

.readonly-mode {
  border: 1px solid #ccc;
  padding: 1em;
  background-color: #fafafa;
  border-radius: 0px;
}

/* 1) Give all label+control pairs a uniform wrapper */
.field-group {
  width: 90%;
  margin: 10px auto;      /* same vertical spacing as inputs */
  text-align: left;
  box-sizing: border-box;
  font-size: 16px;        /* match your inputs’ font-size */
  color: #555;            /* match body text color */
}

/* 2) Make label sit above its input, full-width */
.field-group label {
  display: block;
  margin-bottom: 5px;     /* small gap to input */
}

/* 3) Ensure selects and date-pickers behave like inputs */
.field-group input[type="date"],
.field-group select {
  width: 100%;            /* fill the 90% wrapper */
  padding: 12px;          /* same padding */
  border: 1px solid #ccc;
  border-radius: 0px;
  box-sizing: border-box;
  font-size: 16px;
}

.btn.loading {
  position: relative;
  pointer-events: none;
  color: transparent; /* hide button text while loading */
}

.btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

#pilotInfoBox {
  padding: 16px;
  border-radius: 0px;
  margin-top: 1em;
  text-align: left;
  max-width: 400px;
  border-color: #7A9C5A;
  border: 1px solid #7A9C5A;
}

#pilotInfoBox a {
  text-decoration: none;
  color: #555555;
}


