.contact-page{
  display:grid;
  gap:48px;
  margin-block:40px 80px;
}

.contact-layout{
  display:grid;
  gap:32px;
}

.contact-map__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.contact-map__frame{
  margin-top:12px;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 18px 36px rgba(15,23,42,.16);
}

.contact-map__frame iframe{
  width:100%;
  min-height:240px;
  border:0;
}

.contact-map__placeholder{
  padding:32px;
  text-align:center;
  font-size:0.95rem;
  color:#475569;
  background:rgba(226,232,240,.6);
}

.contact-inline-toolbar{
  position:fixed;
  left:16px;
  top:calc(var(--header-h, 72px) + 16px);
  z-index:2400;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
  pointer-events:auto;
}

.contact-inline-toolbar.is-collapsed .contact-inline-toolbar__content{ display:none; }

.contact-inline-toolbar__icon{
  width:20px;
  height:20px;
}

.contact-inline-toolbar__launcher{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:50%;
  border:1px solid rgba(148,163,184,.35);
  background:rgba(15,23,42,.92);
  color:#f8fafc;
  cursor:pointer;
}

html.theme-light .contact-inline-toolbar__launcher{
  background:rgba(248,250,252,.92);
  color:#0f172a;
  border-color:rgba(148,163,184,.4);
}

.contact-inline-toolbar.is-expanded{
  left:50%;
  transform:translateX(-50%);
  flex-direction:row;
  align-items:center;
}

.contact-inline-toolbar.is-expanded .contact-inline-toolbar__content{
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(15,23,42,.92);
  color:#f8fafc;
  box-shadow:0 12px 30px rgba(15,23,42,.35);
  border:1px solid rgba(148,163,184,.35);
  backdrop-filter:blur(10px);
}

html.theme-light .contact-inline-toolbar.is-expanded .contact-inline-toolbar__content{
  background:rgba(248,250,252,.92);
  color:#0f172a;
  border-color:rgba(148,163,184,.4);
}

.contact-inline-toolbar__toggle,
.contact-inline-toolbar__form-toggle,
.contact-inline-toolbar__save,
.contact-inline-toolbar__collapse{
  border:none;
  background:rgba(248,250,252,.12);
  color:inherit;
  padding:6px 12px;
  border-radius:999px;
  cursor:pointer;
  transition:background .2s ease;
  font-weight:600;
}

.contact-inline-toolbar.is-expanded .contact-inline-toolbar__toggle,
.contact-inline-toolbar.is-expanded .contact-inline-toolbar__form-toggle,
.contact-inline-toolbar.is-expanded .contact-inline-toolbar__save,
.contact-inline-toolbar.is-expanded .contact-inline-toolbar__collapse{
  background:transparent;
}

.contact-inline-toolbar__save:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.contact-inline-toolbar__status{
  font-size:.85rem;
  min-width:160px;
}

.contact-inline-toolbar__status.is-ok{ color:#a7f3d0; }
.contact-inline-toolbar__status.is-error{ color:#fecaca; }

#contactPage.is-editing .contact-editable{
  outline:2px dashed rgba(59,130,246,.45);
  background:rgba(148,163,184,.08);
  transition:outline-color .2s ease, background .2s ease;
}

.contact-map__actions,
.contact-cta{
  display:flex;
  align-items:center;
  gap:12px;
}

.contact-action-button{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  border:1px dashed rgba(59,130,246,.55);
  background:rgba(255,255,255,.08);
  color:#1d4ed8;
  font-weight:600;
  cursor:pointer;
  transition:color .2s ease, border-color .2s ease, background .2s ease;
}

.contact-action-button:hover{
  color:#0f172a;
  border-color:rgba(59,130,246,.8);
  background:rgba(59,130,246,.14);
}

#contactPage:not(.is-editing) [data-contact-form-section][data-visible="false"]{
  display:none;
}

#contactPage.is-editing [data-contact-form-section][data-visible="false"]{
  opacity:.55;
  position:relative;
}

#contactPage.is-editing [data-contact-form-section][data-visible="false"]::before{
  content:'Form hidden – toggle visibility to publish';
  position:absolute;
  inset:12px;
  background:rgba(251,191,36,.25);
  color:#b45309;
  border:1px dashed rgba(251,191,36,.8);
  border-radius:12px;
  padding:12px;
  font-size:.9rem;
}

.contact-command-bar{
  position:fixed;
  z-index:2400;
  display:flex;
  gap:6px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(15,23,42,.92);
  color:#f8fafc;
  box-shadow:0 16px 32px rgba(15,23,42,.35);
  border:1px solid rgba(148,163,184,.35);
  backdrop-filter:blur(10px);
}

.contact-command-bar[hidden]{
  display:none !important;
}

.contact-command-button{
  border:none;
  background:transparent;
  color:inherit;
  font-weight:600;
  font-size:.85rem;
  padding:4px 10px;
  border-radius:999px;
  cursor:pointer;
  transition:background .2s ease;
}

.contact-command-button:hover{
  background:rgba(248,250,252,.15);
}

.contact-command-sep{
  width:1px;
  height:22px;
  background:rgba(148,163,184,.45);
  align-self:center;
}

html.theme-light .contact-command-bar{
  background:rgba(248,250,252,.95);
  color:#0f172a;
  border-color:rgba(148,163,184,.4);
  box-shadow:0 16px 28px rgba(148,163,184,.25);
}

html.theme-light .contact-command-button:hover{
  background:rgba(226,232,240,.65);
}

@media (max-width:900px){
  .contact-inline-toolbar{
    width:94vw;
  }
}

@media (max-width:720px){
  .contact-inline-toolbar{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding:8px 12px;
    border-radius:14px;
    gap:0;
  }
  .contact-inline-toolbar button{
    font-size:.85rem;
    padding:4px 8px;
  }
  .contact-command-bar{
    flex-wrap:nowrap;
    overflow-x:auto;
  }
}
