/* ==========================================================================
   GoldMinerz Home Care LLC - Official Employment Application Stylesheet
   Matches official agency document branding, responsive & print-ready
   ========================================================================== */

:root {
  --doc-navy: #061d35;
  --doc-navy-light: #0d2f52;
  --doc-gold: #c99420;
  --doc-gold-bright: #e9b52f;
  --doc-gold-dark: #9a6e12;
  --doc-gold-bg: #fdfaf2;
  --doc-cream: #faf8f5;
  --doc-text: #1e293b;
  --doc-muted: #64748b;
  --doc-line: #cbd5e1;
  --doc-line-dark: #334155;
  --doc-line-gold: rgba(201, 148, 32, 0.4);
  --doc-radius: 12px;
}

/* Page Wrapper */
.app-page-wrapper {
  background: #f4f6f8;
  padding: 40px 0 80px;
  min-height: 100vh;
}

/* Toolbar above form */
.app-toolbar {
  max-width: 1020px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.app-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--doc-navy);
  transition: color 0.2s;
}
.app-back-link:hover {
  color: var(--doc-gold);
}

.app-toolbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.app-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  background: #fff;
  color: var(--doc-navy);
  border: 1px solid var(--doc-line);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: all 0.2s ease;
}
.app-tool-btn:hover {
  background: var(--doc-gold-bg);
  border-color: var(--doc-gold);
  color: var(--doc-gold-dark);
  transform: translateY(-1px);
}

/* Main Document Sheet */
.app-document-card {
  max-width: 1020px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 40px rgba(6, 29, 53, 0.08);
  padding: 48px 54px;
  position: relative;
  overflow: hidden;
}

/* Top Gold Brand Strip */
.app-document-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #b8860b 0%, #e9b52f 50%, #c99420 100%);
}

/* Document Top Header (Matches PDF) */
.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--doc-gold-bright);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.doc-brand-col {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 280px;
}

.doc-logo-img {
  max-height: 85px;
  width: auto;
  object-fit: contain;
}

.doc-brand-details h1 {
  font-family: "DM Sans", sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--doc-gold-dark);
  margin: 0 0 4px;
  text-transform: uppercase;
  line-height: 1.15;
}

.doc-brand-details .doc-address {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.doc-title-badge {
  display: inline-block;
  background: var(--doc-navy);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.doc-subtitle-text {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--doc-navy);
  letter-spacing: 0.3px;
}

.doc-motto-bar {
  text-align: right;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--doc-gold-dark);
  align-self: flex-end;
  line-height: 1.4;
}

/* Equal Opportunity Notice Box */
.doc-notice-banner {
  background: #fbfbf9;
  border-left: 4px solid var(--doc-gold);
  border-top: 1px solid #eef2f6;
  border-right: 1px solid #eef2f6;
  border-bottom: 1px solid #eef2f6;
  border-radius: 6px;
  padding: 12px 18px;
  margin-bottom: 30px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #475569;
}
.doc-notice-banner p {
  margin: 0;
}

/* Section Containers */
.doc-section {
  margin-bottom: 36px;
  scroll-margin-top: 120px;
}

/* Section Header (Matches PDF Section Headers) */
.doc-sec-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1.5px solid var(--doc-gold);
  border-bottom: 1.5px solid var(--doc-gold);
  padding: 7px 12px;
  margin: 0 0 16px;
  background: #faf8f3;
  color: #9a6e12;
  font-family: "DM Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.doc-sec-h .sec-num {
  font-weight: 800;
  color: var(--doc-navy);
}

.doc-sec-sub {
  font-size: 12.5px;
  color: #64748b;
  margin: -10px 0 16px;
  line-height: 1.5;
  font-style: italic;
}

/* Form Grid & Layouts */
.f-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 14px;
}
.f-row.two {
  grid-template-columns: 1fr 1fr;
}
.f-row.three {
  grid-template-columns: 1fr 1fr 1fr;
}
.f-row.four {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.f-row.one-two {
  grid-template-columns: 1.2fr 2fr;
}
.f-row.two-one {
  grid-template-columns: 2fr 1fr;
}

.f-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}
.f-field.full {
  grid-column: 1 / -1;
}

.f-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--doc-navy);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.f-req {
  color: #dc2626;
  font-weight: bold;
}

/* Input Fields */
.f-input,
.f-select,
.f-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--doc-text);
  background: #fbfcfd;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 9px 12px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.f-input:focus,
.f-select:focus,
.f-textarea:focus {
  border-color: var(--doc-gold);
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 148, 32, 0.15);
}

.f-input[readonly],
.f-input:disabled {
  background: #f1f5f9;
  color: #475569;
  cursor: not-allowed;
}

.f-textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.5;
}

/* Radio & Checkbox Groups */
.f-choices {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.f-choice-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  user-select: none;
}
.f-choice-item input[type="radio"],
.f-choice-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--doc-gold-dark);
  cursor: pointer;
}

/* Inline Fillable Details (e.g., "If yes, when? ________") */
.f-inline-detail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.f-inline-detail input {
  padding: 5px 8px;
  font-size: 13px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #fff;
}

/* Tables for Education & References (Matches PDF institutional table) */
.doc-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  margin-bottom: 12px;
  background: #fff;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.doc-table th {
  background: #f8fafc;
  color: var(--doc-navy);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1.5px solid #cbd5e1;
  border-right: 1px solid #e2e8f0;
  white-space: nowrap;
}
.doc-table th:last-child {
  border-right: none;
}

.doc-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  vertical-align: middle;
}
.doc-table td:last-child {
  border-right: none;
}

.doc-table tr:last-child td {
  border-bottom: none;
}

.doc-table .cell-input {
  width: 100%;
  padding: 7px 10px;
  font-size: 13px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px;
  transition: all 0.2s;
  box-sizing: border-box;
}
.doc-table .cell-input:focus,
.doc-table tr:hover .cell-input {
  border-color: #cbd5e1;
  background: #fff;
}
.doc-table .cell-input:focus {
  border-color: var(--doc-gold);
  box-shadow: 0 0 0 2px rgba(201, 148, 32, 0.15);
  outline: none;
}

.doc-table-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.btn-add-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--doc-navy);
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-add-row:hover {
  background: var(--doc-gold-bg);
  border-color: var(--doc-gold);
  color: var(--doc-gold-dark);
}

/* Employer Blocks (Section 5) */
.employer-box {
  background: #fdfdfd;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 18px;
  position: relative;
}

.employer-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--doc-navy);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.employer-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--doc-gold-dark);
  background: var(--doc-gold-bg);
  border: 1px solid var(--doc-line-gold);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Disclosures & Experience Question Cards */
.q-block {
  background: #fbfcfd;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.q-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Legal Cards (Sections 10 & 11) */
.legal-box {
  background: #fafaf8;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.legal-text {
  font-size: 12.5px;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 14px;
  text-align: justify;
}

.legal-agree-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  color: var(--doc-navy);
  cursor: pointer;
}
.legal-agree-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--doc-gold-dark);
}

/* Signature Block */
.sig-block {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  margin-top: 14px;
}

.sig-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.sig-tab-btn {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}
.sig-tab-btn.active {
  background: var(--doc-navy);
  color: #fff;
  border-color: var(--doc-navy);
}

.sig-canvas-wrap {
  position: relative;
  border: 1.5px dashed #cbd5e1;
  border-radius: 6px;
  background: #fafcfd;
  height: 130px;
  cursor: crosshair;
}

.sig-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.sig-canvas-hint {
  position: absolute;
  bottom: 8px;
  left: 12px;
  font-size: 11px;
  color: #94a3b8;
  pointer-events: none;
}

.sig-clear-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #64748b;
  cursor: pointer;
}
.sig-clear-btn:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.sig-typed-preview {
  font-family: 'Playfair Display', cursive, serif;
  font-style: italic;
  font-size: 28px;
  color: var(--doc-navy);
  padding: 18px 12px;
  min-height: 80px;
  border-bottom: 1.5px solid var(--doc-gold);
  margin-top: 8px;
}

/* Agency Use Only Box (Matches PDF) */
.agency-use-card {
  border: 2px solid #94a3b8;
  border-radius: 8px;
  padding: 20px 24px;
  background: #f8fafc;
  margin-top: 36px;
}

.agency-header {
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #334155;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid #cbd5e1;
}

.agency-subtext {
  text-align: center;
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 18px;
  font-style: italic;
}

/* Document Bottom Footer */
.doc-footer-motto {
  text-align: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 2px solid var(--doc-gold-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--doc-gold-dark);
  text-transform: uppercase;
}

/* Submission Action Bar */
.submit-action-bar {
  margin-top: 32px;
  padding: 24px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.submit-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--doc-gold-bright);
  color: var(--doc-navy);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 14px 34px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(201, 148, 32, 0.3);
}
.submit-btn-primary:hover {
  background: #f4c84b;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(201, 148, 32, 0.4);
}

.submit-helper-note {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  max-width: 460px;
}

/* Honeypot */
.hp-field {
  display: none !important;
  visibility: hidden;
}

/* Document Upload Callout */
.doc-upload-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 14px 18px;
  margin-top: 10px;
}
.doc-upload-box .file-in {
  margin-top: 6px;
  font-size: 13px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .app-document-card {
    padding: 24px 18px;
    border-radius: 10px;
  }
  .doc-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .doc-motto-bar {
    text-align: left;
    align-self: flex-start;
  }
  .f-row.two,
  .f-row.three,
  .f-row.four,
  .f-row.one-two,
  .f-row.two-one {
    grid-template-columns: 1fr;
  }
  .submit-action-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .submit-btn-primary {
    width: 100%;
  }
}

/* ==========================================================================
   PRINT STYLESHEET
   Configured to reproduce the 4-page official paper application document
   ========================================================================== */
@media print {
  @page {
    size: letter portrait;
    margin: 0.5in 0.5in 0.5in 0.5in;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10.5pt !important;
  }

  .site-header,
  .footer,
  .app-toolbar,
  .submit-action-bar,
  .btn-add-row,
  .sig-clear-btn,
  .sig-tabs,
  .no-print {
    display: none !important;
  }

  .app-page-wrapper {
    background: #fff !important;
    padding: 0 !important;
  }

  .app-document-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  .app-document-card::before {
    display: none !important;
  }

  /* Page breaks between document pages matching the 4-page PDF */
  .print-page-1,
  .print-page-2,
  .print-page-3 {
    page-break-after: always;
    break-after: page;
  }

  .doc-sec-h {
    background: #f2f2f2 !important;
    border-top: 1.5pt solid #c99420 !important;
    border-bottom: 1.5pt solid #c99420 !important;
    color: #000 !important;
    font-size: 10pt !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .doc-table th {
    background: #f2f2f2 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .f-input,
  .f-select,
  .f-textarea,
  .doc-table .cell-input {
    border: 1px solid #777 !important;
    background: transparent !important;
    font-size: 10pt !important;
  }

  .employer-box,
  .q-block,
  .legal-box,
  .agency-use-card {
    border: 1px solid #777 !important;
    background: transparent !important;
  }

  .agency-use-card {
    border: 1.5pt solid #333 !important;
  }

  .doc-footer-motto {
    font-size: 9pt !important;
    border-top: 1pt solid #c99420 !important;
  }
}
