* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: white;
  min-height: 100vh;
  padding: 0.5rem 15px;
  margin: 0;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

h1 {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  color: black;
  font-size: 2.8rem;
  font-weight: 100;
}

:root {
  --contact-blue: #cee0ff;
  --link-blue: #386abd;
}

.border-test-container {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.variant {
  display: flex;
  flex-direction: column;
}

.border-test {
  padding: 0.5rem;
  margin-bottom: 0.25rem;
  width: 100%;
  border: none;
  aspect-ratio: 2.3 / 1;
  background-color: #ffffff;
  box-shadow: inset 0 0 0 15px white;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  cursor: text;
  position: relative;
  z-index: 0;
}

.border-test::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(
        90deg,
        var(--contact-blue) 0 3px,
        transparent 3px 6px
      )
      top / 100% 1px no-repeat,
    repeating-linear-gradient(
        90deg,
        var(--contact-blue) 0 3px,
        transparent 3px 6px
      )
      bottom / 100% 1px no-repeat,
    repeating-linear-gradient(
        0deg,
        var(--contact-blue) 0 3px,
        transparent 3px 6px
      )
      left / 1px 100% no-repeat,
    repeating-linear-gradient(
        0deg,
        var(--contact-blue) 0 3px,
        transparent 3px 6px
      )
      right / 1px 100% no-repeat;
}

.border-test::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  box-shadow: inset 0 0 0 15px white;
}

.contact-text {
  font-family: sans-serif;
  font-size: 1rem;
  color: #8a8a8a;
  font-weight: 300;
  background: transparent;
  position: relative;
  z-index: 3;
  outline: none;
  min-height: 0;
  min-width: 1ch;
  width: 100%;
  height: 100%;
  display: block;
  padding: 0.8rem 1rem 3.1rem 1rem;
  white-space: pre-wrap;
  overflow-y: hidden;
}

.border-test.is-scrollable .contact-text {
  overflow-y: auto;
}

.contact-text:not(:empty),
.contact-text:not(:empty) * {
  -webkit-text-stroke: 2px rgb(255, 255, 255);
  text-stroke: 2px rgb(255, 255, 255);
  paint-order: stroke fill;
}

.contact-text:empty:not(:focus):before {
  content: attr(data-placeholder);
  font-family: sans-serif;
  font-size: 40px;
  color: white;
  -webkit-text-stroke: 0.5px var(--contact-blue);
  text-stroke: 0.5px var(--contact-blue);
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 500;
  transform: translateY(-2px);
}

.extension-info {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.extension-title {
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  color: black;
}

.extension-download {
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  color: var(--link-blue);
  text-decoration: underline;
}

.extension-download:hover {
  text-decoration: none;
}

.extension-instructions {
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  color: #8a8a8a;
  width: 100%;
  margin-top: 0.25rem;
}

.border-test.div-tiler {
  overflow: hidden;
  --tiler-size: 320vmax;
}

.border-test.div-tiler .tiler-layer {
  position: absolute;
  width: var(--tiler-size);
  height: var(--tiler-size);
  top: calc(var(--tiler-size) / -2);
  left: calc(var(--tiler-size) / -2);
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(
    0deg,
    var(--contact-blue) 0 0.5px,
    transparent 0.5px 16px
  );
  background-size: 16px 16px;
  background-repeat: repeat;
  background-position: -8px -8px;
  /* Rotate the layer (not the gradient) to avoid subpixel intensity variation. */
  transform: rotate(-45deg);
  transform-origin: center;
}

.contact-form {
  position: relative;
  width: 100%;
}

.send-button {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--contact-blue);
  color: white;
  border: none;
  padding: 0.28rem 0.6rem;
  font-family: sans-serif;
  font-size: 0.75rem;
  font-style: italic;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  z-index: 4;
}

.send-icon {
  font-size: 1.05rem;
  line-height: 1;
  font-family: "Times New Roman", serif;
  font-style: normal;
}

.send-button:disabled {
  opacity: 0.6;
}

.send-button.hidden {
  opacity: 0;
  pointer-events: none;
}

.form-status {
  min-height: 1.2em;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.95rem;
  color: black;
  margin-top: 0.35rem;
}
