.ilocal-forms { max-width: 820px; margin: 0 auto; font-family: 'Barlow', Arial, sans-serif; color: #262626; }
.ilocal-card { background: #fff; border: 1px solid #d9e2f2; border-radius: 8px; margin: 16px 0; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.ilocal-doc-body { padding: 24px; }
.ilocal-section-title { display: block; background: #0039A6; color: #fff !important; padding: 8px 12px; font-size: 13px; font-family: 'Space Grotesk', Arial, sans-serif; text-transform: uppercase; letter-spacing: 0.5px; border-radius: 4px; margin: 24px 0 12px; line-height: 1.4; }
.ilocal-review-title { margin: 0 0 4px; }
.ilocal-note { font-size: 12px; color: #666; margin: 4px 0 16px; }

/* Branded header banner (mirrors the original plugin's header design) */
.ilocal-doc-hdr { position: relative; background: #0039A6; color: #fff; overflow: hidden; min-height: 92px; }
.ilocal-doc-hdr-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.ilocal-doc-hdr-inner { position: relative; z-index: 1; width: 100%; }
.ilocal-doc-hdr-top { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 24px 12px; box-sizing: border-box; }
.ilocal-doc-hdr-logo-wrap svg { display: block; }
.ilocal-doc-hdr-right { text-align: right; }
.ilocal-doc-hdr-phone, .ilocal-doc-hdr-web { display: block; color: #fff; text-decoration: none; }
.ilocal-doc-hdr-phone { font-size: 14px; font-weight: 700; }
.ilocal-doc-hdr-web { font-size: 11px; opacity: 0.85; }
.ilocal-doc-addr { display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,0.28); padding: 7px 24px; font-size: 11px; box-sizing: border-box; }
.ilocal-doc-addr svg { flex-shrink: 0; }
.ilocal-doc-addr-text { opacity: 0.9; }

.ilocal-doc-banner { background: #FF652D; color: #fff; padding: 10px 24px; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px; box-sizing: border-box; }
.ilocal-doc-banner-title { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }
.ilocal-doc-banner-note { font-size: 11px; opacity: 0.9; }

/* Branded footer bar (mirrors the original plugin's footer design) */
.ilocal-doc-ftr { position: relative; background: #0039A6; overflow: hidden; min-height: 62px; }
.ilocal-doc-ftr-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.ilocal-doc-ftr-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; box-sizing: border-box; }
.ilocal-doc-ftr-inner svg { display: block; }
.ilocal-doc-ftr-tagline { font-size: 11px; color: rgba(255,255,255,0.9); letter-spacing: 0.3px; }

@media (max-width: 600px) {
  .ilocal-doc-hdr-top { flex-direction: column; gap: 8px; }
  .ilocal-doc-hdr-right { text-align: left; }
  .ilocal-doc-ftr-inner { flex-direction: column; gap: 6px; text-align: center; }
}

.ilocal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ilocal-field { display: flex; flex-direction: column; gap: 4px; }
.ilocal-field.ilocal-full { grid-column: 1 / -1; }
.ilocal-field label { font-size: 12px; font-weight: 700; color: #0039A6; text-transform: uppercase; letter-spacing: 0.4px; }
.ilocal-field input, .ilocal-field select {
  padding: 8px 10px; border: 1px solid #cdd6e6; border-radius: 4px; font-size: 14px;
}
.ilocal-field input[readonly] { background: #f3f4f7; color: #5d6370; }
.ilocal-mono { font-family: monospace; }

.ilocal-required-legend { font-size: 12px; color: #666; margin: 0 0 16px; }
.ilocal-required-legend span { color: #b5321f; font-weight: 700; }

/* Applied by JS to a field that failed validation on submit attempt. */
.ilocal-field-invalid input,
.ilocal-field-invalid select,
.ilocal-money-input.ilocal-field-invalid input {
  border-color: #b5321f !important;
  background: #fdf2f1;
}
.ilocal-service-table.ilocal-table-invalid { outline: 2px solid #b5321f; outline-offset: 2px; border-radius: 4px; }

.ilocal-card-element { padding: 10px 10px; border: 1px solid #cdd6e6; border-radius: 4px; background: #fff; }
.ilocal-card-errors { color: #8a1f2c; font-size: 12px; margin-top: 6px; min-height: 14px; }
.ilocal-test-badge { display: inline-block; background: #FFF3CD; color: #7a5c00; border: 1px solid #ffe08a; border-radius: 4px; padding: 6px 10px; font-size: 12px; font-weight: 700; margin-bottom: 10px; }

.ilocal-amount-box { background: #F8F9FF; border: 1px solid #d9e2f2; border-left: 4px solid #FF652D; border-radius: 4px; padding: 16px 18px; margin: 18px 0; text-align: center; }
.ilocal-amount-label { font-size: 12px; font-weight: 700; color: #0039A6; text-transform: uppercase; letter-spacing: 0.5px; }
.ilocal-amount-value { font-family: 'Space Grotesk', Arial, sans-serif; font-size: 32px; font-weight: 700; color: #262626; margin: 4px 0; }
.ilocal-amount-sub { font-size: 12px; color: #666; }

.ilocal-service-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.ilocal-service-table th { background: #FF652D; color: #fff; font-size: 11px; text-transform: uppercase; padding: 6px 8px; text-align: left; }
.ilocal-service-table th:last-child { width: 28px; }
.ilocal-service-table td { border-bottom: 1px solid #e8edf7; padding: 4px 6px; }
.ilocal-service-table input { width: 100%; border: 1px solid #cdd6e6; border-radius: 3px; padding: 5px 6px; font-size: 13px; }
.ilocal-money-input { position: relative; display: flex; align-items: center; }
.ilocal-money-input span { position: absolute; left: 7px; color: #8a93a6; font-size: 13px; pointer-events: none; }
.ilocal-money-input input { padding-left: 18px; }
.ilocal-money-input input:disabled { background: #f0f1f5; color: #a9b3c5; cursor: not-allowed; }
.ilocal-subtotal-row td { background: #F8F9FF; font-weight: 700; color: #0039A6; border-top: 2px solid #d9e2f2; border-bottom: none; }
.ilocal-remove-row { border: none; background: none; color: #b5321f; font-size: 16px; line-height: 1; cursor: pointer; padding: 2px 4px; }
.ilocal-table-actions { text-align: right; margin: 0 0 22px; }
.ilocal-add-row { display: inline-block; border: 1px solid #0039A6; background: #fff; color: #0039A6; border-radius: 4px; padding: 3px 10px; font-size: 11px; font-weight: 700; cursor: pointer; }
.ilocal-add-row:hover { background: #eef3ff; }

.ilocal-pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ilocal-pill { border: 1px solid #cdd6e6; border-radius: 20px; padding: 6px 14px; font-size: 13px; cursor: pointer; }

.ilocal-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; font-size: 14px; margin-bottom: 8px; }
.ilocal-summary-grid strong { color: #0039A6; }

.ilocal-terms-box { background: #F8F9FF; border-left: 4px solid #0039A6; padding: 10px 14px; font-size: 12px; color: #444; margin: 16px 0; }

.ilocal-sig-box-wrap { margin: 12px 0; }
.ilocal-sig-box-lbl { font-size: 12px; font-weight: 700; color: #0039A6; text-transform: uppercase; margin-bottom: 6px; }
.ilocal-sig-canvas-wrap { position: relative; border: 1px dashed #cdd6e6; border-radius: 4px; height: 140px; background: #fbfcff; }
#ilocal-sig-canvas { width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.ilocal-sig-ph { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #a9b3c5; font-size: 13px; pointer-events: none; }
.ilocal-sig-clear { position: absolute; top: 6px; right: 6px; display: none; border: 1px solid #cdd6e6; background: #fff; border-radius: 4px; padding: 4px 8px; font-size: 11px; cursor: pointer; }

.ilocal-agree-row { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0; font-size: 13px; }

.ilocal-actions { margin-top: 18px; }

/* One shared branded button style for every call-to-action on the site
   — Submit Order, Confirm & Sign, and Pay all use this so they look
   like the same product instead of three different buttons. */
.ilocal-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF652D 0%, #e0501c 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 28px;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(224, 80, 28, 0.35);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.ilocal-btn-primary:hover:not(:disabled) { box-shadow: 0 3px 10px rgba(224, 80, 28, 0.45); }
.ilocal-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

/* Layout-only modifier — stacks on top of .ilocal-btn-primary to make
   the payment button full-width and slightly larger, same colors. */
.ilocal-btn-pay {
  display: flex;
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
}
.ilocal-secure-note { text-align: center; font-size: 11px; color: #888; margin: 10px 0 0; }

.ilocal-or-divider { display: flex; align-items: center; text-align: center; margin: 22px 0; color: #a9b3c5; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.ilocal-or-divider::before, .ilocal-or-divider::after { content: ""; flex: 1; border-bottom: 1px solid #e2e6f0; }
.ilocal-or-divider span { padding: 0 12px; }

.ilocal-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #fff;
  color: #0039A6;
  border: 1.5px solid #0039A6;
  border-radius: 6px;
  padding: 13px 24px;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.ilocal-btn-secondary:hover:not(:disabled) { background: #0039A6; color: #fff; }
.ilocal-btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.ilocal-thankyou-box { text-align: center; padding: 40px 20px; }
.ilocal-thankyou-box svg { margin-bottom: 12px; }
.ilocal-thankyou-box h2 { margin: 0 0 10px; font-family: 'Space Grotesk', Arial, sans-serif; font-size: 22px; color: #1e7a3c; }
.ilocal-thankyou-box p { margin: 0; font-size: 14px; color: #444; max-width: 420px; margin-left: auto; margin-right: auto; }

.ilocal-message { margin-top: 14px; padding: 10px 14px; border-radius: 4px; font-size: 13px; }
.ilocal-message.success { background: #eef8ee; color: #24632c; border: 1px solid #b7e0ba; }
.ilocal-message.error { background: #fdf2f3; color: #8a1f2c; border: 1px solid #ebccd1; }

@media (max-width: 600px) {
  .ilocal-grid, .ilocal-summary-grid { grid-template-columns: 1fr; }
}
