body{
    background:
        linear-gradient(
            rgba(252, 252, 252, 0.58),
            rgba(255, 255, 255, 0.58)
        ),
        url("../assets/images/background-ad-page.png");

    background-size:cover;
    background-position:center top;
    background-repeat:no-repeat;
    background-attachment:fixed;

    background-color:#ffffff;
}

.new-vehicle-hero{

    height:300px;   /* ou 260px */

    margin:-28px -34px 24px;

    padding:32px 34px;

    background-image:url("../assets/images/new-vehicle-hero.png");
    background-size:cover;
    background-position:center;

    border-radius:0px;

    overflow:hidden;

}

.breadcrumb {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb span {
  color: #16a34a;
  margin: 0 8px;
}

.new-vehicle-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: 40px;
  line-height: 1;
}

.hero-subtitle {
  margin: 14px 0 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.45;
}

.new-vehicle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.vehicle-form-card,
.vehicle-summary-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(15,23,42,.08);
  border: 1px solid rgba(15,23,42,.08);
}

.vehicle-form-card {
  padding: 0;
  overflow: hidden;
}

.form-section {
  padding: 26px;
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.form-section:last-of-type {
  border-bottom: 0;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.section-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background-color: #16a34a;
  background-size: 70% 70%;
  background-position: center;
  background-repeat: no-repeat;
}

.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.2;
}

.section-heading p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 26px;
}

.form-grid label,
.description-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.form-grid input,
.form-grid select,
.description-label textarea {
  width: 100%;
  height: 50px;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  padding: 0 16px;
  color: #1e293b;
  font-size: 15px;
  background: white;
  transition: .25s;
}

.form-grid input:focus,
.form-grid select:focus,
.description-label textarea:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 4px rgba(22,163,74,.12);
}

.form-grid input:disabled,
.form-grid select:disabled,
.form-grid input[readonly] {
  background: #f8fafc;
  color: #64748b;
}

.description-label textarea {
  height: 110px;
  resize: vertical;
  padding: 15px;
}

.description-counter {
  align-self: flex-end;
  color: #64748b;
  font-size: 12px;
}

.fipe-info-card {
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 1px solid rgba(22,163,74,.20);
  display: flex !important;
  align-items: center;
  gap: 18px;
}

.fipe-info-card[style*="display:none"],
.fipe-info-card[style*="display: none"] {
  display: none !important;
}

.fipe-badge {
  width: 52px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.fipe-info-card strong {
  display: block;
  color: #15803d;
  margin-bottom: 4px;
}

.fipe-info-card p {
  margin: 0;
  color: #166534;
  font-size: 13px;
  line-height: 1.4;
}

.photos-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 18px;
}

.upload-box {
  min-height: 130px;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  padding: 28px;
  cursor: pointer;
  transition: .25s;
  display: grid;
  place-items: center;
}

.upload-box:hover,
.upload-box.dragover {
  border-color: #16a34a;
  background: #f0fdf4;
}

.upload-content {
  text-align: center;
  color: #334155;
}

.upload-content strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 34px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 14px;
  margin-bottom: 14px;
  padding: 0 14px;
}

.upload-content p {
  margin: 0;
  color: #334155;
  font-weight: 800;
}

.upload-content small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
}

.photos-summary {
  min-height: 130px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  background: #f8fafc;
  padding: 18px;
}

.photos-summary > strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
  margin-bottom: 16px;
}

.photos-empty {
  min-height: 70px;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.icon-images,
.icon-edit,
.icon-star {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-images {
  background-image: url("../assets/icons/images.png");
}

.icon-edit {
  background-image: url("../assets/icons/edit.png");
}

.icon-star {
  background-image: url("../assets/icons/star.png");
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.preview-card {
  position: relative;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: 0 8px 20px rgba(15,23,42,.08);
}

.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  background: linear-gradient(135deg,#1146d8,#16a34a);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 999px;
}

.preview-remove {
  position: absolute;
  right: 8px;
  top: 8px;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(15,23,42,.85);
  color: white;
  cursor: pointer;
  font-weight: bold;
}

.vehicle-message {
  margin: 18px 26px 26px;
  font-weight: 900;
}

/* RESUMO LATERAL */
.vehicle-summary-card {
  padding: 22px;
  position: sticky;
  top: 22px;
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.summary-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background-color: #dcfce7;
  background-size: 75% 75%;
  background-position: center;
  background-repeat: no-repeat;
}

.summary-header h3 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
}

.summary-car-image {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(22,163,74,.05), rgba(15,23,42,.04)),
    url("../assets/images/car-covered.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 14px;
}

.summary-helper {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 12px;
}

.summary-box {
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
  padding: 20px;
  margin-bottom: 20px;
}

.summary-box span {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 8px;
}

.summary-box strong {
  display: block;
  color: #16a34a;
  font-size: 28px;
  margin-bottom: 18px;
}

.summary-box b {
  display: block;
  color: #64748b;
  font-size: 18px;
}

.summary-box hr {
  border: 0;
  border-top: 1px solid rgba(15,23,42,.08);
  margin: 18px 0;
}

.summary-discount {
  color: #16a34a !important;
}

.summary-tips {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.summary-tips div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
}

.tip-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: #f1f5f9;
  background-size: 70% 70%;
  background-repeat: no-repeat;
  background-position: center;
}

.summary-tips p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.summary-tips strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
  margin-bottom: 3px;
}

.publish-btn,
.draft-btn {
  width: 100%;
  height: 52px;
  border-radius: 11px;
  font-size: 15px;
}

.draft-btn {
  margin-top: 12px;
  border: 1px solid #dbe4ef;
  background: #fff;
  color: #334155;
  font-weight: 900;
  cursor: pointer;
}

/* RESPONSIVO */
@media (max-width: 1280px) {
  .new-vehicle-layout {
    grid-template-columns: 1fr;
  }

  .vehicle-summary-card {
    position: relative;
    top: 0;
  }
}

@media (max-width: 900px) {
  .new-vehicle-hero {
    margin: -15px -15px 18px;
    padding: 24px 15px;
    min-height: auto;
  }

  .new-vehicle-hero h1 {
    font-size: 32px;
  }

  .form-grid,
  .photos-layout {
    grid-template-columns: 1fr;
  }

  .form-section {
    padding: 20px;
  }

  .vehicle-summary-card {
    margin-bottom: 100px;
  }
}

.publish-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(.3);
}