:root{
  --ve-primary:#348fde;
  --ve-primary-dark:#2b7cc3;
  --ve-primary-soft:#eef6ff;
  --ve-text:#16212f;
  --ve-muted:#667688;
  --ve-border:#dbe5f0;
}

/* =========================
   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 !important;
  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 {
  display:block !important;
  width: 100% !important;
  min-width: 100% !important;
  height: 54px !important;
  min-height: 54px !important;
  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;
  float:none !important;
  margin:0 !important;
}

.ve-osclass-form textarea {
  min-height: 190px !important;
  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;
}

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

/* native osclass wrappers */
.ve-osclass-form .ve-field input,
.ve-osclass-form .ve-field textarea,
.ve-osclass-form .ve-field select {
  width:100% !important;
}

.ve-osclass-form .ve-field .text,
.ve-osclass-form .ve-field .select,
.ve-osclass-form .ve-field .textarea {
  width:100% !important;
}

.ve-osclass-form .ve-field .text input,
.ve-osclass-form .ve-field .select select,
.ve-osclass-form .ve-field .textarea textarea {
  width:100% !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-width:auto !important;
  min-height: auto !important;
  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;
}

/* qq uploader */
#photos .qq-uploader,
#photos .qq-upload-drop-area,
#photos .qq-upload-button {
  border-radius:16px !important;
}

#photos .qq-upload-button {
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 18px !important;
  background:var(--ve-primary) !important;
  color:#fff !important;
  border:none !important;
}

/* 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%;
  }
}
