/* ═══════════════════════════════════════════════════════════
   vcarder.css  —  Shared stylesheet for rubrica & contatto
   ═══════════════════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #f0f2f5;
  color: #1a2332;
  font-size: 14px;
  min-height: 100vh;
}

body.xsp {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #f0f2f5;
  color: #1a2332;
  font-size: 14px;
  min-height: 100vh;
}

xspInputFieldRichText {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #f0f2f5;
  color: #1a2332;
  font-size: 14px;
  min-height: 100vh;
}

font {
  font-family: 'Plus Jakarta Sans', sans-serif;
  /* background: #f0f2f5; */
  color: #1a2332;
  font-size: 14px;
  min-height: 100vh;
}

/* ── CSS VARIABLES ── */
:root {
  --accent:      #1a5fa8;
  --accent-soft: #e8f0fb;
  --accent-mid:  #3378c5;
  --border:      #e2e6ed;
  --bg-page:     #f0f2f5;
  --text-main:   #1a2332;
  --text-muted:  #6b7a90;
  --text-light:  #9aa5b8;
  --gold:        #b45309;
  --shadow:      0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.07);
  --shadow-h:    0 4px 12px rgba(26,95,168,.12), 0 8px 32px rgba(0,0,0,.1);
}

/* ══════════════════════════════════════════════════════════
   NAVBAR  (shared)
══════════════════════════════════════════════════════════ */
.vc-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex; align-items: center;
  padding: 0 1.25rem;
  position: sticky; top: 0; z-index: 1030;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.brand {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--text-main);
  flex-shrink: 0; margin-right: 1.5rem;
}
.brand:hover { text-decoration: none; color: var(--text-main); }

.brand-ico {
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}

.brand-img {
  width: auto; height: 36px; border-radius: 8px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden; padding: 5px;
}
.brand-img img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  filter: brightness(0) invert(1);
}

.brand-name { font-weight: 700; font-size: 1rem; }
.brand-sub  { font-weight: 400; color: var(--text-muted); font-size: 0.75rem; margin-left: 3px; }
@media (max-width: 575px) { .brand-sub { display: none; } }

.nav-sep {
  width: 1px; background: var(--border); height: 24px;
  align-self: center; flex-shrink: 0; margin-right: 1rem;
}

.nav-links {
  display: flex; align-items: stretch; height: 56px;
  flex: 1; overflow-x: auto; scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-link-item {
  display: flex; align-items: center; gap: 6px;
  padding: 0 2px; font-size: 0.82rem; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  border-bottom: 2.5px solid transparent;
  white-space: nowrap; flex-shrink: 0;
  transition: color .18s, border-color .18s;
}
.nav-link-item:hover { color: var(--accent); text-decoration: none; }
.nav-link-item.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

.nav-pill {
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.64rem; font-weight: 700; border-radius: 20px; padding: 1px 7px;
}

.nav-actions {
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0; margin-left: auto; padding-left: .75rem;
}

.btn-nav {
  border: 1.5px solid var(--border); background: none;
  color: var(--text-muted); border-radius: 7px;
  padding: 5px 12px; font: inherit; font-size: 0.8rem; font-weight: 500;
  cursor: pointer; transition: all .18s; white-space: nowrap;
}
.btn-nav:hover { border-color: var(--accent); color: var(--accent); }

.btn-nav-primary {
  background: var(--accent); border: 1.5px solid var(--accent); color: #fff;
  border-radius: 7px; padding: 5px 14px;
  font: inherit; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: background .18s; white-space: nowrap;
}
.btn-nav-primary:hover { background: var(--accent-mid); }

@media (max-width: 575px) {
  .btn-nav { display: none; }
  .btn-nav-primary .btn-label { display: none; }
  .btn-nav-primary { padding: 5px 10px; }
}

/* ══════════════════════════════════════════════════════════
   SIDEBAR  (shared — desktop & offcanvas)
══════════════════════════════════════════════════════════ */
.sidebar-desktop {
  width: 210px; flex-shrink: 0;
  background: #fff; border-right: 1px solid var(--border);
  padding: 1.1rem .9rem;
  position: sticky;
  overflow-y: auto;
}
@media (max-width: 767px) { .sidebar-desktop { display: none; } }

.sb-group { margin-bottom: 1.3rem; }

.sb-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-light);
  padding: 0 8px; margin-bottom: .4rem; display: block;
}

/* Filter buttons — rubrica sidebar */
.sb-btn {
  display: flex; align-items: center; width: 100%;
  padding: 6px 10px; border-radius: 7px;
  border: none; background: none; text-align: left;
  font: inherit; font-size: 0.8rem; color: var(--text-muted);
  cursor: pointer; transition: all .15s; gap: 7px; margin-bottom: 1px;
}
.sb-btn:hover  { background: var(--bg-page); color: var(--text-main); }
.sb-btn.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.sb-count {
  margin-left: auto; font-size: 0.65rem; font-weight: 600;
  background: #eaecf0; color: var(--text-muted);
  border-radius: 20px; padding: 1px 6px;
}
.sb-btn.active .sb-count { background: rgba(26,95,168,.15); color: var(--accent); }

/* Context entries — contatto sidebar */
.sb-entry {
  display: flex; align-items: center;
  padding: 5px 10px; border-radius: 7px;
  font-size: 0.8rem; color: var(--text-muted); gap: 7px;
  margin-bottom: 1px;
}
.sb-entry.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.sb-entry i { font-size: .77rem; flex-shrink: 0; }

/* Mini avatar in sidebar colleghi */
.sb-av {
  width: 22px; height: 22px; border-radius: 5px;
  overflow: hidden; flex-shrink: 0; background: #dde3ee;
}
.sb-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ══════════════════════════════════════════════════════════
   OFFCANVAS  (rubrica mobile)
══════════════════════════════════════════════════════════ */
.offcanvas-sidebar {
  position: fixed; top: 0; left: -100%; width: 260px; height: 100%;
  background: #fff; z-index: 1050;
  box-shadow: 4px 0 20px rgba(0,0,0,.12);
  transition: left .28s ease; overflow-y: auto; padding: 1rem;
}
.offcanvas-sidebar.open { left: 0; }

.offcanvas-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.35); z-index: 1040;
}
.offcanvas-backdrop.open { display: block; }

.offcanvas-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.offcanvas-title { font-weight: 700; font-size: 0.9rem; }
.offcanvas-close {
  background: none; border: none; font-size: 1.2rem;
  color: var(--text-muted); cursor: pointer; padding: 0 4px;
}

/* ══════════════════════════════════════════════════════════
   CHIPS & BADGES  (shared)
══════════════════════════════════════════════════════════ */
.chips   { display: flex; gap: 4px; flex-wrap: wrap; }
.chip    { font-size: 0.64rem; font-weight: 600; padding: 2px 7px; border-radius: 20px; }
.ch-blue { background: var(--accent-soft); color: var(--accent); }
.ch-gold { background: #fef3c7; color: var(--gold); }

.vc-bdgs { display: flex; gap: 6px; flex-wrap: wrap; }
.vc-bdg  { display: inline-flex; align-items: center; gap: 5px; border-radius: 7px; padding: 4px 10px; font-size: 0.73rem; font-weight: 600; border: 1px solid transparent; }
.bdg-blue { background: var(--accent-soft); color: var(--accent); border-color: rgba(26,95,168,.15); }
.bdg-gold { background: #fef3c7; color: var(--gold); border-color: rgba(180,83,9,.15); }

/* ══════════════════════════════════════════════════════════
   SECTION HEADING  (shared)
══════════════════════════════════════════════════════════ */
.sec-hd {
  font-size: 0.67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-light); display: flex; align-items: center; gap: 10px;
  margin: 1.2rem 0 .65rem;
}
.sec-hd::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ══════════════════════════════════════════════════════════
   SCROLLBAR  (shared)
══════════════════════════════════════════════════════════ */
::-webkit-scrollbar        { width: 5px; height: 5px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: var(--border); border-radius: 10px; }


/* ╔══════════════════════════════════════════════════════════
   ║  RUBRICA PAGE  (rubrica.html)
   ╚══════════════════════════════════════════════════════════ */

/* Layout */
.dir-wrap { display: flex; min-height: calc(100vh - 56px); }
.dir-main { flex: 1; min-width: 0; padding: 1.2rem 1rem;   margin-bottom: 40px; }

/* Sticky positioning for rubrica sidebar */
.dir-wrap .sidebar-desktop {
  top: 56px;
  height: calc(100vh - 56px);
}

/* Toolbar */
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 1rem; flex-wrap: wrap; }

.search-box {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 7px;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 8px; padding: 7px 12px; transition: border-color .18s;
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,95,168,.08);
}
.search-box input {
  border: none; outline: none; background: none;
  font: inherit; font-size: 0.83rem; color: var(--text-main); flex: 1; min-width: 0;
}
.search-box input::placeholder { color: var(--text-light); }
.search-box i { color: var(--text-light); flex-shrink: 0; }

.btn + .btn {
	margin-left: unset;
}

.btn-filter-mobile {
  display: none;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 8px; padding: 7px 11px;
  font: inherit; font-size: 0.8rem; font-weight: 500;
  color: var(--text-muted); cursor: pointer; transition: all .18s;
  white-space: nowrap; align-items: center; gap: 6px;
}
.btn-filter-mobile:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 767px) { .btn-filter-mobile { display: flex; } }

.view-btns { display: flex; gap: 3px; }
.vbtn {
  width: 32px; height: 32px; border-radius: 7px;
  border: 1.5px solid var(--border); background: none;
  color: var(--text-muted); cursor: pointer; transition: all .15s;
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.vbtn.active, .vbtn:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.res-count { font-size: 0.77rem; color: var(--text-muted); margin-left: auto; white-space: nowrap; }

/* Alpha nav */
.alpha-nav { display: flex; gap: 3px; flex-wrap: wrap; margin-bottom: 1rem; }
@media (max-width: 575px) {
  .alpha-nav { /* flex-wrap: nowrap; */ overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .alpha-nav::-webkit-scrollbar { display: none; }
}
.ab {
  width: 26px; height: 26px; border-radius: 5px; flex-shrink: 0;
  border: 1.5px solid var(--border); background: #fff;
  color: var(--text-light); font: inherit; font-size: 0.69rem; font-weight: 600;
  cursor: pointer; transition: all .15s;
  display: flex; align-items: center; justify-content: center;
}
.ab.has   { color: var(--text-main); }
.ab:hover { border-color: var(--accent); color: var(--accent); }
.ab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Card grid */
.cg { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 10px; }
@media (max-width: 767px) { .cg { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
@media (max-width: 479px) { .cg { grid-template-columns: 1fr; gap: 7px; } }

.p-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 11px; padding: .9rem 1rem .85rem;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: all .2s; text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
}
.p-card:hover {
  border-color: rgba(26,95,168,.3); box-shadow: var(--shadow-h);
  transform: translateY(-2px); text-decoration: none; color: inherit;
}
.p-card::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--accent); opacity: 0; transition: opacity .2s;
}
.p-card:hover::before { opacity: 1; }

.p-av {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  overflow: hidden; 
  /* background: #dde3ee; */
  background: linear-gradient(135deg, var(--accent), #3378c5);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; font-weight: 700; color: #fff;
}

.p-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 479px) { .p-av { width: 40px; height: 40px; } }

.p-inf { flex: 1; min-width: 0; }
.p-nm  { font-size: 0.84rem; font-weight: 700; color: var(--text-main); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-rl  { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 5px; }
.p-rl span { margin-left:5px;}
.p-arr { color: var(--text-light); font-size: 0.8rem; opacity: 0; transition: opacity .2s; flex-shrink: 0; }
.p-card:hover .p-arr { opacity: 1; }
@media (hover: none) { .p-arr { opacity: 1; } }

/* List view */
.cl { display: flex; flex-direction: column; gap: 5px; }
.p-li {
  background: #fff; border: 1px solid var(--border); border-radius: 9px;
  padding: .6rem .9rem; display: flex; align-items: center; gap: 10px;
  cursor: pointer; transition: all .18s; text-decoration: none; color: inherit;
}
.p-li:hover { border-color: rgba(26,95,168,.25); box-shadow: var(--shadow-h); text-decoration: none; color: inherit; }

.li-av {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  overflow: hidden;
  /* background: #dde3ee; */
  background: linear-gradient(135deg, var(--accent), #3378c5);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; font-weight: 700; color: #fff;
}
.li-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

.li-nm   { font-weight: 600; font-size: 0.82rem; flex: 1; min-width: 0; }
.li-rl   { color: var(--text-muted); font-size: 0.76rem; }
.li-acts { display: flex; gap: 8px; flex-shrink: 0; }
.li-ico  { color: var(--text-light); font-size: 0.9rem; transition: color .15s; }
.li-ico:hover { color: var(--accent); }


/* ╔══════════════════════════════════════════════════════════
   ║  CONTATTO PAGE  (contatto.html)
   ╚══════════════════════════════════════════════════════════ */

/* Breadcrumb */
.vc-breadcrumb {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 0 1.25rem; height: 40px;
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--text-muted);
  position: fixed; width: 100%; z-index: 1030;
}
.vc-breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color .15s; }
.vc-breadcrumb a:hover { color: var(--accent); }
.vc-breadcrumb .sep     { color: var(--text-light); }
.vc-breadcrumb .current { color: var(--text-main); font-weight: 500; }

/* Page layout */
.vc-wrap { display: flex; min-height: calc(100vh - 96px); }
.vc-main { flex: 1; min-width: 0; padding: 1.5rem 1rem 3rem; margin-bottom: 40px; margin-top: 30px;}
.vc-page { max-width: 800px; margin: 0 auto; }

/* Sticky positioning for contatto sidebar (navbar 56 + breadcrumb 40 = 96) */
.vc-wrap .sidebar-desktop {
  top: 96px;
  height: calc(100vh - 96px);
}

/* Fade-up animation */
@keyframes up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vc-page > *                 { animation: up .35s ease both; }
.vc-page > *:nth-child(2)    { animation-delay: .07s; }
.vc-page > *:nth-child(3)    { animation-delay: .13s; }
.vc-page > *:nth-child(4)    { animation-delay: .19s; }
.vc-page > *:nth-child(5)    { animation-delay: .24s; }

/* Back button */
.back-row { display: flex; align-items: center; margin-bottom: 1rem; }
.btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 8px; padding: 5px 12px;
  font: inherit; font-size: 0.8rem; font-weight: 500;
  color: var(--text-muted); text-decoration: none; cursor: pointer;
  transition: all .18s;
}
.btn-back:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Hero card */
.vc-hero {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; margin-bottom: 10px; box-shadow: var(--shadow);
}
.vc-banner {
  height: 80px;
  background: linear-gradient(130deg, #0d3d70 0%, #1a5fa8 55%, #1d7cb0 100%);
  position: relative; overflow: hidden;
}
.vc-banner::after {
  content: ''; position: absolute; inset: 0; opacity: .13;
  background-image:
    repeating-linear-gradient(60deg,  #fff 0, #fff 1px, transparent 0, transparent 18px),
    repeating-linear-gradient(-60deg, #fff 0, #fff 1px, transparent 0, transparent 18px);
}
.vc-body    { padding: 0 1.25rem 1.25rem; }
.vc-av-wrap { margin-top: 10px; margin-bottom: 10px; }
.vc-av {
  width: 80px; height: 80px; border-radius: 14px;
  border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.13);
  /* background: #dde3ee; */
  background: linear-gradient(135deg, var(--accent), #3378c5); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; color: #fff;
}
.vc-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

.vc-nm  { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 2px; }
.vc-co  { font-size: 0.77rem; color: var(--text-muted); margin-bottom: 9px; }

/* vCard sections */
.vc-sec { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 10px; box-shadow: var(--shadow); }
.vc-sec-lbl {
  font-size: 0.65rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: .75rem;
  display: flex; align-items: center; gap: 8px;
}
.vc-sec-lbl::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.vc-bio { font-size: 0.83rem; line-height: 1.7; color: var(--text-muted); }

/* Skill tags */
.sk-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: .75rem; }
.sk-tag  {
  font-size: 0.73rem; font-weight: 500; padding: 3px 9px;
  background: var(--bg-page); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text-main); transition: all .15s; cursor: default;
}
.sk-tag:hover { background: var(--accent-soft); border-color: rgba(26,95,168,.2); color: var(--accent); }

/* Contact rows */
.c-row {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px;
  border-radius: 8px; margin-bottom: 3px;
  transition: background .15s; text-decoration: none; color: inherit;
}
.c-row:hover { background: var(--bg-page); text-decoration: none; color: inherit; }
.c-ico  {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
}
.c-meta { flex: 1; min-width: 0; }
.c-lbl  { font-size: 0.65rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: .05em; }
.c-val  { font-size: 0.81rem; font-weight: 500; color: var(--text-main); /*white-space: nowrap; */ overflow: hidden; text-overflow: ellipsis; }
.c-act  {
  font-size: 0.7rem; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 6px; padding: 3px 8px;
  opacity: 0; transition: opacity .15s; flex-shrink: 0;
}
.c-row:hover .c-act { opacity: 1; }
@media (hover: none) { .c-act { opacity: 1; } }

/* QR / share section */
.qr-wrap  { display: flex; gap: 1rem; align-items: flex-start; }
@media (max-width: 400px) {
  .qr-wrap { flex-direction: column; align-items: center; }
  .qr-wrap .qr-col { width: 100%; }
}
.qr-frame     { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 7px; flex-shrink: 0; }
.qr-frame img { display: block; width: 120px; height: 120px; }
.qr-hint      { font-size: 0.78rem; color: var(--text-muted); line-height: 1.55; margin-bottom: .6rem; }

.dl-btn {
  display: flex; align-items: center; gap: 7px; width: 100%;
  border: 1.5px solid var(--border); background: none;
  border-radius: 7px; padding: 6px 11px;
  font: inherit; font-size: 0.78rem; font-weight: 500;
  color: var(--text-main); cursor: pointer; transition: all .15s; margin-bottom: 5px;
}
.dl-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* CTA button */
.vc-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: none; border-radius: 10px;
  padding: 13px; font: inherit; font-size: 0.9rem; font-weight: 700;
  cursor: pointer; width: 100%; transition: background .18s;
  box-shadow: 0 4px 14px rgba(26,95,168,.28);
}
.vc-cta:hover { background: var(--accent-mid); }

/* ══════════════════════════════════════
   PAGE LAYOUT ( request)
══════════════════════════════════════ */
.form-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem 4rem;
  margin-bottom:40px;
}
@media (max-width: 575px) { .form-page { margin-top: 1.25rem; } }

/* Title row */
.page-title-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 1.75rem;
}
.page-title-ico {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.page-title   { font-size: 1.15rem; font-weight: 700; margin: 0; }
.page-subtitle { font-size: 0.78rem; color: var(--text-muted); margin: 0; }

/* ══════════════════════════════════════
   FORM CARD (section wrapper)
══════════════════════════════════════ */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.3rem 1.4rem;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.form-section-lbl {
  font-size: 0.65rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-light);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 1.1rem;
}
.form-section-lbl i { font-size: 0.8rem; }
.form-section-lbl::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ══════════════════════════════════════
   FIELD BASE
══════════════════════════════════════ */
.field-group { margin-bottom: 1rem; }
.field-group:last-child { margin-bottom: 0; }

.field-label {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-main); margin-bottom: 5px;
}
.field-req { color: #d93636; font-size: 0.68rem; }

/* Input + icon wrapper */
.input-wrap { position: relative; }
.input-wrap .inp-ico {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--text-light); font-size: 0.88rem; pointer-events: none;
  transition: color .18s;
}
.input-wrap:focus-within .inp-ico { color: var(--accent); }

/* Base controls */
.vc-input,
.vc-select,
.vc-textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8.5px 12px;
  font: inherit; font-size: 0.84rem;
  color: var(--text-main);
  background: #fff;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.vc-input:focus,
.vc-select:focus,
.vc-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,95,168,.09);
}
.vc-input::placeholder,
.vc-textarea::placeholder { color: var(--text-light); }

/* With left icon */
.input-wrap .vc-input,
.input-wrap .vc-select { padding-left: 34px; }

/* Textarea */
.vc-textarea {
  resize: vertical; min-height: 110px; padding: 10px 12px;
}

/* Validation states */
.vc-input.error,
.vc-select.error,
.vc-textarea.error {
  border-color: #d93636;
  box-shadow: 0 0 0 3px rgba(217,54,54,.08);
}
.field-error {
  font-size: 0.72rem; color: #d93636;
  margin-top: 4px; align-items: center; gap: 4px;
}
.field-error.show { display: flex; }

/* Char counter */
.char-counter {
  font-size: 0.7rem; color: var(--text-light);
  text-align: right; margin-top: 3px;
}
.char-counter.warn { color: #b45309; }

/* Two-column row */
.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 479px) { .field-row-2 { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════
   PRIVACY CHECKBOX
══════════════════════════════════════ */
.privacy-wrap {
  display: flex; align-items: flex-start; gap: 10px;
  padding: .85rem 1rem;
  background: var(--accent-soft);
  border: 1.5px solid rgba(26,95,168,.18);
  border-radius: 9px;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.privacy-wrap:hover { border-color: rgba(26,95,168,.35); }
.privacy-wrap.error-privacy { background: #fff5f5; border-color: #d93636; }

.privacy-wrap .checkbox {
	position: relative;
	display: inline;
}

.privacy-wrap .checkbox input[type="checkbox"] {
	position: relative;
	display: inline;
	margin-right: 10px;
}

.privacy-link {
	display: block;
  margin-left: 10px;
  margin-bottom: 10px;
}

.privacy-text { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.privacy-text a { color: var(--accent); font-weight: 600; text-decoration: none; }
.privacy-text a:hover { text-decoration: underline; }


/* ══════════════════════════════════════
   ACTIONS
══════════════════════════════════════ */
.form-actions {
  display: flex; align-items: center; gap: 10px;
  margin-top: 4px; flex-wrap: wrap;
}
.btn-submit {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; border: none;
  border-radius: 9px; padding: 10px 22px;
  font: inherit; font-size: 0.86rem; font-weight: 700;
  cursor: pointer; transition: background .18s;
  box-shadow: 0 4px 14px rgba(26,95,168,.25);
}
.btn-submit:hover { background: var(--accent-mid); }
.btn-submit:disabled {
  background: var(--text-light); box-shadow: none; cursor: not-allowed;
}

.btn-edit {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; border: none;
  border-radius: 9px; padding: 10px 22px;
  font: inherit; font-size: 0.86rem; font-weight: 700;
  cursor: pointer; transition: background .18s;
  box-shadow: 0 4px 14px rgba(26,95,168,.25);
}

.btn-edit:hover { background: var(--accent-mid); }
.btn-edit:disabled {
  background: var(--text-light); box-shadow: none; cursor: not-allowed;
}

.btn-reset {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 1.5px solid var(--border);
  border-radius: 9px; padding: 9px 18px;
  font: inherit; font-size: 0.84rem; font-weight: 500;
  color: var(--text-muted); cursor: pointer; transition: all .18s;
}
.btn-reset:hover { border-color: var(--accent); color: var(--accent); }

.btn-close {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 1.5px solid var(--border);
  border-radius: 9px; padding: 9px 18px;
  font: inherit; font-size: 0.84rem; font-weight: 500;
  color: var(--text-muted); cursor: pointer; transition: all .18s;
}
.btn-close:hover { border-color: var(--accent); color: var(--accent); }

/* Required legend */
.req-legend {
  font-size: 0.72rem; color: var(--text-muted);
  margin-left: auto;
}
.req-legend span { color: #d93636; }

/* Footer */
.vc-foot {
  text-align: center; font-size: 0.7rem; color: var(--text-main);
  margin-top: 1.1rem; line-height: 1.65;
  
}

.vc-foot-bottom {
	bottom: 0; margin-bottom: 0; position: fixed; right: 0; left: 0; z-index: 1030;
  background: var(--accent-soft);
  border: solid 1px var(--border);
  border-radius: 5px;
}
