/* ════════════════════════════════════════════════════════════════════════════
   GTI Equipment Detail Page
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
  --ed-primary: #FEB802;
  --ed-primary-hover: #e0a200;
  --ed-dark: #111827;
  --ed-gray: #374151;
  --ed-muted: #6b7280;
  --ed-light: #9ca3af;
  --ed-border: #E5E7EB;
  --ed-border-light: #F3F4F6;
  --ed-bg: #FFFFFF;
  --ed-white: #FFFFFF;
  --ed-green: #239A35;
  --ed-green-light: #dcfce7;
  --ed-orange: #F97316;
  --ed-red: #dc2626;
  --ed-radius: 8px;
  --ed-radius-lg: 12px;
  --ed-radius-xl: 16px;
  --ed-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --ed-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --ed-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
  --ed-transition: all 0.2s ease;
  --ed-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ed-whatsapp: #25D366;
  --ed-whatsapp-hover: #1da851;
}

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.gti-ed-wrapper {
  font-family: var(--ed-font);
  color: var(--ed-dark);
  background: var(--ed-bg);
  min-height: 100vh;
}

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.gti-ed-breadcrumb {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 40px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ed-muted);
}

.gti-ed-breadcrumb a {
  color: var(--ed-muted);
  text-decoration: none;
  transition: var(--ed-transition);
}

.gti-ed-breadcrumb a:hover {
  color: var(--ed-primary);
}

.gti-ed-breadcrumb .separator {
  color: var(--ed-light);
  font-size: 10px;
}

.gti-ed-breadcrumb .current {
  color: var(--ed-dark);
  font-weight: 500;
}

/* ═══ HERO SECTION ═════════════════════════════════════════════════════════ */
.gti-ed-hero {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 40px 40px;
}

.gti-ed-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 320px;
  gap: 28px;
  align-items: start;
}

/* ── Gallery Column ──────────────────────────────────────────────────────── */
.gti-ed-gallery {
  position: relative;
}

.gti-ed-main-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--ed-radius-lg);
  overflow: hidden;
  background: var(--ed-white);
  border: 1px solid var(--ed-border);
  aspect-ratio: 4 / 3;
  box-shadow: var(--ed-shadow);
}

.gti-ed-main-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.gti-ed-main-image-wrapper .placeholder-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: var(--ed-light);
  background: var(--ed-bg);
}

.gti-ed-status-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
}

.gti-ed-status-badge.ready {
  background: var(--ed-green);
  color: #fff;
}

.gti-ed-status-badge.coming-soon {
  background: var(--ed-orange);
  color: #fff;
}

.gti-ed-status-badge.sold {
  background: var(--ed-red);
  color: #fff;
}

/* Gallery nav arrows */
.gti-ed-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--ed-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--ed-dark);
  z-index: 3;
  box-shadow: var(--ed-shadow-md);
  line-height: 1;
  padding: 0;
  aspect-ratio: 1 / 1;
  transition: none !important;
}

.gti-ed-gallery-arrow:hover {
  background: var(--ed-primary);
  color: #fff;
  border-color: var(--ed-primary);
  box-shadow: none;
  transform: translateY(-50%);
}

.gti-ed-gallery-arrow.prev { left: 12px; }
.gti-ed-gallery-arrow.next { right: 12px; }

/* Thumbnail strip */
.gti-ed-thumbnails {
  --thumb-gap: 10px;
  display: flex;
  gap: var(--thumb-gap);
  margin-top: 12px;
}

/* 4 per page, sized to fill the gallery width */
.gti-ed-thumb {
  position: relative;
  flex: 0 0 calc((100% - 3 * var(--thumb-gap)) / 4);
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--ed-transition);
}

.gti-ed-thumb-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
}

.gti-ed-thumb.active {
  border-color: var(--ed-primary);
}

.gti-ed-thumb:hover {
  border-color: var(--ed-primary);
}

.gti-ed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gti-ed-thumb-video {
  position: relative;
  background: #000;
}

.gti-ed-thumb-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.gti-ed-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 16px;
}

.gti-ed-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ed-bg);
  font-size: 18px;
  color: var(--ed-light);
}

.gti-ed-thumb[hidden] {
  display: none;
}

/* Thumbnail pagination dots */
.gti-ed-thumbs-pager {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.gti-ed-thumbs-pager[hidden] {
  display: none;
}

.gti-ed-thumbs-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d0d0d0;
  cursor: pointer;
  transition: var(--ed-transition);
}

.gti-ed-thumbs-dot.active,
.gti-ed-thumbs-dot:hover {
  background: var(--ed-primary);
}

/* ═══ PRODUCT SUMMARY (CENTER COL) ═══════════════════════════════════════ */
.gti-ed-summary {
  padding: 4px 0;
}

.gti-ed-brand-badge {
  display: inline-block;
  background: var(--ed-primary);
  color: var(--ed-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.gti-ed-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--ed-dark);
  line-height: 1.2;
  margin: 0 0 6px;
}

.gti-ed-tagline {
  color: var(--ed-orange);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* Spec list */
.gti-ed-specs-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--ed-border-light);
}

.gti-ed-spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ed-border-light);
}

.gti-ed-spec-item i {
  width: 18px;
  text-align: center;
  color: var(--ed-primary);
  font-size: 14px;
  flex-shrink: 0;
}

.gti-ed-spec-item .spec-label {
  color: var(--ed-muted);
  min-width: 100px;
  font-size: 13px;
}

.gti-ed-spec-item .spec-value {
  color: var(--ed-dark);
  font-weight: 600;
}

/* CTA buttons */
.gti-ed-cta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gti-ed-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 13px 20px;
  border-radius: var(--ed-radius);
  font-family: var(--ed-font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--ed-transition);
  text-decoration: none;
  text-align: center;
  letter-spacing: 0.3px;
  box-sizing: border-box;
}

.gti-ed-btn-whatsapp {
  background: var(--ed-whatsapp);
  color: #fff;
  border-color: var(--ed-whatsapp);
}

.gti-ed-btn-whatsapp:hover {
  background: var(--ed-whatsapp-hover);
  border-color: var(--ed-whatsapp-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.gti-ed-btn-offer {
  background: var(--ed-primary);
  color: var(--ed-dark);
  border-color: var(--ed-primary);
}

.gti-ed-btn-offer:hover {
  background: var(--ed-primary-hover);
  border-color: var(--ed-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(254, 184, 2, 0.3);
}

.gti-ed-btn-share {
  background: var(--ed-white);
  color: var(--ed-dark);
  border-color: var(--ed-border);
}

.gti-ed-btn-share:hover {
  border-color: var(--ed-primary);
  color: var(--ed-primary);
  transform: translateY(-1px);
}

/* ═══ INQUIRY FORM (RIGHT COL) ═══════════════════════════════════════════ */
.gti-ed-inquiry-card {
  background: var(--ed-white);
  border-radius: var(--ed-radius-lg);
  border: 1px solid var(--ed-border);
  padding: 28px;
  position: sticky;
  top: 100px;
  box-shadow: var(--ed-shadow);
}

.gti-ed-inquiry-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ed-dark);
  margin: 0 0 4px;
}

.gti-ed-inquiry-desc {
  font-size: 13px;
  color: var(--ed-muted);
  margin: 0 0 20px;
}

.gti-ed-form-group {
  margin-bottom: 14px;
}

.gti-ed-form-group label {
  display: none;
}

.gti-ed-form-group input {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    box-sizing: border-box;
}

.gti-ed-form-group input,
.gti-ed-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  font-family: var(--ed-font);
  font-size: 13px;
  color: var(--ed-dark);
  background: var(--ed-white);
  transition: var(--ed-transition);
  box-sizing: border-box;
}

.gti-ed-form-group input::placeholder,
.gti-ed-form-group textarea::placeholder {
  color: var(--ed-light);
}

.gti-ed-form-group input:focus,
.gti-ed-form-group textarea:focus {
  outline: none;
  border-color: var(--ed-primary);
  box-shadow: 0 0 0 3px rgba(254, 184, 2, 0.15);
}

.gti-ed-form-group textarea {
  resize: vertical;
  min-height: 72px;
}

.gti-ed-form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border-radius: var(--ed-radius);
  background: var(--ed-primary);
  color: var(--ed-dark);
  border: none;
  font-family: var(--ed-font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ed-transition);
}

.gti-ed-form-submit:hover {
  background: var(--ed-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(254, 184, 2, 0.3);
}

.gti-ed-form-privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--ed-light);
  text-align: center;
  justify-content: center;
}

.gti-ed-form-privacy i {
  font-size: 11px;
}

/* ═══ DETAIL SECTION ═══════════════════════════════════════════════════════ */
.gti-ed-detail-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px 48px;
}

.gti-ed-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}

/* ── Specifications ──────────────────────────────────────────────────────── */
.gti-ed-specs-block {
  background: var(--ed-white);
  border-radius: var(--ed-radius-lg);
  border: 1px solid var(--ed-border);
  padding: 28px;
  box-shadow: var(--ed-shadow);
}

.gti-ed-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ed-dark);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ed-border-light);
}

.gti-ed-spec-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.gti-ed-spec-row {
  display: flex;
  padding: 10px 0;
}

.gti-ed-spec-row:nth-child(odd) {
  padding-right: 16px;
}

.gti-ed-spec-row:nth-child(even) {
  padding-left: 16px;
}

.gti-ed-spec-row .label {
  color: var(--ed-muted);
  font-size: 13px;
  min-width: 120px;
}

.gti-ed-spec-row .value {
  color: var(--ed-dark);
  font-size: 13px;
  font-weight: 600;
}

/* ── Features ────────────────────────────────────────────────────────────── */
.gti-ed-features-block {
  background: var(--ed-white);
  border-radius: var(--ed-radius-lg);
  border: 1px solid var(--ed-border);
  padding: 28px;
  box-shadow: var(--ed-shadow);
}

.gti-ed-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ed-dark);
}

.gti-ed-feature-item:last-child {
  border-bottom: none;
}

.gti-ed-feature-item i {
  color: var(--ed-green);
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* ── Why Buy from GTI ───────────────────────────────────────────────────── */
.gti-ed-why-block {
  background: var(--ed-white);
  border-radius: var(--ed-radius-lg);
  border: 1px solid var(--ed-border);
  padding: 28px;
  box-shadow: var(--ed-shadow);
}

.gti-ed-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gti-ed-why-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.gti-ed-why-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(254, 184, 2, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ed-primary);
  font-size: 15px;
}

.gti-ed-why-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--ed-dark);
  line-height: 1.4;
}

/* ═══ RELATED PRODUCTS ═════════════════════════════════════════════════════ */
.gti-ed-related-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px 60px;
}

.gti-ed-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.gti-ed-related-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ed-dark);
  margin: 0;
}

.gti-ed-related-header a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ed-primary);
  text-decoration: none;
  transition: var(--ed-transition);
}

.gti-ed-related-header a:hover {
  color: var(--ed-primary-hover);
}

.gti-ed-related-carousel-wrapper {
  position: relative;
}

.gti-ed-related-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0;
}

.gti-ed-related-carousel::-webkit-scrollbar {
  display: none;
}

/* Related card (same as filter card style) */
.gti-ed-related-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--ed-white);
  border-radius: var(--ed-radius-lg);
  border: 1px solid var(--ed-border);
  overflow: hidden;
  transition: var(--ed-transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.gti-ed-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ed-shadow-lg);
  border-color: var(--ed-primary);
}

.gti-ed-related-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ed-bg);
  position: relative;
}

.gti-ed-related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gti-ed-related-card-image .placeholder-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--ed-light);
}

.gti-ed-related-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.gti-ed-related-card-badge.ready {
  background: var(--ed-green);
  color: #fff;
}

.gti-ed-related-card-badge.sold {
  background: var(--ed-red);
  color: #fff;
}

.gti-ed-related-card-badge.coming-soon {
  background: var(--ed-orange);
  color: #fff;
}

.gti-ed-related-card-body {
  padding: 14px 16px 16px;
}

.gti-ed-related-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ed-dark);
  margin: 0 0 8px;
  line-height: 1.3;
}

.gti-ed-related-card-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.gti-ed-related-card-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ed-muted);
}

.gti-ed-related-card-meta-row i {
  width: 14px;
  text-align: center;
  color: var(--ed-primary);
  font-size: 11px;
}

.gti-ed-related-card-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--ed-dark);
  margin-bottom: 12px;
}

.gti-ed-related-card-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px 10px;
  border-radius: var(--ed-radius);
  background: var(--ed-primary);
  color: var(--ed-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: var(--ed-transition);
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gti-ed-related-card:hover .gti-ed-related-card-cta {
  background: var(--ed-primary-hover);
}

/* Carousel arrows */
.gti-ed-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--ed-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--ed-dark);
  z-index: 3;
  box-shadow: var(--ed-shadow-md);
  line-height: 1;
  padding: 0;
  aspect-ratio: 1 / 1;
  transition: none !important;
}

.gti-ed-carousel-arrow:hover {
  background: var(--ed-primary);
  color: #fff;
  border-color: var(--ed-primary);
  box-shadow: none;
  transform: translateY(-50%);
}

.gti-ed-carousel-arrow.prev { left: -22px; }
.gti-ed-carousel-arrow.next { right: -22px; }

/* ═══ RESPONSIVE ════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .gti-ed-hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gti-ed-inquiry-card {
    grid-column: 1 / -1;
    position: static;
  }
  .gti-ed-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gti-ed-why-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .gti-ed-hero {
    padding: 16px 20px 32px;
  }
  .gti-ed-breadcrumb {
    padding: 12px 20px 0;
  }
  .gti-ed-hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gti-ed-detail-section {
    padding: 0 20px 36px;
  }
  .gti-ed-detail-grid {
    grid-template-columns: 1fr;
  }
  .gti-ed-related-section {
    padding: 0 20px 40px;
  }
  .gti-ed-title {
    font-size: 22px;
  }
  .gti-ed-inquiry-card {
    position: static;
  }
}

@media (max-width: 600px) {
  .gti-ed-hero {
    padding: 12px 16px 24px;
  }
  .gti-ed-breadcrumb {
    padding: 10px 16px 0;
    font-size: 12px;
  }
  .gti-ed-title {
    font-size: 20px;
  }
  .gti-ed-spec-table {
    grid-template-columns: 1fr;
  }
  .gti-ed-spec-row:nth-child(odd) {
    padding-right: 0;
  }
  .gti-ed-spec-row:nth-child(even) {
    padding-left: 0;
  }
  .gti-ed-why-grid {
    grid-template-columns: 1fr;
  }
  .gti-ed-related-card {
    flex: 0 0 240px;
  }
  .gti-ed-related-header h2 {
    font-size: 18px;
  }
  .gti-ed-thumbnails {
    --thumb-gap: 8px;
  }
}

/* ═══ INQUIRY FORM — extended field set (PRD §7.2 / §7.4) ═══════════════════ */

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.gti-ed-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

.gti-ed-form-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 4px;
}

.gti-ed-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
/* input[type=date] has an intrinsic min-width wider than the column; without
   this the grid item refuses to shrink and the row overflows on focus. */
.gti-ed-form-row > .gti-ed-form-group { min-width: 0; }

.gti-ed-form-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: none;
    border-top: 1px solid #e5e7eb;
    padding: 12px 0;
    margin: 4px 0 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    text-align: left;
}
.gti-ed-form-toggle:hover { color: #1a1f36; }
.gti-ed-form-toggle i { transition: transform 0.2s; font-size: 11px; }
.gti-ed-form-toggle.is-open i { transform: rotate(180deg); }

.gti-ed-form-more { padding-bottom: 4px; }

.gti-ed-form-error {
    display: block;
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
    min-height: 0;
}
.gti-ed-form-error:empty { display: none; }

.gti-ed-form-group.has-error input,
.gti-ed-form-group.has-error select,
.gti-ed-form-group.has-error textarea {
    border-color: #dc2626;
}

.gti-ed-form-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
    cursor: pointer;
    margin: 8px 0 12px;
}
.gti-ed-form-consent input {
    width: 15px; height: 15px;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: #F5A623;
    cursor: pointer;
}
.gti-ed-form-consent.has-error span { color: #dc2626; }

.gti-ed-form select,
.gti-ed-form input[type="date"],
.gti-ed-form input[type="number"] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 11px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1f36;
    background: #fff;
}
.gti-ed-form select:focus,
.gti-ed-form input:focus,
.gti-ed-form textarea:focus {
    outline: none;
    border-color: #F5A623;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

.gti-ed-form-done { text-align: center; padding: 24px 0; }
.gti-ed-form-done i { font-size: 48px; color: #10B981; margin-bottom: 12px; display: block; }
.gti-ed-form-done h3 { margin: 0 0 8px; color: #1a1f36; }
.gti-ed-form-done p { margin: 0 0 4px; color: #6b7280; line-height: 1.6; }

@media (max-width: 480px) {
    .gti-ed-form-row { grid-template-columns: 1fr; }
}

/* Parent theme (themify-ultra) styles bare input/select/textarea with
   border-radius: var(--theme_rounded) (12px) at the same specificity as the
   .gti-ed-form-group rules above, so the winner depended on stylesheet order.
   Pin every inquiry-form control to 8px on used / rental / spare-part pages. */
.gti-ed-inquiry-card .gti-ed-form input:not([type="checkbox"]),
.gti-ed-inquiry-card .gti-ed-form select,
.gti-ed-inquiry-card .gti-ed-form textarea {
    border-radius: 8px;
}

/* Unit already sold / rented — replaces the inquiry form (M-9). */
.gti-ed-unavailable{border:1px solid #e5e7eb;border-radius:12px;padding:32px;background:#f9fafb;text-align:center}
.gti-ed-unavailable h3{margin:0 0 8px;font-size:20px;color:#1a1f36}
.gti-ed-unavailable p{margin:0 0 20px;color:#6b7280;font-size:14px;line-height:1.6}
