/* ==========================================================================
   FreelancerBill.com — Zero Mobile Overflow, Strong Input Strokes & Active Borders
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.signature-font {
  font-family: 'Great Vibes', cursive;
}

/* 1. Form Cards with Crisp Stroke */
.form-card {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 2px solid #cbd5e1;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.form-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.step-pill {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.45rem;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 2. Strong Stroked Input Fields for Clear Visibility on Mobile */
.input-lbl {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #334155;
  margin-bottom: 0.3rem;
}

.stroked-input {
  width: 100%;
  border-radius: 0.65rem;
  border: 2px solid #94a3b8;
  background-color: #f8fafc;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  transition: all 0.15s ease;
}

.stroked-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.stroked-input:focus {
  background-color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

/* 3. Theme & Currency Selectable Boxes (Thick Border on Selected Only!) */
.selectable-box {
  padding: 0.35rem;
  border-radius: 0.75rem;
  border: 2px solid #cbd5e1;
  background-color: #f8fafc;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.selectable-box.active-box {
  border: 3px solid #0f172a !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

/* 4. Invoice Contact Icons */
.inv-contact-icon {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 5. QR Code Sizing */
#upiQrCodeContainer img,
#upiQrCodeContainer canvas {
  width: 105px !important;
  height: 105px !important;
  display: block;
}

/* 6. Offscreen PDF Export Sandbox */
.a4-export-sandbox {
  position: fixed !important;
  top: 0 !important;
  left: -9999px !important;
  width: 794px !important;
  z-index: -9999 !important;
  background: #FAF8F5 !important;
}