/* ==========================================================================
   IRIS Pay | Електронно подписване на документи
   Тематика: Професионална, минималистична, монохромна, без излишни цветове
   ========================================================================== */

:root {
  --bg-page: #f1f3f7;
  --bg-card: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-paper: #ffffff;
  
  --border-subtle: #e2e8f0;
  --border-focus: #0f172a;
  
  --text-main: #0f172a;
  --text-muted: #526173;
  --text-light: #94a3b8;
  
  --brand-navy: #192b6c;
  --brand-cyan: #00bff2;
  --brand-orange: #f7971d;
  
  --dark-btn: #0f172a;
  --dark-btn-hover: #1e293b;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
  --shadow-paper: 0 4px 25px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.05);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-doc: 'Calibri', 'Calibri Light', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Header / Navigation Bar
   ========================================================================== */
.top-nav {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1720px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background-color: var(--border-subtle);
}

.portal-main-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.portal-bnb-badge {
  font-size: 12.5px;
  font-weight: 500;
  color: #334155;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 4px 12px;
  border-radius: 16px;
  white-space: nowrap;
}

/* Steps Tracker */
.steps-tracker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.step-item.active {
  color: var(--text-main);
  background-color: var(--bg-subtle);
  font-weight: 600;
}

.step-item.completed {
  color: #166534;
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #e2e8f0;
  color: #475569;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.step-item.active .step-num {
  background-color: var(--dark-btn);
  color: #ffffff;
}

.step-item.completed .step-num {
  background-color: #166534;
  color: #ffffff;
}

.step-connector {
  width: 24px;
  height: 1px;
  background-color: var(--border-subtle);
}

/* Nav Right & Session Timer */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.session-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.session-timer {
  display: flex;
  align-items: center;
  gap: 2px;
}

.timer-segment {
  background-color: var(--dark-btn);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  font-family: monospace;
  padding: 3px 6px;
  border-radius: 4px;
  min-width: 24px;
  text-align: center;
}

.timer-colon {
  font-weight: bold;
  color: var(--dark-btn);
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #475569;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Main Split-Screen Layout (Form on LEFT, Document on RIGHT)
   ========================================================================== */
.main-layout,
.main-wrapper {
  max-width: 1760px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 28px 48px;
  display: grid;
  grid-template-columns: 490px 1fr;
  gap: 32px;
  align-items: start;
  box-sizing: border-box;
}

@media (min-width: 1600px) {
  .main-layout,
  .main-wrapper {
    grid-template-columns: 520px 1fr;
    gap: 36px;
  }
}

@media (max-width: 1240px) {
  .main-layout,
  .main-wrapper {
    grid-template-columns: 460px 1fr;
    gap: 20px;
    padding: 16px;
  }
}

@media (max-width: 1024px) {
  .main-layout,
  .main-wrapper {
    grid-template-columns: 1fr;
  }
  .document-panel {
    position: static !important;
    height: auto !important;
  }
}

/* ==========================================================================
   LEFT PANEL: Form Controls & Inputs (Попълване и интерфейс)
   ========================================================================== */
.form-sidebar,
.form-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.sidebar-header,
.form-panel-header {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-header h2,
.panel-headline h2 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.sidebar-header .sidebar-sub,
.panel-headline p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.sync-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #166534;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 4px 10px;
  border-radius: 20px;
  margin-top: 10px;
  font-weight: 500;
}

.sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22c55e;
  animation: pulseSync 2s infinite ease-in-out;
}

@keyframes pulseSync {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Form Cards */
.form-section-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.card-step-badge {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background-color: var(--dark-btn);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-title-row h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
}

.section-subtext {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Inputs */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.input-row {
  display: flex;
  gap: 12px;
}

.col-half {
  flex: 1;
}

label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.req {
  color: #dc2626;
  font-weight: bold;
}

input[type="text"],
input[type="date"],
input[type="url"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-main);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.2s ease;
}

input:focus,
select:focus {
  background-color: #ffffff;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

input::placeholder {
  color: #94a3b8;
  font-size: 12.5px;
}

.dmy-date-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.dmy-date-input-wrapper input[type="text"] {
  padding-right: 36px;
}

.btn-calendar-trigger {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.btn-calendar-trigger:hover {
  color: var(--text-main);
  background-color: rgba(0, 0, 0, 0.05);
}

/* Inline Checkbox in Label */
.label-with-inline-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inline-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #475569;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
}

.inline-checkbox input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--dark-btn);
  cursor: pointer;
}

.inline-checkbox:hover {
  color: var(--text-main);
}

/* ==========================================================================
   FORM SELECT DROPDOWN STYLING
   ========================================================================== */
select.form-select-styled {
  width: 100%;
  padding: 10px 14px;
  padding-right: 36px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text-main);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  transition: all 0.2s ease;
}

select.form-select-styled:focus {
  background-color: #ffffff;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

select.form-select-styled option {
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--text-main);
}

select.form-select-styled option:disabled {
  color: #94a3b8;
}

/* ==========================================================================
   Signature Section in Left Panel
   ========================================================================== */
.sign-status-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
  border-radius: var(--radius-md);
}

.doc-sign-status-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}

.status-icon.pending {
  color: #94a3b8;
}

.status-icon.signed {
  color: #16a34a;
}

.status-doc-title {
  color: var(--text-muted);
  font-weight: 500;
}

.status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background-color: #e2e8f0;
  color: #475569;
}

.status-badge.signed {
  background-color: #dcfce7;
  color: #15803d;
}

/* Signature Mode Tabs */
.sig-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background-color: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.sig-tab-btn {
  background: none;
  border: none;
  padding: 7px 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.sig-tab-btn:hover {
  color: var(--text-main);
}

.sig-tab-btn.active {
  background-color: #ffffff;
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.sig-tab-content {
  display: none;
}

.sig-tab-content.active {
  display: block;
}

/* Canvas Draw */
.canvas-wrapper {
  position: relative;
  background-color: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 130px;
}

#sigCanvas,
#signatureCanvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
  display: block;
}

.canvas-watermark,
.canvas-placeholder-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  color: #94a3b8;
  pointer-events: none;
  user-select: none;
}

.canvas-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 10px;
}

.inline-canvas-statuses {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.inline-canvas-statuses .doc-sign-status-box {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.btn-subtle {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: #475569;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-subtle:hover {
  background-color: #e2e8f0;
  color: var(--text-main);
}

.pen-color-preview {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.pen-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Typed Font Styles */
.font-styles-grid,
.font-preview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.font-preview-card,
.font-card {
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-subtle);
  transition: all 0.15s ease;
}

.font-preview-card:hover,
.font-card:hover {
  border-color: #94a3b8;
}

.font-preview-card.active,
.font-card.active {
  border-color: var(--dark-btn);
  background-color: #ffffff;
  box-shadow: 0 0 0 1px var(--dark-btn);
}

.font-sample {
  font-size: 18px;
  color: var(--text-main);
}

.font-name-label,
.font-title {
  font-size: 11px;
  color: var(--text-muted);
}

.style-script { font-family: 'Homemade Apple', cursive; font-size: 19px; }
.style-vibes { font-family: 'Great Vibes', cursive; font-size: 24px; }
.style-serif { font-family: 'Playfair Display', serif; font-style: italic; font-size: 16px; }

/* Upload Dropzone */
.upload-dropzone {
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  background-color: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dropzone-text {
  font-size: 12px;
  color: var(--text-muted);
}

/* Apply Signature Box */
.apply-signature-box {
  background-color: #ffffff;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: #334155;
  cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--dark-btn);
  cursor: pointer;
}

.checkbox-wrapper label {
  font-size: 12.5px;
  font-weight: 400;
  cursor: pointer;
  line-height: 1.4;
}

.signature-buttons-row {
  display: flex;
  gap: 8px;
}

.btn-primary-compact {
  flex: 1;
  background-color: var(--dark-btn);
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease;
}

.btn-primary-compact:hover:not(:disabled):not(.btn-disabled) {
  background-color: var(--dark-btn-hover);
}

.btn-primary-compact:disabled,
.btn-primary-compact.btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background-color: #64748b !important;
  box-shadow: none !important;
  pointer-events: auto; /* allows click to trigger explanation warning */
}

@keyframes shakeAnimation {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.shake-error {
  animation: shakeAnimation 0.4s ease-in-out !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

/* Confirmation Card */
.confirmation-card {
  border-top: 2px solid var(--dark-btn);
}

.terms-notice-box {
  background-color: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.notice-icon {
  margin-top: 2px;
  flex-shrink: 0;
}

.notice-text {
  font-size: 11.5px;
  color: #475569;
  line-height: 1.4;
}

.notice-text strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 2px;
}

.notice-text a {
  color: var(--brand-navy);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.consent-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.submit-action-wrapper {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-submit-main {
  width: 100%;
  background-color: var(--dark-btn);
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: -0.2px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  transition: all 0.2s ease;
}

.btn-submit-main:hover {
  background-color: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

.submit-footnote {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.35;
}

/* ==========================================================================
   RIGHT PANEL: Paginated Distinct A4 Page View (Contract + Appendix 1)
   ========================================================================== */
.document-panel {
  display: flex;
  flex-direction: column;
  background-color: #dbe2ea;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 76px;
  height: calc(100vh - 96px);
  min-height: 800px;
  min-width: 0;
}

.doc-toolbar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 20;
}

.doc-view-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}

.doc-view-btn {
  background: none;
  border: 1px solid transparent;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.doc-view-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-subtle);
}

.doc-view-btn.active {
  background-color: var(--bg-subtle);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.doc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-action-icon {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: #475569;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-action-icon:hover {
  background-color: #e2e8f0;
  color: var(--text-main);
}

.zoom-level {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  min-width: 42px;
  text-align: center;
}

.btn-print-doc {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-print-doc:hover {
  background-color: var(--bg-subtle);
}

/* Document Viewport - Professional Document Desk Tone */
.doc-viewport {
  flex: 1;
  padding: 32px 24px 48px;
  overflow: auto;
  overflow-x: auto;
  overflow-y: auto;
  background-color: #e6ebf2;
}

/* Page Stack & Individual A4 Sheets */
.pages-stack {
  width: 820px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
}

.doc-page-card {
  width: 820px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-top-tab {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
  padding-right: 2px;
}

.page-tab-badge {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #475569;
  background-color: #dce4ed;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
}

.appendix-tab-badge {
  background-color: #ffedd5;
  color: #c2410c;
  border-color: #fed7aa;
}

/* The Authentic A4 Sheet */
.a4-sheet {
  width: 820px;
  max-width: 100%;
  min-height: 1080px;
  background-color: #ffffff;
  border: 1px solid #cfd8e3;
  border-radius: 4px;
  box-shadow: 0 4px 22px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  padding: 52px 72px 34px 72px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-doc);
  font-size: 15px;
  line-height: 1.5;
  color: #000000;
  position: relative;
}

body.generating-pdf .doc-viewport {
  overflow: visible !important;
}

body.generating-pdf .pages-stack,
body.generating-pdf .doc-page-card,
body.generating-pdf .a4-sheet {
  width: 820px !important;
  min-width: 820px !important;
  max-width: 820px !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.page-content-area {
  flex: 1 1 auto;
}

/* Formal Page Footer on each sheet */
.page-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 12px;
  color: #64748b;
}

.page-footer-left {
  display: none !important;
}

.page-footer-right {
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.3px;
}

/* Page Break Dividers between sheets */
.page-gap-divider {
  width: 100%;
  max-width: 850px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px auto;
}

.gap-line {
  flex: 1;
  height: 1px;
  background-color: #cbd5e1;
}

.gap-badge {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background-color: #ffffff;
  padding: 4px 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  white-space: nowrap;
}

.appendix-page-divider .appendix-badge {
  background-color: #fff7ed;
  color: #c2410c;
  border-color: #fdba74;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Exact Contract Typography */
.exact-contract-title {
  font-size: 16.5px;
  font-weight: bold;
  text-align: center;
  margin-top: 6px;
  margin-bottom: 22px;
  line-height: 1.35;
  text-transform: uppercase;
  color: #000000;
}

.exact-chapter-title {
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  margin: 16px 0 8px;
  text-transform: uppercase;
  color: #000000;
}

.exact-p {
  font-size: 15.5px;
  line-height: 1.58;
  margin-bottom: 12px;
  text-align: justify;
  text-justify: inter-word;
}

.indent-item {
  padding-left: 26px;
  margin-bottom: 6px;
}

.indent-item strong u {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 22px; }
.mt-5 { margin-top: 30px; }
.text-muted { color: #64748b; }
.font-bold { font-weight: bold; }

/* Page 1 Vertical Rhythm to eliminate empty void and match PDF 1:1 */
#docSheet1 {
  min-height: 1080px;
}

#docSheet1 .exact-contract-title {
  font-size: 16.5px;
  line-height: 1.35;
  margin-top: 4px;
  margin-bottom: 24px;
}

#docSheet1 .p-p1-lead {
  margin-bottom: 18px;
  line-height: 1.55;
}

#docSheet1 .p-p1-party {
  margin-bottom: 16px;
  line-height: 1.55;
}

#docSheet1 .p-p1-and {
  margin-bottom: 16px;
  line-height: 1.55;
}

#docSheet1 .p-p1-parties {
  margin-top: 22px;
  margin-bottom: 8px;
  line-height: 1.55;
}

#docSheet1 .p-p1-preamble-head {
  margin-bottom: 16px;
  line-height: 1.55;
}

#docSheet1 .p-p1-item {
  margin-bottom: 14px;
  line-height: 1.55;
}

#docSheet1 .indent-item {
  padding-left: 28px;
  margin-bottom: 11px;
  line-height: 1.55;
}

#docSheet1 .indent-item strong u {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

#docSheet1 .p-p1-final {
  margin-top: 16px;
  margin-bottom: 10px;
  line-height: 1.55;
}

/* Dedicated Appendix 1 Styles */
.appendix-a4-sheet {
  font-family: 'Calibri', 'Inter', -apple-system, sans-serif !important;
  font-size: 13.5px !important;
}

.appendix-exact-head {
  text-align: center !important;
  margin-bottom: 26px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.exact-app-title {
  font-size: 16px !important;
  font-weight: bold !important;
  font-family: 'Calibri', 'Inter', sans-serif !important;
  color: #000000 !important;
  text-align: center !important;
  margin: 0 0 4px 0 !important;
  width: 100% !important;
}

.exact-app-sub {
  font-size: 13.5px !important;
  font-weight: normal !important;
  margin: 4px 0 !important;
  font-family: 'Calibri', 'Inter', sans-serif !important;
  text-align: center !important;
  width: 100% !important;
}

.exact-app-contract-name {
  font-size: 14.5px !important;
  font-weight: bold !important;
  font-family: 'Calibri', 'Inter', sans-serif !important;
  text-align: center !important;
  margin: 4px 0 24px 0 !important;
  line-height: 1.4 !important;
  width: 100% !important;
}

.exact-section-sub {
  font-size: 14px;
  font-weight: bold;
  margin: 18px 0 6px;
  font-family: 'Calibri', 'Inter', sans-serif !important;
}

.exact-section-sub-sub {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
  font-family: 'Calibri', 'Inter', sans-serif !important;
}

/* THE EXACT BRAND ORANGE COLOR FROM ORIGINAL PDF (#ED7C31) */
.color-iris-orange {
  color: #ED7C31 !important;
  font-family: 'Calibri', 'Inter', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1px;
  margin-top: 14px !important;
  margin-bottom: 8px !important;
}

.app-p {
  font-family: 'Calibri', 'Inter', sans-serif !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
}

.app-fees-list {
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-fee-item {
  font-family: 'Calibri', 'Inter', sans-serif !important;
  font-size: 13.5px !important;
  margin-bottom: 4px;
}

/* Live Dynamic Placeholders in Document */
.live-field {
  font-weight: normal;
  color: #000000;
  transition: color 0.15s ease;
}

.live-field.underlined {
  border-bottom: 1px solid #cbd5e1;
  padding: 0 1px;
}

.live-field.filled {
  border-bottom: none !important;
  background-color: transparent !important;
  text-decoration: none !important;
  color: #000000 !important;
}

.live-field[data-field="companyName"].filled,
.live-field[data-field="companyEik"].filled,
.live-field[data-field="companyAddress"].filled,
.live-field[data-field="companyRepresentative"].filled,
.live-field[data-field="date"].filled {
  font-weight: 700 !important;
}

.live-field[data-field="bankIban"].filled,
.live-field[data-field="contactAddress"].filled,
.live-field[data-field="contactEmail"].filled,
.live-field[data-field="contactPhone"].filled,
.live-field[data-field="bankName"].filled {
  font-weight: normal !important;
}

.mono-font {
  font-family: inherit;
  letter-spacing: inherit;
}

/* Exact Contract Signatures Grid (Page 9 - 3 Merchant Signature Slots) */
#docSheet9 {
  padding: 48px 68px 36px 68px;
  font-size: 13.5px;
  line-height: 1.42;
}

#docSheet9 .exact-p {
  margin-bottom: 7px;
}

#docSheet9 .exact-chapter-title {
  font-size: 14px;
  margin: 10px 0 6px;
}

#docSheet9 .indent-item {
  padding-left: 18px;
  margin-bottom: 3px;
}

#docSheet9 .mt-2 { margin-top: 8px; }
#docSheet9 .mt-3 { margin-top: 12px; }

.contract-exact-signatures {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-doc);
}

.exact-sig-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.sig-half {
  display: flex;
  flex-direction: column;
  min-height: 48px;
}

.sig-head-title {
  font-size: 13.5px;
  margin-bottom: 3px;
}

.iris-unsigned-box {
  min-height: 24px;
}

.sig-placed-holder {
  min-height: 26px;
}

.sig-underline-dots {
  color: #000000;
  letter-spacing: 1px;
  font-size: 12px;
  line-height: 1.1;
  word-break: break-all;
}

.sig-rep-footer {
  font-size: 12.5px;
  margin-top: 3px;
  color: #1e293b;
}

.terms-receipt-banner {
  background: transparent;
  border-left: none;
  padding: 0;
  margin: 12px 0 8px 0;
  font-size: 13px;
  line-height: 1.35;
}

.terms-receipt-banner p {
  margin: 0;
  font-size: 13px;
}

#docSheet9 .page-footer {
  margin-top: 12px;
  padding-top: 6px;
}

/* Exact Signatures Grid (Appendix 1) */
.exact-signatures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  font-family: var(--font-doc);
  margin-top: 24px;
}

.appendix-sig-grid {
  font-family: 'Calibri', 'Inter', sans-serif !important;
  margin-top: 40px !important;
}

.sig-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.unsigned-space {
  min-height: 50px;
  display: flex;
  align-items: flex-end;
}

.dotted-sig-line {
  color: #000000;
  letter-spacing: 1px;
  overflow: hidden;
}

.merchant-sig-target {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.sig-placed-holder {
  min-height: 54px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  margin-bottom: -4px; /* Sits naturally right above the dotted line */
}

.exact-declaration-block {
  margin-top: 20px;
  font-size: 13.5px;
}

.decl-row-clean {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.merchant-decl-target {
  font-weight: bold;
}

/* Applied Merchant Signature inside the document */
.placed-merchant-sig {
  display: inline-block;
  padding: 0 2px;
  color: #000000 !important;
}

.placed-merchant-sig * {
  color: #000000 !important;
}

.placed-merchant-sig.drawn img {
  max-height: 60px !important;
  display: block;
}

.placed-merchant-sig.typed {
  font-size: 26px;
  line-height: 1.15;
}

/* Read Banner on Terms */
.terms-read-banner {
  background-color: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 24px;
  font-family: var(--font-sans);
}

.terms-read-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  background-color: #0f172a;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.terms-read-banner p {
  font-size: 12px;
  color: #475569;
}

/* ==========================================================================
   SUCCESS MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-container {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  padding: 32px 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.success-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #f1f5f9;
  border: 2px solid #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-main-headline {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.success-subtext {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}

.submission-summary-box {
  background-color: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 12.5px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sum-label {
  color: #64748b;
}

.sum-value {
  font-weight: 600;
  color: #0f172a;
}

.sum-value.mono {
  font-family: monospace;
}

.text-verified {
  color: #15803d;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.modal-actions-row {
  display: flex;
  gap: 12px;
}

.btn-primary-modal {
  flex: 1;
  background-color: var(--dark-btn);
  color: #ffffff;
  border: none;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease;
}

.btn-primary-modal:hover {
  background-color: var(--dark-btn-hover);
}

.btn-subtle-modal {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  color: #475569;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-subtle-modal:hover {
  background-color: #f8fafc;
  color: #0f172a;
}

/* ==========================================================================
   LOADING SCREEN OVERLAY (Waiting for Confirmation)
   ========================================================================== */
.loading-screen-overlay {
  background-color: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  z-index: 1100;
  cursor: wait;
}

.loading-modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: 38px 32px 32px 32px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  text-align: center;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.loading-modal-card.loading-pure-spinner {
  max-width: 140px !important;
  width: auto !important;
  padding: 30px !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.loading-modal-card.loading-pure-spinner .loading-spinner-wrapper {
  margin: 0 !important;
}

.loading-spinner-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-ring-spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 4px solid #e2e8f0;
  border-top-color: #2563eb;
  border-right-color: #60a5fa;
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

.loading-logo-center {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loading-main-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
  letter-spacing: -0.2px;
}

.loading-sub-title {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 0 22px 0;
  line-height: 1.5;
}

.loading-progress-track {
  width: 100%;
  height: 6px;
  background-color: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 22px;
  position: relative;
}

.loading-progress-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 50%, #2563eb 100%);
  background-size: 200% 100%;
  animation: progressIndeterminate 1.6s ease-in-out infinite;
}

@keyframes progressIndeterminate {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

.loading-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  background: #f8fafc;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
}

.loading-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #64748b;
  transition: all 0.25s ease;
}

.loading-step-item.active {
  color: #0f172a;
  font-weight: 600;
}

.step-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #94a3b8;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.loading-step-item.active .step-indicator-dot {
  background-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  animation: pulseDot 1.4s infinite ease-in-out;
}

.loading-step-item.done .step-indicator-dot {
  background-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: #0f172a;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideToast 0.25s ease;
}

@keyframes slideToast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.toast.error { background-color: #991b1b; }
.toast.success { background-color: #14532d; }

/* Contract Page 1 Header Logo */
.contract-doc-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 16px;
}

.contract-header-logo {
  height: 38px;
  width: auto;
  display: block;
}

/* Registry Link Badge & EIK Status */
.registry-link-badge {
  font-size: 11px;
  font-weight: 600;
  color: #192b6c;
  text-decoration: none;
  background: #eef2ff;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #c7d2fe;
  transition: all 0.2s ease;
}

.registry-link-badge:hover {
  background: #e0e7ff;
  color: #0f172a;
}

.field-hint-msg {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.3;
}

.field-hint-msg.success {
  color: #15803d;
  font-weight: 500;
}

.field-hint-msg.error {
  color: #dc2626;
}

/* Validation Error Messages & Highlight */
.field-error-msg {
  display: block;
  font-size: 11.5px;
  color: #dc2626;
  margin-top: 4px;
  font-weight: 500;
}

input.is-invalid, select.is-invalid {
  border-color: #dc2626 !important;
  background-color: #fff5f5 !important;
}

/* Centered Appendix Headings */
.exact-section-sub.app-sub,
.exact-section-sub-sub.color-iris-orange {
  text-align: center !important;
}

/* Full-width Feedback Row for EIK - Compact Spacing */
.eik-fullwidth-feedback-row {
  width: 100%;
  margin-top: 2px;
  margin-bottom: 4px;
}

.eik-fullwidth-feedback-row .field-hint-msg {
  width: 100%;
  font-size: 11.5px;
  line-height: 1.3;
  padding: 3px 6px;
  border-radius: 4px;
  box-sizing: border-box;
}

.eik-fullwidth-feedback-row .field-hint-msg.success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-weight: 500;
}

/* Inline Verification Bar right at bottom of company data card under representative */
.company-verify-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background-color: #f0fdf4 !important;
  border: 1.5px solid #86efac !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  margin: 10px 0 0 0 !important;
  box-sizing: border-box !important;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.08) !important;
  clear: both !important;
  width: 100% !important;
  transition: all 0.2s ease;
}

/* Extra Websites Inputs */
.extra-website-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-main);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.extra-website-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

/* Smooth, calm and elegant fade-in transition when dynamic contract text updates */
@keyframes textFadeInSoft {
  0% {
    opacity: 0.35;
  }
  100% {
    opacity: 1;
  }
}

.live-field.text-animating {
  animation: textFadeInSoft 0.85s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
  display: inline;
}

.verify-prompt-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.verify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #16a34a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.verify-question {
  font-size: 13px;
  font-weight: 700;
  color: #166534;
  line-height: 1.3;
}

.verify-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-verify-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.btn-verify-yes {
  background: #16a34a;
  color: #ffffff;
  border-color: #15803d;
  box-shadow: 0 1px 3px rgba(22, 163, 74, 0.25);
}

.btn-verify-yes:hover {
  background: #15803d;
}

.btn-verify-yes.active {
  background: #15803d;
  box-shadow: 0 0 0 2px #bbf7d0;
}

.btn-verify-no {
  background: #ffffff;
  color: #dc2626;
  border-color: #fca5a5;
}

.btn-verify-no:hover {
  background: #fef2f2;
  border-color: #dc2626;
}

.btn-verify-no.active {
  background: #fee2e2;
  border-color: #dc2626;
}

.company-inputs-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  clear: both;
  transition: all 0.2s ease;
}

.company-inputs-box.is-verified input {
  background-color: #f8fafc;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }
  .top-nav,
  .progress-bar-strip,
  .form-sidebar,
  .doc-toolbar,
  .page-top-tab,
  .page-gap-divider,
  .modal-overlay,
  .toast-container,
  #termsDocContainer {
    display: none !important;
  }
  .main-layout {
    display: block !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .document-panel {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }
  .doc-viewport {
    padding: 0 !important;
    background: transparent !important;
    overflow: visible !important;
  }
  .pages-stack {
    display: block !important;
    width: 100% !important;
  }
  .doc-page-card {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    page-break-after: always !important;
    break-after: page !important;
    margin: 0 !important;
  }
  .doc-page-card:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }
  .a4-sheet {
    box-shadow: none !important;
    border: none !important;
    padding: 15mm 15mm !important;
    min-height: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ==========================================================================
   Bilingual 2-Column Contract Grid (Left: English, Right: Romanian)
   ========================================================================== */
.doc-bilingual-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  column-gap: 28px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-family: 'Calibri', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 14.8px !important;
  line-height: 1.58 !important;
  color: #000000 !important;
  text-align: justify !important;
  text-justify: inter-word !important;
}

.doc-col-en,
.doc-col-ro {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  box-sizing: border-box !important;
}

.doc-col-en {
  padding-right: 14px !important;
  border-right: 1px solid #CBD5E1 !important;
}

.doc-col-ro {
  padding-left: 14px !important;
}

.doc-bilingual-grid p {
  margin: 0 0 11px 0 !important;
}

.doc-bilingual-grid strong {
  font-weight: 700 !important;
  color: #000000 !important;
}

.doc-chapter-h2 {
  font-family: 'Calibri', 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  margin: 16px 0 10px 0 !important;
  text-align: center !important;
  text-transform: uppercase !important;
  color: #000000 !important;
  letter-spacing: 0.3px !important;
}

.sig-slot-box {
  background: transparent !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}


.eik-field-container {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  width: 100%;
}
.eik-field-container input {
  flex: 1;
  min-width: 0;
}
.btn-verify-eik {
  background: #192b6c;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0 14px;
  height: 38px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.btn-verify-eik:hover {
  background: #00bff2;
  color: #0F172A;
}
