/*
 * contact-form.css - product contact pages (products/*-buy-rent.html, *-request.html, request.html).
 * Linked last in <head> by fix-37-contact-form-tabs.js so it wins over each page's inline <style>.
 *
 *  1. Purchase / Rental switch is a row of TABS above the form panel: no border on a tab, the active
 *     tab has the panel's own background and overlaps the panel's top edge by 1px (one shared edge),
 *     inactive tabs are dimmed. Pages without a rental option have no tabs at all.
 *  2. HubSpot's multi-column fieldsets (form-columns-2 / -3) sit side by side on desktop and stack at
 *     <= 768px. (tvu-v5-redesign.css has the same rule for .tvu-hs-form; repeated here with
 *     !important because some pages carry older inline form CSS.)
 *  3. .cf-lead / .cf-top: the intro block used by the Transceiver page so its form sits beside the
 *     title, above the fold, like every other contact page.
 */
:root { --cf-panel: #101214; --cf-green: #2AC93A; }

/* ---- 1. tabs + panel ---- */
.form-tabs {
  display: flex !important; flex-direction: row !important; align-items: flex-end;
  gap: 2px; margin: 0 !important; padding: 0 !important; border: 0 !important;
  position: relative; z-index: 2;
}
.form-tabs .form-tab {
  flex: 0 0 auto !important; width: auto !important; max-width: none !important;
  margin: 0; padding: 0.8rem 1.6rem;
  border: 0 !important; border-radius: 6px 6px 0 0 !important; box-shadow: none !important;
  background: rgba(255,255,255,0.04) !important; color: #9aa3b8 !important;
  font-family: var(--font-body, 'Open Sans', sans-serif); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0 !important; text-transform: none !important; line-height: 1.3; text-align: center;
  cursor: pointer; transition: color 0.2s, background 0.2s;
}
.form-tabs .form-tab:hover:not(.active) { background: rgba(255,255,255,0.08) !important; color: #eef0f6 !important; }
.form-tabs .form-tab.active {
  position: relative; z-index: 3;
  margin-bottom: -1px; padding-bottom: calc(0.8rem + 1px);
  background: var(--cf-panel) !important; color: var(--cf-green) !important;
  box-shadow: inset 0 2px 0 var(--cf-green) !important;
}
.form-tabs:focus-within { outline: none; }
.form-tabs .form-tab:focus-visible { outline: 2px solid var(--cf-green); outline-offset: -2px; }

/* the panel under the tabs */
.form-tabs + .form-card,
.form-tabs + .cf-panel,
.form-card.cf-panel {
  background: var(--cf-panel) !important;
  border-top-left-radius: 0 !important;
}
.form-tabs + .form-card::before { display: none !important; }
.cf-panel {
  background: var(--cf-panel); border: 1px solid rgba(42,201,58,0.12); border-radius: 6px;
  padding: 2rem; position: relative;
}
.form-tabs + .form-card, .form-tabs + .cf-panel { position: relative; z-index: 1; }

/* ---- 2. HubSpot columns ---- */
#hsForm .hs-form fieldset { max-width: 100% !important; }
#hsForm .hs-form fieldset.form-columns-2,
#hsForm .hs-form fieldset.form-columns-3 { display: grid !important; gap: 0 0.75rem; }
#hsForm .hs-form fieldset.form-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
#hsForm .hs-form fieldset.form-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
#hsForm .hs-form fieldset.form-columns-2 > .hs-form-field,
#hsForm .hs-form fieldset.form-columns-3 > .hs-form-field { width: 100% !important; float: none !important; }
#hsForm .hs-form fieldset .input { margin-right: 0 !important; }

/* ---- 3. Transceiver page intro (left column) ---- */
.main-content.cf-top { padding-top: 100px; }
.cf-lead { margin-bottom: 1.75rem; }
.cf-lead .breadcrumb { font-size: 0.72rem; color: var(--text-dim, #9aa3b8); margin-bottom: 1rem; }
.cf-lead .breadcrumb a { color: var(--text-dim, #9aa3b8); }
.cf-lead .breadcrumb a:hover { color: var(--cf-green); }
.cf-lead .breadcrumb .sep { margin: 0 0.4rem; opacity: 0.4; }
.cf-lead h1 { font-family: var(--font-heading, 'Open Sans', sans-serif); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; line-height: 1.2; margin-bottom: 0.75rem; }
.cf-lead h1 .accent { color: var(--cf-green); }
.cf-lead .hero-desc { font-size: 1rem; color: var(--text-secondary, #c7cbd4); line-height: 1.75; max-width: 520px; }

@media (max-width: 1024px) {
  .main-content.cf-top { padding-top: 96px; }
}
@media (max-width: 768px) {
  .form-tabs .form-tab { flex: 1 1 0 !important; padding: 0.75rem 0.5rem; font-size: 0.8rem; }
  .cf-panel { padding: 1.5rem; }
  #hsForm .hs-form fieldset.form-columns-2,
  #hsForm .hs-form fieldset.form-columns-3 { grid-template-columns: 1fr !important; }
}
