/* Contacts page — gated chips + layout (Zookzy teal palette) */

.contacts-page {
  --ct-ink: var(--color-dark, #1e293b);
  --ct-muted: var(--color-gray, #756f6b);
  --ct-line: var(--color-gray-light, #dcd9d6);
  --ct-surface: var(--color-white, #fff);
  --ct-wash: #e8eef2;
  --ct-teal: var(--color-primary, #496275);
  --ct-teal-deep: var(--color-primary-dark, #3a5163);
  --ct-accent: var(--color-accent, #ee6d8a);
}

.rental-container.catalog-page-inner.company-static-page.contacts-page {
  max-width: min(44rem, calc(100vw - 2 * var(--container-px, 1.25rem))) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  box-sizing: border-box;
}

.contacts-page .cp-card {
  background: var(--ct-surface);
  border-radius: 1.15rem;
  padding: clamp(1.25rem, 2.2vw, 1.85rem) clamp(1.15rem, 2.4vw, 1.85rem);
  box-shadow: 0 1px 3px rgba(30, 41, 59, 0.04), 0 10px 36px rgba(73, 98, 117, 0.08);
  border: 1px solid rgba(220, 217, 214, 0.85);
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
  position: relative;
  overflow: hidden;
}

.contacts-page .cp-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ct-teal), var(--ct-accent));
  opacity: 0.9;
}

.ct-block {
  margin: 0;
}

.ct-block--message {
  margin-top: 0.35rem;
}

.contacts-page .cp-page-header {
  padding: 0;
  margin-bottom: 1.35rem;
}

.contacts-page .cp-page-header h1 {
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  font-weight: 800;
  color: var(--ct-ink);
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.contacts-page .cp-page-header .cp-subtitle {
  font-size: 0.98rem;
  color: var(--ct-muted);
  max-width: 34rem;
  line-height: 1.55;
  margin: 0.45rem 0 0;
}

.contacts-page .cp-page-header .cp-divider {
  height: 3px;
  width: 52px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ct-accent), #f59eb0);
  margin-top: 0.75rem;
}

.contacts-page .cp-card > h2,
.contacts-page .ct-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.15rem 0 0.4rem;
  color: var(--ct-ink);
  letter-spacing: -0.01em;
}

.contacts-page .cp-card > p,
.contacts-page .ct-section-lead {
  color: var(--ct-muted);
  line-height: 1.65;
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

/* ── Reveal block ── */
.ct-reveal {
  margin: 0 0 1.5rem;
}

.ct-masks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.ct-mask {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--ct-wash), #f4f1ed);
  border: 1px solid rgba(220, 217, 214, 0.7);
  min-height: 3.1rem;
}

.ct-mask__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  background: rgba(73, 98, 117, 0.1);
  color: var(--ct-teal);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.ct-mask__bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.ct-mask__bar {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(73, 98, 117, 0.14);
  filter: blur(0.5px);
  max-width: 100%;
}

.ct-mask__bar--short {
  width: 55%;
}

.ct-mask__bar--mid {
  width: 78%;
}

.ct-gate {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding: 1.15rem 1.2rem 1.25rem;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(73, 98, 117, 0.1), transparent 55%),
    linear-gradient(180deg, #f7f5f1 0%, #f0eee9 100%);
  border-radius: 1rem;
  border: 1px solid rgba(73, 98, 117, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ct-gate__top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.ct-gate__lock {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  background: var(--ct-teal);
  color: #fff;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(73, 98, 117, 0.28);
}

.ct-gate__copy {
  flex: 1;
  min-width: 0;
}

.ct-gate__title {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  font-weight: 750;
  color: var(--ct-ink);
  letter-spacing: -0.015em;
}

.ct-gate__hint {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ct-muted);
  line-height: 1.5;
}

.ct-gate__err {
  margin: 0;
  font-size: 0.85rem;
  color: #b91c1c;
  line-height: 1.4;
}

.ct-gate__loading {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ct-muted);
}

.ct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  align-self: flex-start;
  padding: 0.7rem 1.35rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: var(--ct-teal);
  color: #fff;
  box-shadow: 0 4px 14px rgba(73, 98, 117, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ct-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 20px rgba(73, 98, 117, 0.3);
  background: var(--ct-teal-deep);
}

.ct-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ct-btn--ghost {
  background: transparent;
  color: var(--ct-teal);
  border: 1.5px solid rgba(73, 98, 117, 0.35);
  box-shadow: none;
}

.ct-btn--ghost:hover {
  background: rgba(73, 98, 117, 0.06);
  box-shadow: none;
}

.ct-captcha-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.15rem;
  animation: ct-fade-in 0.35s ease;
}

.ct-captcha-panel .zc-puzzle {
  max-width: 100%;
}

.ct-captcha-panel .zc-puzzle-stage {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Force-hide even when button rules set display:inline-flex */
.ct-reveal [hidden],
.ct-reveal .u-is-hidden,
.contacts-page [hidden],
.contacts-page .u-is-hidden {
  display: none !important;
}

/* Revealed chips */
.ct-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.7rem;
  margin: 0 0 0.25rem;
}

.ct-chips--revealed {
  animation: ct-fade-up 0.45s ease;
}

.ct-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--ct-wash);
  border-radius: 0.85rem;
  font-size: 0.9rem;
  color: var(--ct-ink);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  border: 1px solid transparent;
}

a.ct-chip:hover {
  background: rgba(73, 98, 117, 0.1);
  border-color: rgba(73, 98, 117, 0.22);
  color: var(--ct-teal-deep);
  transform: translateY(-1px);
}

.ct-chip__icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.75);
}

.ct-chip__label {
  font-weight: 600;
  word-break: break-word;
  line-height: 1.35;
}

/* Auth + form */
.contact-form-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.35rem 0 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ct-line);
  color: var(--ct-ink);
}

.contact-form .form-group {
  margin-bottom: 0.85rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: var(--ct-ink);
}

.contact-form .form-control,
.contact-form select.form-control {
  width: 100%;
  box-sizing: border-box;
}

.contact-form select.form-control {
  cursor: pointer;
}

.contact-form .btn-primary {
  margin-top: 0.35rem;
}

.zc-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form .zc-puzzle {
  margin: 0.75rem 0 0.5rem;
}

.contact-form .zc-puzzle-hint {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 0.4rem;
  line-height: 1.35;
}

.contact-form .zc-puzzle-scroll {
  overflow-x: hidden;
}

.contact-form .zc-puzzle-inner {
  width: 100%;
  max-width: 100%;
}

.contact-form .zc-puzzle-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  line-height: 0;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.contact-form .zc-puzzle-bgimg {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  border-radius: 10px;
}

.contact-form .zc-puzzle-floating {
  position: absolute;
  left: 0;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.contact-form .zc-puzzle-range {
  width: 100%;
  max-width: 100%;
  accent-color: var(--ct-teal);
}

.contact-form .zc-puzzle-hint-foot {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #64748b;
  max-width: 100%;
}

.contact-auth-gate {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: linear-gradient(180deg, #f7f5f1, #f0eee9);
  border-radius: 1rem;
  border: 1px solid rgba(73, 98, 117, 0.12);
  margin-top: 1.15rem;
}

.contact-auth-gate-icon {
  font-size: 1.75rem;
  margin-bottom: 0.55rem;
  display: block;
}

.contact-auth-gate h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--ct-ink);
}

.contact-auth-gate p {
  font-size: 0.88rem;
  color: var(--ct-muted);
  max-width: 420px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

.contact-auth-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.contact-auth-btn--primary {
  background: var(--ct-teal);
  color: #fff;
  box-shadow: 0 4px 14px rgba(73, 98, 117, 0.2);
}

.contact-auth-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(73, 98, 117, 0.3);
}

.contact-auth-btn--secondary {
  background: #fff;
  color: var(--ct-teal);
  border: 2px solid var(--ct-teal);
}

.contact-auth-btn--secondary:hover {
  background: rgba(73, 98, 117, 0.06);
  transform: translateY(-2px);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.contacts-page .gov-partnership-banner {
  margin: 0 0 1.25rem;
}

.cp-ad-wrap {
  width: 100%;
  background: #f0eee9;
}

.cp-ad-inner {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: clamp(0.5rem, 1.5vw, 1rem) 24px;
  box-sizing: border-box;
}

@keyframes ct-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ct-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .contact-auth-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .ct-btn {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .contacts-page .contact-form input.form-control,
  .contacts-page .contact-form select.form-control,
  .contacts-page .contact-form textarea.form-control {
    padding: 0.5rem 0.65rem !important;
    font-size: 0.9375rem !important;
    min-height: 40px !important;
    border-radius: 0.5rem !important;
  }

  .contacts-page .contact-form textarea.form-control {
    min-height: 7.5rem;
  }

  .contacts-page .contact-form .btn-primary {
    padding: 0.5rem 1.15rem !important;
    font-size: 0.9375rem !important;
  }
}

/* Legacy class aliases used by older markup / JS */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.contact-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f0eee9;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  color: var(--ct-ink);
  text-decoration: none;
}
