/* ============================================================
   JP MACHINERY — Request A Quote Page Styles
   ============================================================ */

/* ===================== PAGE HERO ===================== */
.quote-hero {
  padding: 9rem 8vw 5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.quote-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,79,216,0.06) 0%, transparent 68%);
  pointer-events: none;
}

.quote-hero-inner {
  max-width: 1350px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.quote-hero-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.quote-hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.4rem;
}

.quote-hero-heading .accent-line {
  color: var(--accent-blue);
}

.quote-hero-sub {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 480px;
}

.quote-hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.quote-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.quote-stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.quote-stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ===================== MAIN CONTENT ===================== */
.quote-main {
  padding: 6rem 8vw;
  background: var(--bg);
}

.quote-main-inner {
  max-width: 1350px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: start;
}

/* ===================== FORM ===================== */
.quote-form-wrap {
  position: sticky;
  top: 6rem;
}

.quote-form-header {
  margin-bottom: 2.5rem;
}

.quote-form-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.quote-form-tag span {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--accent-blue);
}

.quote-form-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.form-label .req {
  color: var(--accent-blue);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  font-weight: 300;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(27, 79, 216, 0.08);
}

/* Custom select arrow */
.form-select-wrap {
  position: relative;
}

.form-select-wrap::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-muted);
  pointer-events: none;
  transition: border-top-color 0.2s;
}

.form-select-wrap:focus-within::after {
  border-top-color: var(--accent-blue);
}

.form-select option {
  color: var(--text-primary);
  background: #fff;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Product category divider in select */
.form-select optgroup {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

/* Volume / Quantity row */
.form-qty-unit {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-qty-unit:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(27, 79, 216, 0.08);
}

.form-qty-unit .form-input,
.form-qty-unit .form-select {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.form-qty-unit .form-select {
  border-left: 1px solid var(--border);
  background: var(--bg-subtle);
  min-width: 90px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.form-qty-unit .form-select-wrap {
  border-left: 1px solid var(--border);
}

.form-qty-unit .form-select-wrap::after {
  right: 0.75rem;
}

/* Submit button */
.form-submit-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--text-primary);
  border: 1px solid var(--text-primary);
  border-radius: 2px;
  padding: 0.85rem 2rem;
  cursor: pointer;
  outline: none;
  transition: background 0.22s, border-color 0.22s, transform 0.15s;
}

.btn-submit:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-submit svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.btn-submit:hover svg {
  transform: translateX(3px);
}

.form-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid rgba(27, 79, 216, 0.2);
  border-radius: 4px;
  background: rgba(27, 79, 216, 0.03);
}

.form-success.visible { display: block; }

.form-success-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}

.form-success-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  stroke-width: 2;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-success p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
}

/* ===================== RIGHT COLUMN ===================== */
.quote-right {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Globe */
.quote-globe-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quote-globe-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
}

.quote-globe-label::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--text-muted);
}

/* Wrapper that keeps badge positioned relative to the globe circle */
.quote-globe-badge-wrap {
  position: relative;
  width: 100%;
  max-width: 460px;
  display: flex;
  justify-content: center;
}

.quote-globe-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

#globe-canvas {
  position: absolute;
  inset: 0;
  display: block;
  cursor: grab;
  opacity: 0;
  transition: opacity 1s ease;
  touch-action: none;
}

.globe-location-badge {
  position: absolute;
  bottom: 14%;
  right: -2%;
  background: var(--text-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.globe-location-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* Contact quick info */
.quote-contact-strip {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.quote-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s;
}

.quote-contact-item:last-child { border-bottom: none; }

.quote-contact-item:hover { background: var(--bg-subtle); }

.quote-contact-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quote-contact-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-blue);
  stroke-width: 1.8;
  fill: none;
}

.quote-contact-text { display: flex; flex-direction: column; gap: 0.1rem; }

.quote-contact-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.quote-contact-value {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* WhatsApp strip */
.quote-wa-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.quote-wa-strip:hover {
  background: #dcfce7;
  border-color: #86efac;
}

.quote-wa-icon {
  width: 40px;
  height: 40px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quote-wa-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.quote-wa-text { display: flex; flex-direction: column; gap: 0.1rem; }

.quote-wa-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #15803d;
}

.quote-wa-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #166534;
}

.quote-wa-arrow {
  margin-left: auto;
  width: 18px;
  height: 18px;
  stroke: #16a34a;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

/* ===================== MAP SECTION ===================== */
.quote-map-section {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 5rem 8vw;
}

.quote-map-inner {
  max-width: 1350px;
  margin: 0 auto;
}

.quote-map-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.quote-map-title-group { max-width: 520px; }

.quote-map-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.quote-map-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-primary);
}

.quote-map-address {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: right;
}

.quote-map-address-line {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
}

.quote-map-address-line strong {
  font-weight: 600;
  color: var(--text-primary);
}

.quote-map-frame-wrap {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  background: #e8eaed;
}

.quote-map-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: none;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.quote-map-frame-wrap:hover iframe {
  filter: grayscale(0%);
}

.quote-map-overlay-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.7rem 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  pointer-events: none;
}

.quote-map-overlay-badge svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-blue);
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.quote-map-overlay-name {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

/* ===================== FLOATING WHATSAPP ===================== */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.45);
  z-index: 900;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.55);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.wa-float-tooltip {
  position: absolute;
  right: calc(100% + 0.75rem);
  white-space: nowrap;
  background: var(--text-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.wa-float-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--text-primary);
}

.wa-float:hover .wa-float-tooltip { opacity: 1; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .quote-main-inner {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .quote-form-wrap {
    position: static;
  }

  /* Centre the globe in the single-column layout */
  .quote-globe-wrap {
    width: 100%;
    align-items: center;
  }

  .quote-globe-badge-wrap {
    max-width: 420px;
  }
}

@media (max-width: 768px) {
  .quote-hero {
    padding: 7rem 6vw 4rem;
  }

  .quote-main {
    padding: 4rem 6vw;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .quote-map-section {
    padding: 4rem 6vw;
  }

  .quote-map-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .quote-map-address { text-align: left; }

  .quote-map-frame-wrap iframe {
    height: 320px;
  }

  .quote-hero-stats {
    gap: 1rem;
    flex-wrap: nowrap;
  }

  .quote-stat-num {
    font-size: 1.3rem;
  }

  .quote-stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.07em;
  }

  .wa-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
  }

  /* Globe — fill the column and stay centred on mobile */
  .quote-globe-wrap {
    width: 100%;
    align-items: center;
  }

  .quote-globe-badge-wrap {
    width: min(88vw, 380px);
    max-width: 380px;
    margin: 0 auto;
  }

  .globe-location-badge {
    display: none;
  }
}

@media (max-width: 768px) {
  /* Hide the globe on mobile */
  .globe-desktop {
    display: none !important;
  }
}

/* ===================== SCROLL REVEAL ===================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
