/* FOOTER: footer, back-to-top button, inquiry popup. Markup lives in footer.php */

footer {
  background: var(--navy-dark);
  color: #c6d5e8;
  padding: 38px 0 0;
  font-size: .85rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 26px;
  padding-bottom: 26px;
}

footer h4 {
  color: #fff;
  font-size: .98rem;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--saffron);
  display: inline-block;
  padding-bottom: 5px;
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: 7px;
}

footer a {
  color: #c6d5e8;
}

footer a:hover {
  color: var(--saffron);
}

.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.13);
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .78rem;
}

.visitors {
  background: rgba(255,255,255,.08);
  padding: 3px 10px;
  border-radius: 4px;
  font-family: "Courier New",monospace;
  letter-spacing: 2px;
}

.totop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--saffron);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 1.2rem;
  display: none;
  place-items: center;
  box-shadow: var(--shadow);
  z-index: 70;
}

.totop.show {
  display: grid;
}

@media (max-width:1000px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:640px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .totop {
    display: none;
  }
}

.iq-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,25,45,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}

.iq-overlay.open {
  display: flex;
}

.iq-box {
  background: #fff;
  border-radius: 12px;
  width: min(440px,100%);
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  position: relative;
}

.iq-head {
  background: linear-gradient(120deg,#f2542d 0%,#f57c1f 55%,#f2a13a 100%);
  color: #fff;
  padding: 20px 24px;
  border-radius: 12px 12px 0 0;
}

.iq-head h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 4px;
}

.iq-head p {
  font-size: .82rem;
  color: #ffe3d1;
  margin: 0;
}

.iq-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(255,255,255,.2);
  border: 0;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}

.iq-close:hover {
  background: rgba(255,255,255,.35);
}

.iq-form {
  padding: 22px 24px;
}

.iq-field {
  margin-bottom: 14px;
}

.iq-field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
}

.iq-field input,
.iq-field select,
.iq-field textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: .88rem;
  font-family: inherit;
  color: var(--ink);
}

.iq-field input:focus,
.iq-field select:focus,
.iq-field textarea:focus {
  outline: 2px solid var(--saffron);
  outline-offset: 1px;
  border-color: var(--saffron);
}

.iq-field textarea {
  resize: vertical;
  min-height: 72px;
}

.iq-submit {
  width: 100%;
  background: var(--saffron);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 12px;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
}

.iq-submit:hover {
  background: var(--saffron-dark);
}

.iq-note {
  font-size: .72rem;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

.iq-success {
  display: none;
  padding: 36px 24px;
  text-align: center;
}

.iq-success.show {
  display: block;
}

.iq-success .tick {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #e8f8ee;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 14px;
}

.iq-success h3 {
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.iq-success p {
  color: var(--muted);
  font-size: .85rem;
}
