:root {
  --fdm-gold:     #E8930A;
  --fdm-gold-lt:  #FEF3DC;
  --fdm-text:     #1A1A18;
  --fdm-muted:    #6B6966;
  --fdm-border:   #E2DDD8;
  --fdm-radius:   14px;
  --fdm-radius-sm:8px;
}
#finacc-demo-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(20,15,5,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fdm-fade .2s ease;
}
#finacc-demo-overlay[hidden] { display: none !important; }
@keyframes fdm-fade { from { opacity: 0; } to { opacity: 1; } }

#finacc-demo-modal {
  background: #fff; border-radius: var(--fdm-radius);
  width: 100%; max-width: 440px;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  overflow: hidden;
  animation: fdm-up .25s cubic-bezier(.22,.68,0,1.2);
}
@keyframes fdm-up {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.fdm-header {
  background: linear-gradient(135deg, #F5A623, #E8930A);
  padding: 20px; display: flex; align-items: flex-start; justify-content: space-between;
}
.fdm-logo-row { display: flex; align-items: center; gap: 12px; }
.fdm-icon {
  font-size: 26px; width: 46px; height: 46px;
  background: rgba(255,255,255,.2); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.fdm-title   { font-size: 17px; font-weight: 700; color: #fff; }
.fdm-subtitle{ font-size: 13px; color: rgba(255,255,255,.85); margin-top: 2px; }
.fdm-close {
  background: rgba(255,255,255,.2); border: none; color: #fff;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 14px; cursor: pointer; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .15s;
}
.fdm-close:hover { background: rgba(255,255,255,.35); }
.fdm-body   { padding: 24px 24px 20px; }
.fdm-field  { margin-bottom: 18px; }
.fdm-field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--fdm-text); margin-bottom: 6px;
}
.fdm-req { color: var(--fdm-gold); }
.fdm-field input {
  width: 100%; padding: 11px 14px; box-sizing: border-box;
  border: 1.5px solid var(--fdm-border); border-radius: var(--fdm-radius-sm);
  font-size: 15px; font-family: inherit; color: var(--fdm-text);
  outline: none; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.fdm-field input:focus {
  border-color: var(--fdm-gold);
  box-shadow: 0 0 0 3px rgba(232,147,10,.15);
}
.fdm-field input::placeholder { color: #C0BAB4; }
.fdm-phone-row {
  display: flex; border: 1.5px solid var(--fdm-border);
  border-radius: var(--fdm-radius-sm); overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.fdm-phone-row:focus-within {
  border-color: var(--fdm-gold);
  box-shadow: 0 0 0 3px rgba(232,147,10,.15);
}
.fdm-flag {
  background: var(--fdm-gold-lt); padding: 0 12px;
  font-size: 14px; font-weight: 600; display: flex;
  align-items: center; gap: 4px; flex-shrink: 0;
  border-right: 1.5px solid var(--fdm-border);
}
.fdm-phone-row input {
  border: none !important; box-shadow: none !important;
  border-radius: 0 !important; flex: 1;
}
.fdm-error {
  background: #FEF0F0; color: #C0392B; border: 1px solid #F5C6C6;
  border-radius: var(--fdm-radius-sm);
  padding: 10px 14px; font-size: 13px; margin-bottom: 14px;
}
.fdm-error[hidden] { display: none; }
.fdm-btn-primary {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg, #F5A623, #E8930A);
  color: #fff; border: none; border-radius: var(--fdm-radius-sm);
  font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .15s, transform .1s;
}
.fdm-btn-primary:hover:not(:disabled)  { opacity: .9; }
.fdm-btn-primary:active:not(:disabled) { transform: scale(.98); }
.fdm-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.fdm-btn-outline {
  width: 100%; padding: 11px; background: #fff;
  color: var(--fdm-gold); border: 1.5px solid var(--fdm-gold);
  border-radius: var(--fdm-radius-sm); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .15s; margin-top: 16px;
}
.fdm-btn-outline:hover { background: var(--fdm-gold-lt); }
.fdm-spinner {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: fdm-spin .7s linear infinite; vertical-align: middle;
}
@keyframes fdm-spin { to { transform: rotate(360deg); } }
.fdm-privacy { text-align: center; font-size: 12px; color: var(--fdm-muted); margin: 12px 0 0; }
#fdm-success        { text-align: center; padding: 8px 0; }
#fdm-success[hidden]  { display: none; }
#fdm-form-wrap[hidden]{ display: none; }
.fdm-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #F5A623, #E8930A);
  color: #fff; font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  animation: fdm-pop .35s cubic-bezier(.22,.68,0,1.4);
}
@keyframes fdm-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fdm-success-title { font-size: 20px; font-weight: 700; color: var(--fdm-text); margin-bottom: 10px; }
.fdm-success-msg   { font-size: 14px; color: var(--fdm-muted); line-height: 1.6; }
.fdm-success-msg strong { color: var(--fdm-text); }
.finacc-demo-btn {
  display:inline-flex; align-items:center; gap:8px;
  background: linear-gradient(135deg, #F5A623, #E8930A);
  color: #fff; border: none; padding: 12px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 700; cursor: pointer; transition: opacity .15s;
}
.finacc-demo-btn:hover { opacity: .88; }