/* YG Digital — native modal + notify (public) */
.yg-modal{
  position:fixed;inset:0;z-index:1200;
  display:flex;align-items:stretch;justify-content:flex-end;
  padding:0;visibility:hidden;pointer-events:none;
}
.yg-modal[hidden]{display:none!important}
.yg-modal.is-open{display:flex;visibility:visible;pointer-events:auto}
.yg-modal-backdrop{
  position:absolute;inset:0;
  background:rgba(15,23,42,.36);
  opacity:0;
  -webkit-backdrop-filter:blur(0);
  backdrop-filter:blur(0);
  transition:opacity .32s ease,backdrop-filter .36s ease,-webkit-backdrop-filter .36s ease;
}
.yg-modal.is-open .yg-modal-backdrop{
  opacity:1;
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
.yg-modal-dialog{
  position:relative;z-index:1;
  width:100%;max-width:100%;
  height:100%;max-height:100dvh;overflow:hidden;
  display:flex;flex-direction:column;
  background:#fff;color:var(--text-dark,#1f1f1f);
  border-radius:0;
  box-shadow:-12px 0 40px rgba(15,23,42,.18);
  opacity:0;
  transform:translateX(28px) scale(.985);
  transition:transform .36s cubic-bezier(.22,1,.36,1),opacity .3s ease;
  will-change:transform,opacity;
}
.yg-modal.is-ready .yg-modal-dialog{
  opacity:1;
  transform:translateX(0) scale(1);
}
.yg-modal-accent{
  flex-shrink:0;height:3px;width:100%;
  background:linear-gradient(90deg,var(--dark-blue,#1637a5),var(--light-blue,#1d4ed7));
}
.yg-modal-head{
  flex-shrink:0;
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  padding:20px 22px 12px;
  padding-top:max(20px,env(safe-area-inset-top));
  background:#fff;
  border-bottom:1px solid #eef2f7;
}
.yg-modal-eyebrow{
  margin:0 0 4px;font-size:11px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:var(--light-blue,#1d4ed7);
}
.yg-modal-head h2{
  margin:0;font-size:1.25rem;font-weight:800;letter-spacing:-.02em;line-height:1.25;
  color:#0f172a;
}
.yg-modal-close{
  flex-shrink:0;width:36px;height:36px;border-radius:10px;
  display:inline-flex;align-items:center;justify-content:center;
  color:#64748b;background:#f1f5f9;font-size:1.35rem;line-height:1;
  transition:background .2s,color .2s;
}
.yg-modal-close:hover{background:#e2e8f0;color:#0f172a}
.yg-modal-body{
  flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;
  padding:14px 22px max(24px,env(safe-area-inset-bottom));
  overscroll-behavior:contain;
}
.yg-modal-body .yg-modal-lead{
  margin:0 0 14px;font-size:13.5px;line-height:1.55;color:#64748b;
}
#get-offer-form{display:flex;flex-direction:column;gap:12px}
.get-offer-form-row{display:flex;flex-direction:column;gap:12px}
#get-offer-form label{
  font-size:12.5px;font-weight:700;color:#334155;
  display:block;margin-bottom:7px;text-align:start;letter-spacing:.01em;
}
#get-offer-form input,
#get-offer-form select,
#get-offer-form textarea{
  padding:13px 15px;border-radius:14px;width:100%;
  border:1px solid #e5eaf2;background:#fff;color:#0f172a;
  font-size:14.5px;font-weight:500;line-height:1.4;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
  -webkit-appearance:none;appearance:none;
}
#get-offer-form input::placeholder,
#get-offer-form textarea::placeholder{color:#94a3b8;font-weight:400}
#get-offer-form select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:16px;
  padding-right:42px;cursor:pointer;color:#0f172a;
}
#get-offer-form textarea{resize:vertical;min-height:96px;height:auto}
#get-offer-form input:hover,
#get-offer-form select:hover,
#get-offer-form textarea:hover{border-color:#cdd6e4}
#get-offer-form input:focus,
#get-offer-form select:focus,
#get-offer-form textarea:focus{
  border-color:var(--light-blue,#1d4ed7);background:#fff;
  box-shadow:0 0 0 4px rgba(29,78,215,.12),0 1px 2px rgba(15,23,42,.04);outline:0;
}
.get-offer-form-button-container{display:flex;align-items:center;justify-content:center;margin-top:6px}
.get-offer-form-button{
  width:100%;padding:14px 18px;border-radius:14px;border:0;
  background:linear-gradient(135deg,var(--dark-blue,#1637a5),var(--light-blue,#1d4ed7));
  color:var(--text-light,#fff);font-size:15px;font-weight:700;cursor:pointer;
  box-shadow:0 8px 20px -8px rgba(22,55,165,.45);
  transition:opacity .2s,transform .2s,box-shadow .2s;
}
.get-offer-form-button:hover{opacity:.96;transform:translateY(-1px);box-shadow:0 12px 24px -8px rgba(22,55,165,.5)}
.get-offer-form-button:disabled{opacity:.65;cursor:wait;transform:none;box-shadow:none}
#form-error-message{
  padding:10px 12px;border-radius:10px;background:#fef2f2;color:#b91c1c;
  font-size:13.5px;font-weight:600;text-align:center;
}
.yg-modal .deactive{display:none!important}

@media (min-width:640px){
  .yg-modal{align-items:center;justify-content:center;padding:24px}
  .yg-modal-dialog{
    width:100%;max-width:640px;
    height:auto;max-height:min(92dvh,860px);
    border-radius:16px;
    box-shadow:0 24px 64px rgba(15,23,42,.22);
    transform:translateY(18px) scale(.96);
    opacity:0;
  }
  .yg-modal.is-ready .yg-modal-dialog{
    transform:translateY(0) scale(1);
    opacity:1;
  }
  .yg-modal-head{padding:24px 28px 10px}
  .yg-modal-head h2{font-size:1.4rem}
  .yg-modal-body{padding:14px 28px 28px}
  .yg-modal-body .yg-modal-lead{font-size:14.5px;margin-bottom:16px}
  #get-offer-form{gap:14px}
  .get-offer-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
  #get-offer-form label{font-size:13px}
  #get-offer-form input,
  #get-offer-form select,
  #get-offer-form textarea{padding:14px 16px;font-size:15px;border-radius:14px}
  #get-offer-form textarea{min-height:112px}
  .get-offer-form-button{padding:15px 18px;font-size:15.5px;border-radius:14px}
}
@media (min-width:960px){
  .yg-modal-dialog{max-width:720px}
}

@media (prefers-reduced-motion:reduce){
  .yg-modal-backdrop,.yg-modal-dialog,.yg-toast{transition:none!important}
  .yg-modal.is-open .yg-modal-backdrop{
    -webkit-backdrop-filter:blur(6px);
    backdrop-filter:blur(6px);
  }
  .yg-modal.is-open .yg-modal-dialog,
  .yg-modal.is-ready .yg-modal-dialog{
    opacity:1;transform:none;
  }
}

/* Toast / notify */
.yg-toast-host{
  position:fixed;left:50%;bottom:24px;z-index:1300;
  transform:translateX(-50%);
  width:min(420px,calc(100% - 32px));
  display:flex;flex-direction:column;gap:10px;pointer-events:none;
}
.yg-toast{
  pointer-events:auto;
  display:flex;align-items:flex-start;gap:12px;
  padding:14px 16px;border-radius:12px;
  background:#fff;color:#0f172a;
  border:1px solid #e2e8f0;
  box-shadow:0 12px 40px rgba(15,23,42,.14);
  opacity:0;transform:translateY(10px);
  transition:opacity .22s ease,transform .28s cubic-bezier(.22,1,.36,1);
}
.yg-toast.is-in{opacity:1;transform:translateY(0)}
.yg-toast-bar{
  width:3px;align-self:stretch;border-radius:99px;flex-shrink:0;margin:2px 0;
  background:var(--light-blue,#1d4ed7);
}
.yg-toast.is-success .yg-toast-bar{background:#16a34a}
.yg-toast.is-error .yg-toast-bar{background:#dc2626}
.yg-toast-copy{flex:1;min-width:0}
.yg-toast-title{margin:0;font-size:14px;font-weight:800;letter-spacing:-.01em}
.yg-toast-text{margin:3px 0 0;font-size:13px;line-height:1.45;color:#64748b}
.yg-toast-close{
  flex-shrink:0;width:28px;height:28px;border-radius:8px;
  color:#94a3b8;font-size:1.1rem;line-height:1;
}
.yg-toast-close:hover{color:#0f172a;background:#f1f5f9}

/* Inline loading veil (form submit) */
.yg-loading{
  position:fixed;inset:0;z-index:1250;
  display:none;align-items:center;justify-content:center;
  background:rgba(15,23,42,.28);
}
.yg-loading.is-on{display:flex}
.yg-loading-card{
  display:flex;align-items:center;gap:12px;
  padding:14px 18px;border-radius:12px;background:#fff;
  box-shadow:0 12px 36px rgba(15,23,42,.16);
  font-size:14px;font-weight:700;color:#0f172a;
}
.yg-loading-spin{
  width:18px;height:18px;border-radius:50%;
  border:2px solid #e2e8f0;border-top-color:var(--light-blue,#1d4ed7);
  animation:yg-spin .7s linear infinite;
}
@keyframes yg-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){
  .yg-loading-spin{animation:none;border-top-color:#94a3b8}
}
