:root{
  --ve-primary:#348fde;
  --ve-primary-dark:#246fae;
  --ve-primary-soft:#eef6ff;
  --ve-text:#16212f;
  --ve-muted:#667688;
  --ve-border:#dbe5f0;
  --ve-bg:#f6f8fb;
  --ve-card:#ffffff;
  --ve-radius:18px;
  --ve-shadow:0 10px 30px rgba(18,33,55,.08);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Arial, Helvetica, sans-serif;
  background:var(--ve-bg);
  color:var(--ve-text);
  line-height:1.45;
}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
input,button{font:inherit}
button{cursor:pointer}

.ve-wrap{
  width:min(1240px, calc(100% - 32px));
  margin:0 auto;
}

.ve-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(219,229,240,.9);
}
.ve-header__row{
  display:grid;
  grid-template-columns:220px 1fr auto;
  gap:16px;
  align-items:center;
  padding:14px 0;
}
.ve-logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  font-size:24px;
}
.ve-logo__mark{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, var(--ve-primary), #61b1f2);
  color:#fff;
  box-shadow:var(--ve-shadow);
}
.ve-header__search{
  display:flex;
  background:#fff;
  border:1px solid var(--ve-border);
  border-radius:999px;
  overflow:hidden;
  box-shadow:0 6px 20px rgba(12,24,40,.05);
}
.ve-header__search input{
  flex:1;
  padding:14px 18px;
  border:0;
  background:transparent;
  outline:none;
}
.ve-header__search button,
.ve-post-btn,
.ve-hero__search button,
.ve-filters button,
.ve-reveal-phone{
  border:0;
  background:var(--ve-primary);
  color:#fff;
  font-weight:700;
  border-radius:14px;
  transition:.2s ease;
}
.ve-header__search button{
  margin:6px;
  padding:0 18px;
  border-radius:999px;
}
.ve-header__search button:hover,
.ve-post-btn:hover,
.ve-hero__search button:hover,
.ve-filters button:hover,
.ve-reveal-phone:hover{
  background:var(--ve-primary-dark);
}
.ve-post-btn{
  padding:14px 18px;
  white-space:nowrap;
  box-shadow:var(--ve-shadow);
}

.ve-hero{padding:34px 0 10px}
.ve-hero__inner{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:28px;
  align-items:stretch;
}
.ve-hero__content,.ve-hero__card{
  background:linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border:1px solid var(--ve-border);
  border-radius:30px;
  box-shadow:var(--ve-shadow);
}
.ve-hero__content{padding:40px}
.ve-kicker{
  display:inline-flex;
  padding:8px 12px;
  background:var(--ve-primary-soft);
  color:var(--ve-primary-dark);
  border-radius:999px;
  font-size:14px;
  font-weight:700;
  margin-bottom:14px;
}
.ve-hero h1{
  margin:0 0 14px;
  font-size:48px;
  line-height:1.05;
  letter-spacing:-1px;
}
.ve-hero p{
  margin:0 0 22px;
  color:var(--ve-muted);
  font-size:18px;
}
.ve-hero__search{
  display:flex;
  gap:12px;
}
.ve-hero__search input{
  flex:1;
  padding:16px 18px;
  border-radius:16px;
  border:1px solid var(--ve-border);
  outline:none;
  background:#fff;
}
.ve-hero__search button{padding:0 22px}
.ve-hero__card{
  padding:28px;
  display:grid;
  gap:14px;
  align-content:center;
}
.ve-mini-stat{
  padding:18px;
  border-radius:18px;
  background:#fff;
  border:1px solid var(--ve-border);
}
.ve-mini-stat strong{
  display:block;
  margin-bottom:6px;
  font-size:18px;
}
.ve-mini-stat span{color:var(--ve-muted)}

.ve-section{padding:18px 0 10px}
.ve-section--soft{padding:22px 0}
.ve-section__head{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:end;
  margin-bottom:18px;
}
.ve-section__head h2{margin:0;font-size:30px}
.ve-section__head p{margin:0;color:var(--ve-muted)}

.ve-category-grid{
  display:grid;
  grid-template-columns:repeat(5, minmax(0, 1fr));
  gap:16px;
}
.ve-category-card{
  background:#fff;
  border:1px solid var(--ve-border);
  border-radius:24px;
  padding:22px 18px;
  min-height:148px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:12px;
  box-shadow:var(--ve-shadow);
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ve-category-card:hover{
  transform:translateY(-3px);
  border-color:#b9d7f2;
  box-shadow:0 16px 34px rgba(30,60,100,.10);
}
.ve-category-card__icon{
  width:56px;
  height:56px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:var(--ve-primary-soft);
  font-size:28px;
}
.ve-category-card__name{
  font-weight:700;
  font-size:18px;
}

.ve-listings-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:18px;
}
.ve-card{
  background:var(--ve-card);
  border:1px solid var(--ve-border);
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--ve-shadow);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ve-card:hover{
  transform:translateY(-3px);
  border-color:#c5dff7;
  box-shadow:0 18px 34px rgba(24,40,70,.10);
}
.ve-card__thumb{
  aspect-ratio:4/3;
  background:#eef3f8;
  display:block;
  overflow:hidden;
}
.ve-card__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.ve-card__noimg{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  color:#7b8897;
  font-weight:700;
}
.ve-card__body{padding:16px}
.ve-card__title{
  display:block;
  min-height:48px;
  font-weight:700;
  margin-bottom:8px;
}
.ve-card__price{
  font-size:24px;
  font-weight:800;
  margin-bottom:10px;
}
.ve-card__meta{
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:var(--ve-muted);
  font-size:14px;
}

.ve-search-head{padding:28px 0 8px}
.ve-search-head h1{margin:0 0 6px;font-size:34px}
.ve-search-head p{margin:0;color:var(--ve-muted)}
.ve-filters{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr auto;
  gap:12px;
  padding:14px;
  background:#fff;
  border:1px solid var(--ve-border);
  border-radius:24px;
  box-shadow:var(--ve-shadow);
  margin-bottom:16px;
}
.ve-filters input{
  min-width:0;
  padding:14px 16px;
  border:1px solid var(--ve-border);
  border-radius:14px;
  outline:none;
  background:#fff;
}
.ve-filters button{padding:0 18px}
.ve-results-meta{color:var(--ve-muted);margin:10px 0 18px}

.ve-item{
  display:grid;
  grid-template-columns:1.3fr .7fr;
  gap:22px;
  align-items:start;
}
.ve-item__gallery,.ve-item__summary,.ve-item__description{
  background:#fff;
  border:1px solid var(--ve-border);
  border-radius:26px;
  box-shadow:var(--ve-shadow);
}
.ve-item__gallery{padding:18px}
.ve-item__mainphoto{
  border-radius:20px;
  overflow:hidden;
  background:#eef3f8;
  min-height:400px;
}
.ve-item__mainphoto img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.ve-item__mainphoto--empty{
  display:grid;
  place-items:center;
  color:var(--ve-muted);
}
.ve-item__summary{
  padding:24px;
  position:sticky;
  top:88px;
}
.ve-chip{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  background:var(--ve-primary-soft);
  color:var(--ve-primary-dark);
  font-weight:700;
  font-size:13px;
}
.ve-item__summary h1{
  font-size:34px;
  line-height:1.1;
  margin:14px 0 10px;
}
.ve-item__price{
  font-size:36px;
  font-weight:800;
  margin-bottom:16px;
}
.ve-item__facts{
  margin:0 0 18px;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
  color:var(--ve-muted);
}
.ve-reveal-phone{
  display:block;
  width:100%;
  text-align:center;
  padding:15px 18px;
  margin-top:10px;
}
.ve-item__description{padding:24px}
.ve-item__description h2{margin:0 0 14px;font-size:28px}
.ve-richtext{color:#344354}

.ve-empty{
  padding:24px;
  border-radius:20px;
  border:1px dashed #b9cde3;
  background:#fff;
  color:var(--ve-muted);
}

.ve-footer{
  margin-top:28px;
  padding:30px 0 16px;
  border-top:1px solid var(--ve-border);
  background:#fff;
}
.ve-footer__grid{
  display:grid;
  grid-template-columns:1.2fr .8fr .9fr;
  gap:22px;
}
.ve-footer__title{
  font-size:18px;
  font-weight:800;
  margin-bottom:10px;
}
.ve-footer__links{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:8px;
}
.ve-footer__bottom{
  border-top:1px solid var(--ve-border);
  margin-top:18px;
  padding-top:16px;
  color:var(--ve-muted);
}

.ve-card--promoted{
  border:2px solid #8dc3f0;
  background:#f4faff;
}
.badge-promoted{background:#348fde;color:#fff}
.badge-urgent{background:#d93025;color:#fff}
.badge-highlighted{background:#fff8cc;color:#6b5d00}
.badge-pinned{background:#f6efe1;color:#7a5d20}

@media (max-width: 1100px){
  .ve-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ve-listings-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ve-hero__inner,.ve-item{grid-template-columns:1fr}
  .ve-item__summary{position:static}
}
@media (max-width: 820px){
  .ve-header__row{grid-template-columns:1fr;gap:12px}
  .ve-hero h1{font-size:36px}
  .ve-hero__search{flex-direction:column}
  .ve-filters{grid-template-columns:1fr 1fr}
  .ve-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ve-listings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ve-footer__grid{grid-template-columns:1fr}
}
@media (max-width: 560px){
  .ve-wrap{width:min(100% - 24px, 1240px)}
  .ve-category-grid,.ve-listings-grid,.ve-filters{grid-template-columns:1fr}
  .ve-card__meta{flex-direction:column}
  .ve-item__summary h1{font-size:28px}
  .ve-item__price{font-size:30px}
  .ve-hero__content,.ve-hero__card,.ve-item__summary,.ve-item__description,.ve-item__gallery{padding:18px}
}


.ve-post-hero{padding:26px 0 6px}
.ve-post-hero h1{margin:10px 0 8px;font-size:42px}
.ve-post-hero p{margin:0;color:var(--ve-muted)}
.ve-post-shell{display:grid;gap:18px}
.ve-post-progress,.ve-post-form-shell{background:#fff;border:1px solid var(--ve-border);border-radius:26px;box-shadow:var(--ve-shadow);padding:24px}
.ve-post-progress__top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}
.ve-post-progress__top span{color:var(--ve-muted)}
.ve-breadcrumb{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.ve-breadcrumb span{padding:8px 12px;border-radius:999px;background:#f2f6fb;color:#516171;font-size:14px}
.ve-breadcrumb .is-current{background:var(--ve-primary-soft);color:var(--ve-primary-dark);font-weight:700}
.ve-step-panel{display:none}.ve-step-panel.is-active{display:block}
.ve-step-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.ve-step-card{border:1px solid var(--ve-border);background:#fff;border-radius:22px;min-height:130px;padding:18px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px;transition:.18s ease;box-shadow:0 8px 18px rgba(18,33,55,.05)}
.ve-step-card:hover,.ve-step-card.is-selected{transform:translateY(-2px);border-color:#9fcbef;background:#f7fbff;box-shadow:0 16px 28px rgba(18,33,55,.08)}
.ve-step-card__icon{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;background:var(--ve-primary-soft);font-size:28px}
.ve-step-card__name{text-align:left;font-weight:700;font-size:18px}
.ve-step-actions{display:flex;justify-content:space-between;gap:12px;margin-top:18px}
.ve-primary-btn,.ve-secondary-outline{border-radius:14px;padding:14px 18px;font-weight:700;border:1px solid transparent}
.ve-primary-btn{background:var(--ve-primary);color:#fff}
.ve-secondary-outline{background:#fff;color:var(--ve-primary-dark);border-color:#b8d4ef}
.ve-post-form-head{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:14px}
.ve-post-note{border:1px dashed #bfd7ed;background:#f7fbff;color:#496174;padding:14px 16px;border-radius:16px;margin-bottom:16px}
.ve-post-form{display:grid;gap:18px}
.ve-form-block{border:1px solid var(--ve-border);border-radius:22px;padding:20px;background:#fcfdff}
.ve-form-block h2{margin:0 0 14px;font-size:24px}
.ve-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ve-post-form label{display:grid;gap:8px}.ve-post-form label span{font-weight:700;color:#334455}
.ve-post-form input,.ve-post-form select,.ve-post-form textarea{width:100%;padding:14px 15px;border:1px solid var(--ve-border);border-radius:14px;background:#fff;outline:none}
.ve-form-footer{display:flex;justify-content:flex-end}
@media (max-width: 900px){.ve-step-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ve-form-grid{grid-template-columns:1fr}}
@media (max-width: 560px){.ve-post-progress__top,.ve-post-form-head,.ve-step-actions{flex-direction:column;align-items:stretch}.ve-step-grid{grid-template-columns:1fr}}
/* ===== Publish form polish ===== */

.ve-osclass-form input[type="text"],
.ve-osclass-form input[type="number"],
.ve-osclass-form input[type="email"],
.ve-osclass-form input[type="tel"],
.ve-osclass-form input[type="password"],
.ve-osclass-form textarea,
.ve-osclass-form select {
  width: 100% !important;
  min-height: 52px;
  padding: 14px 16px !important;
  border: 1px solid var(--ve-border) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--ve-text) !important;
  box-sizing: border-box !important;
  outline: none;
  box-shadow: none !important;
}

.ve-osclass-form textarea {
  min-height: 170px !important;
  resize: vertical;
  line-height: 1.5;
}

.ve-osclass-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.ve-osclass-form label {
  display: block;
  width: 100%;
}

.ve-osclass-form .ve-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ve-osclass-form .ve-field > span {
  font-weight: 700;
  color: #334455;
  font-size: 14px;
}

.ve-osclass-form .ve-field--full {
  grid-column: 1 / -1;
}

.ve-osclass-form .ve-hook-box {
  display: grid;
  gap: 14px;
}

.ve-osclass-form .ve-hook-box label {
  font-weight: 700;
  color: #334455;
  margin-bottom: 6px;
}

.ve-osclass-form .ve-hook-box input,
.ve-osclass-form .ve-hook-box select,
.ve-osclass-form .ve-hook-box textarea {
  margin-top: 6px;
}

.ve-osclass-form .ve-hook-box > div,
.ve-osclass-form .ve-hook-box > p,
.ve-osclass-form .ve-hook-box > label {
  margin: 0;
}

.ve-osclass-form .ve-hook-box table,
.ve-osclass-form .ve-hook-box tbody,
.ve-osclass-form .ve-hook-box tr,
.ve-osclass-form .ve-hook-box td {
  display: block;
  width: 100%;
}

.ve-osclass-form .ve-hook-box tr {
  margin-bottom: 14px;
}

.ve-osclass-form .ve-hook-box td {
  padding: 0 !important;
  border: 0 !important;
}

.ve-osclass-form .ve-hook-box td:first-child {
  margin-bottom: 6px;
  font-weight: 700;
  color: #334455;
}

.ve-osclass-form .ve-inline-note {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f7fbff;
  border: 1px dashed #bfd7ed;
  color: #496174;
}

.ve-osclass-form .ve-check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.ve-osclass-form .ve-check input[type="checkbox"] {
  width: auto !important;
  min-height: auto !important;
  padding: 0 !important;
}

.ve-osclass-form #photos {
  display: grid;
  gap: 12px;
}

.ve-osclass-form input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 1px dashed #bfd7ed;
  border-radius: 14px;
  background: #fff;
}

.ve-osclass-form .qq-upload-button,
.ve-osclass-form .qq-upload-drop-area {
  border-radius: 14px !important;
}

.ve-osclass-form .ve-form-grid {
  align-items: start;
}

.ve-osclass-form .ve-form-block {
  overflow: hidden;
}

.ve-osclass-form .ve-form-footer {
  margin-top: 8px;
}

.ve-osclass-form .ve-primary-btn {
  min-width: 220px;
}

@media (max-width: 900px) {
  .ve-osclass-form .ve-field--full {
    grid-column: auto;
  }
}
/* =========================
   PUBLISH PAGE PREMIUM UI
========================= */

.ve-post-hero {
  padding: 34px 0 14px;
}

.ve-post-hero h1 {
  margin: 12px 0 10px;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -1.6px;
}

.ve-post-hero p {
  margin: 0;
  max-width: 920px;
  font-size: 18px;
  color: var(--ve-muted);
}

.ve-post-shell {
  display: grid;
  gap: 20px;
}

.ve-post-progress,
.ve-post-form-shell {
  background: #fff;
  border: 1px solid var(--ve-border);
  border-radius: 28px;
  box-shadow: 0 14px 34px rgba(18, 33, 55, 0.06);
  padding: 22px;
}

.ve-post-progress__top,
.ve-post-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.ve-post-progress__top strong,
.ve-post-form-head strong {
  font-size: 24px;
  line-height: 1.1;
}

.ve-post-progress__top span {
  color: var(--ve-muted);
  font-size: 15px;
}

/* breadcrumb */
.ve-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.ve-breadcrumb span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f3f7fc;
  color: #4f6173;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #e1ebf4;
}

.ve-breadcrumb .is-current {
  background: var(--ve-primary-soft);
  color: var(--ve-primary-dark);
  border-color: #cfe4f7;
}

/* category cards */
.ve-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ve-step-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 150px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid #d6e4f1;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 8px 22px rgba(18, 33, 55, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  color: var(--ve-text);
}

.ve-step-card:hover {
  transform: translateY(-3px);
  border-color: #9fcbef;
  box-shadow: 0 18px 34px rgba(18, 33, 55, 0.09);
}

.ve-step-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--ve-primary-soft);
  font-size: 30px;
  margin-bottom: 16px;
}

.ve-step-card__name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

/* action buttons */
.ve-step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  gap: 12px;
}

.ve-secondary-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid #bfd7ed;
  background: #fff;
  color: var(--ve-primary-dark);
  font-weight: 800;
  text-decoration: none;
  transition: 0.18s ease;
}

.ve-secondary-outline:hover {
  background: #f7fbff;
  border-color: #9fcbef;
}

.ve-form-footer .ve-primary-btn,
.ve-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  background: var(--ve-primary);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(52, 143, 222, 0.22);
  transition: 0.18s ease;
}

.ve-form-footer .ve-primary-btn:hover,
.ve-primary-btn:hover {
  background: var(--ve-primary-dark);
  transform: translateY(-1px);
}

/* selected category box */
#veChosenCategory {
  margin-top: 6px;
  color: var(--ve-muted);
  font-size: 15px;
  font-weight: 600;
}

/* blocks */
.ve-form-block {
  border: 1px solid var(--ve-border);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  padding: 20px;
  margin-bottom: 16px;
}

.ve-form-block h2 {
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.6px;
}

.ve-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.ve-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ve-field > span {
  font-size: 14px;
  font-weight: 800;
  color: #334455;
}

.ve-field--full {
  grid-column: 1 / -1;
}

/* form controls */
.ve-osclass-form input[type="text"],
.ve-osclass-form input[type="number"],
.ve-osclass-form input[type="email"],
.ve-osclass-form input[type="tel"],
.ve-osclass-form input[type="password"],
.ve-osclass-form textarea,
.ve-osclass-form select {
  width: 100% !important;
  min-height: 54px;
  padding: 14px 16px !important;
  border: 1px solid #d6e4f1 !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: var(--ve-text) !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ve-osclass-form textarea {
  min-height: 190px !important;
  resize: vertical;
  line-height: 1.55;
  padding-top: 16px !important;
}

.ve-osclass-form input:focus,
.ve-osclass-form textarea:focus,
.ve-osclass-form select:focus {
  border-color: #8dc3f0 !important;
  box-shadow: 0 0 0 4px rgba(52, 143, 222, 0.08) !important;
}

/* custom fields from admin */
.ve-hook-box {
  display: grid;
  gap: 14px;
}

.ve-hook-box table,
.ve-hook-box tbody,
.ve-hook-box tr,
.ve-hook-box td {
  display: block;
  width: 100%;
}

.ve-hook-box tr {
  margin-bottom: 14px;
}

.ve-hook-box td {
  padding: 0 !important;
  border: 0 !important;
}

.ve-hook-box td:first-child {
  margin-bottom: 8px;
  color: #334455;
  font-size: 14px;
  font-weight: 800;
}

.ve-hook-box label {
  font-weight: 800;
  color: #334455;
}

.ve-hook-box input,
.ve-hook-box textarea,
.ve-hook-box select {
  margin-top: 6px;
}

/* location spacing */
.ve-inline-note {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7fbff;
  border: 1px dashed #bfd7ed;
  color: #496174;
  font-size: 14px;
}

/* checkbox */
.ve-check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.ve-check input[type="checkbox"] {
  width: auto !important;
  min-height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* upload area */
.ve-upload-modern {
  border: 2px dashed #c6dbef;
  border-radius: 22px;
  padding: 26px;
  background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
}

.ve-upload-modern__title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.ve-upload-modern__text {
  color: var(--ve-muted);
  margin-bottom: 14px;
}

.ve-osclass-form input[type="file"] {
  width: 100%;
  padding: 14px;
  border: 1px dashed #bfd7ed;
  border-radius: 16px;
  background: #fff;
}

.ve-upload-tip {
  margin-top: 12px;
  color: var(--ve-muted);
  font-size: 13px;
}

/* footer spacing on publish page */
.ve-form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

/* responsive */
@media (max-width: 1100px) {
  .ve-step-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .ve-post-hero h1 {
    font-size: 42px;
  }

  .ve-step-grid,
  .ve-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ve-post-progress__top,
  .ve-post-form-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .ve-step-grid,
  .ve-form-grid {
    grid-template-columns: 1fr;
  }

  .ve-post-hero h1 {
    font-size: 34px;
  }

  .ve-step-card {
    min-height: 128px;
  }

  .ve-field--full {
    grid-column: auto;
  }

  .ve-form-footer {
    justify-content: stretch;
  }

  .ve-form-footer .ve-primary-btn {
    width: 100%;
  }
}
/* =========================
   PUBLISH PAGE PREMIUM UI
========================= */

.ve-post-hero {
  padding: 34px 0 14px;
}

.ve-post-hero h1 {
  margin: 12px 0 10px;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -1.6px;
}

.ve-post-hero p {
  margin: 0;
  max-width: 920px;
  font-size: 18px;
  color: var(--ve-muted);
}

.ve-post-shell {
  display: grid;
  gap: 20px;
}

.ve-post-progress,
.ve-post-form-shell {
  background: #fff;
  border: 1px solid var(--ve-border);
  border-radius: 28px;
  box-shadow: 0 14px 34px rgba(18, 33, 55, 0.06);
  padding: 22px;
}

.ve-post-progress__top,
.ve-post-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.ve-post-progress__top strong,
.ve-post-form-head strong {
  font-size: 24px;
  line-height: 1.1;
}

.ve-post-progress__top span {
  color: var(--ve-muted);
  font-size: 15px;
}

/* breadcrumb */
.ve-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.ve-breadcrumb span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f3f7fc;
  color: #4f6173;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #e1ebf4;
}

.ve-breadcrumb .is-current {
  background: var(--ve-primary-soft);
  color: var(--ve-primary-dark);
  border-color: #cfe4f7;
}

/* category cards */
.ve-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ve-step-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 150px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid #d6e4f1;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 8px 22px rgba(18, 33, 55, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  color: var(--ve-text);
}

.ve-step-card:hover {
  transform: translateY(-3px);
  border-color: #9fcbef;
  box-shadow: 0 18px 34px rgba(18, 33, 55, 0.09);
}

.ve-step-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--ve-primary-soft);
  font-size: 30px;
  margin-bottom: 16px;
}

.ve-step-card__name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

/* action buttons */
.ve-step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  gap: 12px;
}

.ve-secondary-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid #bfd7ed;
  background: #fff;
  color: var(--ve-primary-dark);
  font-weight: 800;
  text-decoration: none;
  transition: 0.18s ease;
}

.ve-secondary-outline:hover {
  background: #f7fbff;
  border-color: #9fcbef;
}

.ve-form-footer .ve-primary-btn,
.ve-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  background: var(--ve-primary);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(52, 143, 222, 0.22);
  transition: 0.18s ease;
}

.ve-form-footer .ve-primary-btn:hover,
.ve-primary-btn:hover {
  background: var(--ve-primary-dark);
  transform: translateY(-1px);
}

/* selected category box */
#veChosenCategory {
  margin-top: 6px;
  color: var(--ve-muted);
  font-size: 15px;
  font-weight: 600;
}

/* blocks */
.ve-form-block {
  border: 1px solid var(--ve-border);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  padding: 20px;
  margin-bottom: 16px;
}

.ve-form-block h2 {
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.6px;
}

.ve-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.ve-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ve-field > span {
  font-size: 14px;
  font-weight: 800;
  color: #334455;
}

.ve-field--full {
  grid-column: 1 / -1;
}

/* form controls */
.ve-osclass-form input[type="text"],
.ve-osclass-form input[type="number"],
.ve-osclass-form input[type="email"],
.ve-osclass-form input[type="tel"],
.ve-osclass-form input[type="password"],
.ve-osclass-form textarea,
.ve-osclass-form select {
  width: 100% !important;
  min-height: 54px;
  padding: 14px 16px !important;
  border: 1px solid #d6e4f1 !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: var(--ve-text) !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ve-osclass-form textarea {
  min-height: 190px !important;
  resize: vertical;
  line-height: 1.55;
  padding-top: 16px !important;
}

.ve-osclass-form input:focus,
.ve-osclass-form textarea:focus,
.ve-osclass-form select:focus {
  border-color: #8dc3f0 !important;
  box-shadow: 0 0 0 4px rgba(52, 143, 222, 0.08) !important;
}

/* custom fields from admin */
.ve-hook-box {
  display: grid;
  gap: 14px;
}

.ve-hook-box table,
.ve-hook-box tbody,
.ve-hook-box tr,
.ve-hook-box td {
  display: block;
  width: 100%;
}

.ve-hook-box tr {
  margin-bottom: 14px;
}

.ve-hook-box td {
  padding: 0 !important;
  border: 0 !important;
}

.ve-hook-box td:first-child {
  margin-bottom: 8px;
  color: #334455;
  font-size: 14px;
  font-weight: 800;
}

.ve-hook-box label {
  font-weight: 800;
  color: #334455;
}

.ve-hook-box input,
.ve-hook-box textarea,
.ve-hook-box select {
  margin-top: 6px;
}

/* location spacing */
.ve-inline-note {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7fbff;
  border: 1px dashed #bfd7ed;
  color: #496174;
  font-size: 14px;
}

/* checkbox */
.ve-check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.ve-check input[type="checkbox"] {
  width: auto !important;
  min-height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* upload area */
.ve-upload-modern {
  border: 2px dashed #c6dbef;
  border-radius: 22px;
  padding: 26px;
  background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
}

.ve-upload-modern__title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.ve-upload-modern__text {
  color: var(--ve-muted);
  margin-bottom: 14px;
}

.ve-osclass-form input[type="file"] {
  width: 100%;
  padding: 14px;
  border: 1px dashed #bfd7ed;
  border-radius: 16px;
  background: #fff;
}

.ve-upload-tip {
  margin-top: 12px;
  color: var(--ve-muted);
  font-size: 13px;
}

/* footer spacing on publish page */
.ve-form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

/* responsive */
@media (max-width: 1100px) {
  .ve-step-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .ve-post-hero h1 {
    font-size: 42px;
  }

  .ve-step-grid,
  .ve-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ve-post-progress__top,
  .ve-post-form-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .ve-step-grid,
  .ve-form-grid {
    grid-template-columns: 1fr;
  }

  .ve-post-hero h1 {
    font-size: 34px;
  }

  .ve-step-card {
    min-height: 128px;
  }

  .ve-field--full {
    grid-column: auto;
  }
/* =========================
   FORM FIX - VandElectro
========================= */

.ve-osclass-form input[type=text],
.ve-osclass-form input[type=email],
.ve-osclass-form input[type=number],
.ve-osclass-form input[type=tel],
.ve-osclass-form textarea,
.ve-osclass-form select {

  width:100% !important;
  height:52px !important;

  border-radius:14px !important;
  border:1px solid #d8e3ee !important;

  padding:0 14px !important;

  font-size:15px !important;

  background:#fff !important;

  box-shadow:none !important;
}

.ve-osclass-form textarea{

  height:160px !important;
  padding:14px !important;
  resize:vertical;
}

/* focus */

.ve-osclass-form input:focus,
.ve-osclass-form textarea:focus,
.ve-osclass-form select:focus{

  border-color:#348fde !important;

  box-shadow:0 0 0 3px rgba(52,143,222,0.15) !important;

  outline:none;
}

/* labels */

.ve-osclass-form label span{

  font-weight:700;
  font-size:14px;
  margin-bottom:6px;
}

/* checkbox */

.ve-osclass-form input[type=checkbox]{

  width:auto !important;
  height:auto !important;
}

/* file upload */

.ve-osclass-form input[type=file]{

  padding:14px;
  border-radius:14px;
  border:1px dashed #c7d9ea !important;
}

/* form spacing */

.ve-form-grid{

  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.ve-field--full{

  grid-column:1 / -1;
}

/* block design */

.ve-form-block{

  background:#fff;
  border:1px solid #e6eef6;
  border-radius:22px;

  padding:20px;

  margin-bottom:18px;
}

/* button */

.ve-primary-btn{

  border-radius:14px;
  height:50px;
  padding:0 22px;

  background:#348fde;
  color:#fff;

  font-weight:700;

  border:none;

  box-shadow:0 8px 18px rgba(52,143,222,0.2);
}

.ve-primary-btn:hover{

  background:#2b7cc3;
}
  .ve-form-footer {
    justify-content: stretch;
  }

  .ve-form-footer .ve-primary-btn {
    width: 100%;
  }
}
