.transfer-page {
  padding-top: 56px;
}

.transfer-form,
.transfer-result {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  padding: 28px;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.transfer-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.transfer-form label {
  display: block;
  margin-bottom: 18px;
  font-weight: 700;
  color: var(--text, #243020);
}

.transfer-form label span {
  color: #a33;
}

.transfer-form input,
.transfer-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid #d8ddd0;
  border-radius: 12px;
  font: inherit;
  background: #fff;
}

.transfer-form textarea {
  resize: vertical;
}

.dob-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 7px;
  border: 1px solid #d8ddd0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.transfer-form .dob-text-input {
  position: relative;
  z-index: 2;
  margin-top: 0;
  border: 0;
  border-radius: 0;
  padding-right: 54px;
}

.dob-picker-button {
  position: absolute;
  z-index: 3;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}

.dob-picker-native {
  position: absolute;
  width: 1px;
  height: 1px;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
}

.transfer-form small {
  display: block;
  margin-top: 6px;
  color: #66705c;
  font-weight: 500;
}

.transfer-result {
  text-align: center;
}

.transfer-result h2 {
  margin-bottom: 12px;
}

.transfer-result p {
  margin-bottom: 18px;
}

@media (max-width: 720px) {
  .transfer-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .transfer-form,
  .transfer-result {
    padding: 22px;
  }
}
.med-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.med-row input {
  flex: 1;
}
.transfer-all-box {
  margin: 25px 0 10px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 5px; /* aligns with text nicely */
  width: 18px;
  height: 18px;
}

.checkbox-label span {
  display: flex;
  flex-direction: column;
}

.checkbox-label strong {
  color: #9b2c2c; /* your red tone */
  font-size: 1.05rem;
}

.checkbox-label small {
  margin-top: 4px;
  color: #5f6b5c;
  font-size: 0.85rem;
}
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.consent-check input {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.consent-check a {
  color: #0b6b5c;
  font-weight: 600;
  text-decoration: underline;
}
.form-success {
  background: #e6f4ea;
  color: #2e7d32;
  padding: 12px 16px;
  border-left: 4px solid #2e7d32;
  margin-bottom: 20px;
}

.form-errors {
  background: #fdecea;
  color: #b71c1c;
  padding: 12px 16px;
  border-left: 4px solid #d32f2f;
  margin-bottom: 20px;
}

.error-input {
  border: 1px solid #d32f2f !important;
  background-color: #fff5f5;
}

.dob-input-wrap.error-input {
  background-color: #fff5f5;
}

.error-label {
  color: #d32f2f;
  font-weight: 600;
}

.error-text {
  color: #d32f2f;
  font-size: 13px;
  margin-top: 4px;
}
/* Fix transfer-all checkbox layout */
.checkbox-group {
  margin: 18px 0 20px;
}

.inline-checkbox {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  color: #a83232;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
}

.inline-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 5px 0 0 0;
  flex: 0 0 auto;
  accent-color: #0b6b5c;
}

.inline-checkbox span {
  display: block;
}

/* Prevent global input styles from affecting checkboxes */
.transfer-form input[type="checkbox"] {
  min-height: auto;
  border-radius: 4px;
  padding: 0;
}

/* Medication grid cleanup */
.med-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.med-row .form-group {
  margin-bottom: 0;
}

.prescription-error,
.error-text {
  color: #d32f2f;
  font-size: 14px;
  margin: 8px 0 12px;
}
.form-row,
.med-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.three-col {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 800px) {
  .two-col,
  .three-col {
    grid-template-columns: 1fr;
  }

  .dob-picker-button {
    display: none;
  }

  .dob-picker-native {
    display: none;
    pointer-events: none;
  }

  .transfer-form .dob-text-input {
    padding-right: 14px;
  }
}
/* Select dropdown styling */
.transfer-form select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  color: #333;
  appearance: none;           /* remove default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;

  /* custom arrow */
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23333' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5.5 7.5l4.5 5 4.5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  cursor: pointer;
}

/* Focus state */
.transfer-form select:focus {
  outline: none;
  border-color: #0b6b5c;
  box-shadow: 0 0 0 2px rgba(11, 107, 92, 0.15);
}

/* Error state (reuse your existing class) */
.transfer-form select.error-input {
  border: 1px solid #d32f2f;
  background-color: #fff5f5;
}

/* Disabled state (optional) */
.transfer-form select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

/* Match input height consistency */
.transfer-form select,
.transfer-form input,
.transfer-form textarea {
  min-height: 40px;
}
.transfer-form select:invalid {
  color: #888;
}
.inline-checkbox {
  display: flex;
  align-items: center;   /* 👈 key fix */
  gap: 10px;
  cursor: pointer;
}

.inline-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;            /* 👈 remove top margin */
  flex-shrink: 0;
}

.inline-checkbox span {
  display: inline;
}
.btn-primary {
  display: inline-block;
  background-color: #e53935;   /* clean red */
  color: #fff;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

/* Hover */
.btn-primary:hover {
  background-color: #c62828;
}

/* Focus */
.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.25);
}
