/* Light theme only: the logo is a GIF on white with black lettering. */
:root {
  --bg: #ffffff;
  --fg: #3a3a3a;
  --muted: #6b6b6b;
  --accent: #1ea3dc;
  --wall: #fdb900;
  --ink: #2b2b2b;
  --error: #6b0fb3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.5 Geneva, Arial, Helvetica, sans-serif;
}

/* Splash: logo centred, as the original */
.splash {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 16px;
}

.logo { margin: 0; line-height: 0; width: 100%; max-width: 500px; }
.logo img { display: block; width: 100%; height: auto; }
/* Roll-over swaps to the black and blue logo, as the original */
.logo:hover img { content: url("/images/logo_imagiology_std_blk_blu.gif"); }

.soon {
  width: 100%;
  max-width: 500px;
  margin: 0.25rem 0 0;
  text-align: right;
  color: var(--muted);
  font-size: 0.85rem;
}

/* "What's on your mind?" tab */
.tab {
  margin-top: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
  transition: transform 0.15s ease;
}
.tab:hover { transform: translateY(2px); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Contact popup: the yellow wall and the spam bin */
dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: var(--wall) url("/images/bg_contact_wall.jpg") no-repeat right bottom / 100% auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  overflow: auto;
}

dialog::backdrop { background: rgba(0, 0, 0, 0.7); }


dialog[open] { animation: drop 0.35s ease-out; }
@keyframes drop {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  dialog[open] { animation: none; }
  .tab { transition: none; }
}

.panel {
  position: relative;
  /* Keep the form on the wall, left of the bin and above the floor */
  width: 52%;
  padding: 0 1.5rem 6rem;
}

.panel h2 { margin: 1.5rem 0 0.5rem; font-size: 1.4rem; }
.panel p { margin: 0 0 0.5rem; font-size: 0.95rem; }
.panel .ps { font-size: 0.85rem; }

.close {
  /* Sticky so it stays reachable when the popup scrolls on small screens */
  position: sticky;
  z-index: 2;
  top: 0.5rem;
  float: right;
  margin: 0.5rem 0.75rem 0 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.close:hover { background: #fff; }

form { display: grid; gap: 0.2rem; margin-top: 0.75rem; }

label { font-weight: 700; font-size: 0.9rem; margin-top: 0.5rem; }

input, textarea {
  width: 100%;
  font: inherit;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }

.err { display: none; color: var(--error); font-size: 0.8rem; font-weight: 700; }
.err.show { display: block; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit {
  justify-self: start;
  margin-top: 1rem;
  padding: 0.6rem 1.4rem;
  font: 700 0.9rem/1 Geneva, Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.submit:hover { background: #000; }
.submit:disabled { opacity: 0.6; cursor: wait; }

.status { min-height: 1.5em; margin: 0.75rem 0 0; font-weight: 700; }

/* Phones: form full width above the bin picture */
@media (max-width: 640px) {
  .panel { width: 100%; padding-bottom: calc(62vw + 1rem); }
}

footer {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}
