/* The standalone form uses the redesign's styling inside the current theme. */
article:has(.vahbi) > h1.entry-title,
article:has(.vahbi) > .entry-header > h1.entry-title,
#main-content > .container:has(.vahbi) > #sidebar,
#main-content > .container:has(.vahbi)::before {
  display: none;
}

#main-content > .container:has(.vahbi) {
  width: min(94%, 78rem);
  max-width: none;
  padding-top: clamp(1rem, 3vw, 2.25rem);
}

#main-content .container #left-area:has(.vahbi) {
  float: none;
  width: 100%;
  padding: 0;
}

.vahbi {
  --vahbi-navy: #102b44;
  --vahbi-deep: #0b2135;
  --vahbi-ink: #182c3d;
  --vahbi-red: #b62335;
  --vahbi-cream: #f7f5ef;
  --vahbi-muted: #4c5d68;
  --vahbi-line: #dce0df;
  margin: 0 0 clamp(1rem, 4vw, 3rem);
  color: var(--vahbi-ink);
  font: 1rem/1.6 Arial, Helvetica, sans-serif;
}

.vahbi *, .vahbi *::before, .vahbi *::after { box-sizing: border-box; }

.vahbi .vahbi-mast {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.75rem) clamp(1.25rem, 6vw, 4.5rem);
  background: linear-gradient(110deg, var(--vahbi-deep), var(--vahbi-navy));
  color: white;
  border-bottom: .3rem solid var(--vahbi-red);
}

.vahbi .vahbi-mast::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -12rem -5rem auto auto;
  width: clamp(17rem, 38vw, 29rem);
  aspect-ratio: 1;
  border: 1px solid #ffffff24;
  border-radius: 50%;
  box-shadow: 0 0 0 3rem #ffffff08, 0 0 0 6rem #ffffff06;
  pointer-events: none;
}

.vahbi .vahbi-mast h1 {
  padding: 0;
  margin: 0 0 .8rem;
  color: #fff;
  font: normal clamp(2.45rem, 6vw, 4.05rem)/1.05 Georgia, 'Times New Roman', serif;
  letter-spacing: -.025em;
}

.vahbi .vahbi-mast p {
  max-width: 37rem;
  padding: 0;
  margin: 0;
  color: #e0e9ef;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.vahbi .idea-section {
  padding: clamp(1.25rem, 5vw, 3.75rem);
  background: #faf9f5;
}

.vahbi .idea-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr);
  gap: clamp(1.5rem, 5vw, 4.25rem);
  align-items: start;
}

.vahbi :is(h2, #idea-form legend) {
  margin: 0;
  color: var(--vahbi-navy);
  font: normal clamp(1.7rem, 3.2vw, 2.3rem)/1.12 Georgia, 'Times New Roman', serif;
  letter-spacing: -.015em;
}

.vahbi .idea-guide { padding-top: .65rem; }
.vahbi .idea-guide h2 { padding: 0; margin-bottom: .9rem; }
.vahbi .idea-guide > p { padding: 0; margin: 0 0 1.35rem; color: var(--vahbi-muted); }
.vahbi .idea-boundary { border-left: 3px solid var(--vahbi-red); padding: 1rem 1.15rem; background: var(--vahbi-cream); }
.vahbi .idea-boundary p { padding: 0; margin: .35rem 0 0; color: var(--vahbi-muted); }

.vahbi .idea-panel {
  min-width: 0;
  border: 1px solid var(--vahbi-line);
  border-top: 3px solid var(--vahbi-navy);
  padding: clamp(1.05rem, 4vw, 2.25rem);
  background: white;
  box-shadow: 0 12px 35px #102b4414;
}

.vahbi #idea-form { margin: 0; scroll-margin-top: 6.5rem; }
.vahbi #idea-form fieldset { min-inline-size: 0; margin: 0 0 1.65rem; border: 0; padding: 0; }
.vahbi #idea-form #idea-interactive { margin: 0; }
.vahbi #idea-form legend {
  display: block;
  width: 100%;
  margin-bottom: .9rem;
  padding: 0 0 .65rem;
  border-bottom: 1px solid var(--vahbi-line);
  font-size: 1.45rem;
}
.vahbi .idea-required, .vahbi .idea-privacy { padding: 0; margin: 0 0 .9rem; color: var(--vahbi-muted); font-size: .9rem; }
.vahbi .idea-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .95rem; }
.vahbi .idea-field { min-width: 0; }
.vahbi .idea-field.idea-wide { grid-column: 1 / -1; }
.vahbi #idea-form label, .vahbi #idea-form small { display: block; }
.vahbi #idea-form label { margin: 0 0 .35rem; color: var(--vahbi-ink); font-size: .925rem; font-weight: 700; }
.vahbi #idea-form small { margin: .4rem 0 0; color: var(--vahbi-muted); font-size: .875rem; line-height: 1.55; }

.vahbi #idea-form :is(input, select, textarea) {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 3rem;
  border: 1px solid #91a1ae;
  border-radius: 2px;
  margin: 0;
  padding: .65rem .75rem;
  background: #fff;
  box-shadow: none;
  color: var(--vahbi-ink);
  font: inherit;
}
.vahbi #idea-form select { text-overflow: ellipsis; }
.vahbi #idea-form textarea { resize: vertical; }

.vahbi #idea-address-lookup { margin: 0 0 1rem; padding: .85rem 1rem; border: 1px solid var(--vahbi-line); background: #f1f5f7; }
.vahbi #idea-address-lookup summary { cursor: pointer; font-weight: 700; color: var(--vahbi-navy); }
.vahbi #idea-address-lookup .idea-field-grid { margin: .85rem 0; }
.vahbi #idea-lookup-status { margin: .45rem 0; padding: 0; }

.vahbi #idea-form button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: .65rem 1.15rem;
  border: 1px solid var(--vahbi-red);
  border-radius: 2px;
  background: var(--vahbi-red);
  color: white;
  cursor: pointer;
  font: 700 .95rem/1.35 Arial, Helvetica, sans-serif;
  text-align: center;
  text-transform: none;
}
.vahbi #idea-form button.button:hover { border-color: #8e1e2c; background: #8e1e2c; color: white; }
.vahbi #idea-form button.idea-back { border-color: #91a1ae; background: #fff; color: var(--vahbi-navy); }
.vahbi #idea-form button.idea-back:hover { border-color: var(--vahbi-navy); background: #edf2f5; color: var(--vahbi-navy); }
.vahbi #idea-form button:disabled { opacity: .6; cursor: default; }
.vahbi #idea-form a { color: #8e1e2c; text-decoration: underline; text-underline-offset: .15em; }
.vahbi #idea-form :focus-visible { outline: 3px solid #bb7316; outline-offset: 3px; }
.vahbi #idea-form [hidden] { display: none !important; }
.vahbi #idea-form h2 { padding: 0; margin: 0 0 .75rem; }
.vahbi #idea-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.25fr); gap: .65rem .9rem; margin: 1.1rem 0; padding: 1rem 0; border-block: 1px solid var(--vahbi-line); }
.vahbi #idea-summary dt { font-weight: 700; }
.vahbi #idea-summary dd, .vahbi #idea-receipt { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.vahbi .idea-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.vahbi #idea-submit-status { color: #8e1e2c; }

@media (max-width: 760px) {
  .vahbi .idea-layout { grid-template-columns: 1fr; }
  .vahbi .idea-guide { padding-top: 0; }
  .vahbi .vahbi-mast::after { right: -11rem; }
}

@media (max-width: 520px) {
  .vahbi .idea-field-grid, .vahbi #idea-summary { grid-template-columns: 1fr; }
  .vahbi #idea-summary dd { margin-bottom: .45rem; }
  .vahbi .idea-section { padding-inline: .8rem; }
}
