/* Start a project: the conversation, written like the letter.
   A-Z team lines in cream, the visitor's answers in blue, both uppercase (Fonntsreg). */

.az-convo {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
  font-family: Fonntsreg, Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  text-transform: uppercase;
}

/* the conversation */
.az-line { margin: 0 0 10px; }
.az-team { color: var(--beige); }
.az-you { color: var(--blue); margin-bottom: 16px; }
.az-line.is-thinking::after {
  content: "...";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  color: var(--blue);
  animation: az-dots 1.2s steps(4, end) infinite;
  overflow: hidden;
  vertical-align: bottom;
}
@keyframes az-dots { 0% { width: 0; } 100% { width: 1.2em; } }

/* the visitor's answer: looks like the next blank to fill */
.az-reply {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
}
.az-reply[hidden] { display: none; }
.az-reply { position: relative; }
/* once the visitor stops typing, a thin blue line draws itself under the blank */
.az-wait {
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: min(220px, 50vw);
  height: 1px;
  background: var(--blue);
  transform: translateX(-50%) scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}
.az-wait.is-on { animation: az-wait var(--wait, 1800ms) linear forwards; }
@keyframes az-wait { to { transform: translateX(-50%) scaleX(1); } }
.az-field {
  width: min(320px, 70vw);
  padding: 2px;
  border: 0;
  background: #000;
  color: var(--blue);
  font: inherit;
  text-align: center;
  text-transform: uppercase;
  caret-color: var(--blue);
  outline: none;
}
.az-field::placeholder { color: rgba(247, 242, 226, .32); font-family: Fonntsthin, Arial, sans-serif; opacity: 1; }
.az-field:disabled { opacity: .35; cursor: default; }
/* tap-able answers, in the letter's bracket style */
.az-choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin-top: 10px;
}
.az-choices:empty { display: none; }
.az-choices button {
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
  opacity: .9;
}
.az-choices button::before { content: "[ "; }
.az-choices button::after { content: " ]"; }
.az-choices button:hover { opacity: 1; color: var(--beige); }

/* the letter, put together from the answers */
.az-recap {
  margin: 34px auto 0;
  padding-top: 26px;
  border-top: 1px solid #1d1d1d;
  color: var(--beige);
}
.az-recap[hidden] { display: none; }
.az-recap p { margin: 0 0 8px; }
.az-recap b { font-family: Fonntsbold, Arial, sans-serif; font-weight: 700; }
.az-recap .az-v { color: var(--blue); }
.az-recap-title { margin-bottom: 14px; color: var(--grey); font-size: 11px; letter-spacing: .08em; }

.az-convo .submt-div { margin-top: 26px; margin-bottom: 24px; }
.az-convo .submt-div[hidden] { display: none; }
.az-convo .submit-button:disabled { cursor: default; }
/* the letter is ready: the SUBMIT ring gently pulses */
.az-ready .submt-div .image-6 { animation: az-ring 1.6s ease-in-out infinite; }
@keyframes az-ring { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.06); opacity: 1; } }
/* sending: the ring turns around SUBMIT (at least one full turn); sent: the ring and the word rest, dimmed */
.az-sending .submt-div .image-6 { animation: az-ring-turn .9s cubic-bezier(.45, .05, .55, .95) infinite !important; opacity: 1; }
@keyframes az-ring-turn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.az-sent .submt-div .image-6 { animation: none !important; transform: scale(.94) !important; opacity: .28; transition: opacity .9s ease, transform .9s ease; }
.az-sent .submit-button, .az-sent .cntct-btn { opacity: .35 !important; transition: opacity .9s ease; }

@media (max-width: 767px) {
  .az-convo { font-size: 12px; line-height: 17px; }
}

/* ---------- page layout: the title stays at the top, the conversation scrolls below it ---------- */
.s-a-p-wrapper .div-block-5 {
  justify-content: flex-start;
  height: 100%;
  padding-top: 92px;
  box-sizing: border-box;
}
.s-a-p-wrapper .div-block-6 { flex: none; }
.s-a-p-wrapper .form-dov {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin-top: 18px;
  padding-top: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  /* older lines fade out as they scroll up under the title */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
}
.s-a-p-wrapper .form-dov::-webkit-scrollbar { display: none; }
/* direct call / email: pinned to the bottom of the page, under the conversation */
.s-a-p-wrapper .direct-call-div {
  flex: none;
  margin-top: 0;
  padding: 14px 0 22px;
  background: #000;
}

@media (max-width: 767px) {
  .s-a-p-wrapper .div-block-5 { padding-top: 78px; }
  .s-a-p-wrapper .div-block-6 { top: 0; }
  .s-a-p-wrapper .form-dov { margin-top: 10px; }
}

/* ---------- Contact: the conversation in the old contact form's style ---------- */
/* team lines read like the form's labels; answers sit on its underlined lines */
.az-convo.az-contact {
  max-width: 600px;
  margin: 0;
  padding: 0;
  text-align: left;
  text-transform: uppercase;
}
.az-contact .az-team {
  margin: 0 0 4px;
  color: var(--beige);
  opacity: .8;
  font-family: Fonntsthin, Arial, sans-serif;
}
.az-contact .az-you {
  margin: 0 0 24px;
  padding: 8px 0 7px;
  border-bottom: 1px solid #ccc;
  color: var(--beige);
  font-family: Fonntsreg, Arial, sans-serif;
}
.az-contact .az-reply { justify-content: flex-start; margin-top: 0; }
.az-contact .az-field {
  width: 100%;
  padding: 8px 0 7px;
  border-bottom: 1px solid #ccc;
  color: var(--beige);
  caret-color: var(--beige);
  text-align: left;
}
.az-contact .az-field:focus { border-bottom-color: var(--blue); }
/* the blue line runs along the field's line, left to right */
.az-contact .az-wait { left: 0; width: 100%; bottom: 0; transform: scaleX(0); }
.az-contact .az-wait.is-on { animation: az-wait-line var(--wait, 1800ms) linear forwards; }
@keyframes az-wait-line { to { transform: scaleX(1); } }

.az-contact .az-choices { justify-content: flex-start; gap: 4px 18px; margin-top: 12px; }
.az-handoff {
  color: var(--blue);
  font-family: Fonntsreg, Arial, sans-serif;
  text-decoration: none;
  text-transform: uppercase;
}
.az-handoff::before { content: "[ "; }
.az-handoff::after { content: " \2192 ]"; }
.az-handoff:hover { color: var(--beige); }

/* the message, shown back with the form's labels before SEND */
.az-contact .az-recap { margin-top: 30px; padding-top: 22px; text-align: left; }
.az-contact .az-recap-title { margin-bottom: 16px; }
.az-row { margin-bottom: 16px; }
.az-row-label { color: var(--beige); opacity: .8; font-family: Fonntsthin, Arial, sans-serif; }
.az-row-value {
  padding: 6px 0 6px;
  border-bottom: 1px solid #ccc;
  color: var(--beige);
  font-family: Fonntsreg, Arial, sans-serif;
  text-transform: none;
}
.az-contact .submt-div { justify-content: flex-start; margin: 18px 0 10px; }
.az-contact .cntct-btn { position: static; }
.az-contact.az-ready .cntct-btn { animation: az-send 1.6s ease-in-out infinite; }
.az-contact.az-sending .cntct-btn { animation: az-send .6s ease-in-out infinite; }
.az-contact.az-sent .cntct-btn { animation: none; }
@keyframes az-send { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }

/* the right-hand column scrolls on its own as the conversation grows */
.div-block-25[data-az-scroll] {
  justify-content: flex-start;
  max-height: max(260px, calc(100vh - 460px));   /* down to the footer */
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding-top: 14px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22px);
}
.div-block-25[data-az-scroll]::-webkit-scrollbar { display: none; }

/* phones and tablets: the page itself scrolls, so the conversation and the message get the
   whole screen instead of a small box (room is kept above the fixed footer) */
@media (max-width: 991px) {
  .contact-us-wrapper { height: auto; min-height: 100vh; padding-bottom: 110px; }
  .contact-us-wrapper .div-block-19 { margin-top: 82px; }   /* the title starts below the logo, buttons and their band */
  .div-block-25[data-az-scroll] { max-height: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 767px) {
  .az-convo.az-contact { width: min(500px, 88vw); }
  .contact-us-wrapper .div-block-22, .contact-us-wrapper .text-block-11 { max-width: 100%; }
}

/* attach a file (Contact): blue bracket link + grey hint, like the page's "[NO 100MB PDFS PLEASE]" */
.az-attach {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin-top: 14px;
}
.az-attach[hidden] { display: none; }
.az-attach-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-family: Fonntsreg, Arial, sans-serif;
  font-size: inherit;
  text-transform: uppercase;
  cursor: pointer;
}
.az-attach-btn::before { content: "[ + "; }
.az-attach-btn::after { content: " ]"; }
.az-attach-btn:hover { color: var(--beige); }
.az-attach-hint {
  color: var(--grey);
  opacity: .8;
  font-family: Fonntsthin, Arial, sans-serif;
  font-size: 11px;
}
/* a file uploading: its underline fills in blue */
.az-file { position: relative; text-transform: none; }
.az-file.is-uploading::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--blue);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  transition: transform .2s linear;
}
/* dragging files over the conversation */
.az-drop { background: rgba(22, 16, 232, .08); }
/* phones and tablets: a soft black band under the logo and buttons, so the scrolling
   conversation doesn't show through them */
@media (max-width: 991px) {
  .contact-us-wrapper::before {
    content: ""; position: fixed; inset: 0 0 auto; height: 78px; z-index: 50; pointer-events: none;
    background: linear-gradient(to bottom, #000 62%, rgba(0, 0, 0, 0));
  }
}
