/* index.css – styling for AST Membership Agreement overlay */
:root {
  --page-max-w: 1275px;
  --accent: #2563eb;
  --surface: #ffffff;
  --ink: #111;
  --muted: #374151;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #e5e7eb;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

.sheet {
  position: relative;
  margin: 20px auto;
  max-width: var(--page-max-w);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.bgimg {
  display: block;
  width: 100%;
  height: auto;
}

.fields {
  position: absolute;
  inset: 0;
}

.f {
  position: absolute;
  color: var(--ink);
  /* font-size: clamp(10px, 1.05vw, 14px); */
  font-size: 0.90rem;
}

/* .line {
  background: transparent;
  border: none;
  border-bottom: 1px solid #000;
  outline: none;
  padding: 2px 4px;
} */

.box {
  /* border: 1px solid #111; */
  /* background: rgba(243, 207, 207, 0.65); */
  width: 80px;
  height: 28px;
  font-size: medium;
}

select[name="VerificationDocuments"] {
  font-size: 0.85rem;
  font-weight: bold;
  /* border: none */
}

#f-staff {
  font-size: 0.85rem;
  font-weight: bold;
}

.sig-canvas {
  border: 1px dashed #444;
  background: rgba(255, 255, 255, .55);
  width: 100%;
  height: 42px;
  display: block;
}

.sig-wrap {
  position: absolute;
}

.btns {
  max-width: var(--page-max-w);
  margin: 8px auto 24px;
  display: flex;
  gap: 8px;
}

button {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

button.secondary {
  background: var(--muted);
}

/* input:focus, */
button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


input {
  border: none;
}

input:focus {
  outline: none;
}



@page {
  size: Letter;
  margin: 0;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 400px;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background-color: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #111;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #111;
}

.modal-body {
  padding: 1.5rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.5rem;
  /* border: 1px solid #d1d5db; */
  border-radius: 6px;
  font-size: 0.8rem;
  /* box-sizing: border-box; */
  font-family: Arial, Helvetica, sans-serif;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.date-display {
  padding: 0.75rem;
  background-color: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  color: #1e40af;
  font-size: 0.72rem;
  margin-top: 0.5rem;
}

.modal-footer {
  padding: 1.5rem;
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}

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

.btn-primary:hover {
  background-color: #1e40af;
}

.btn-secondary {
  background-color: #e5e7eb;
  color: #374151;
}

.btn-secondary:hover {
  background-color: #d1d5db;
}

@media print {
  body {
    background: #fff;
  }

  .sheet {
    margin: 0;
    max-width: none;
    width: 8.5in;
  }

  .btns {
    display: none;
  }
  
  .modal {
    display: none !important;
  }
}

.floating-print-btn {
  position: fixed;
  /* keep it floating */
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  /* ensure it stays above content */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 999px;
  /* pill shape */
  background: #2563eb;
  /* blue */
  color: white;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.floating-print-btn:hover {
  background: #1e40af;
  /* darker blue on hover */
}

.floating-fill-btn {
  position: fixed;
  /* keep it floating */
  right: 1rem;
  top: 1rem;
  z-index: 9999;
  /* ensure it stays above content */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 999px;
  /* pill shape */
  background: #46500c;
  /* blue */
  color: white;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.floating-fill-btn:hover {
  background: #1e40af;
  /* darker blue on hover */
}

.floating-quick-fill-btn {
  position: fixed;
  /* keep it floating */
  right: 1rem;
  top: 14rem;
  z-index: 9999;
  /* ensure it stays below fill button */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 999px;
  /* pill shape */
  background: #9c6507;
  /* amber */
  color: white;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.floating-quick-fill-btn:hover {
  background: #d97706;
  /* darker amber on hover */
}

.floating-howto-btn {
  position: fixed;
  /* keep it floating */
  left: 1rem;
  bottom: 1rem;
  z-index: 9999;
  /* ensure it stays above content */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 999px;
  /* pill shape */
  background: #37d191;
  /* blue */
  color: white;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.floating-howto-btn:hover {
  background: #084d06;

}

/* Hide the button in print */
@media print {
  .floating-print-btn {
    display: none !important;
  }

  .floating-Fill-btn {
    display: none !important;
  }

  .floating-howto-btn {
    display: none !important;
  }

  .floating-quick-fill-btn {
    display: none !important;
  }

  #fillBtn {
    position: fixed;
    /* keep it floating */
    right: 1rem;
    top: 1rem;
    z-index: 9999;
    /* ensure it stays above content */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 999px;
    /* pill shape */
    background: #e47208;
    /* blue */
    color: white;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

  .floating-Fill-btn:hover {
    background: #1e40af;
    /* darker blue on hover */
  }
}