/* ==========================================================================
   VTI CORP — AWWWARDS & FWA GRADE CONTACT & QUOTE MODAL SYSTEM
   Styles for both interactive Modal Popup and in-page #contact Section
   ========================================================================== */

:root {
  --vti-navy-dark: #001f30;
  --vti-navy: #004060;
  --vti-navy-light: #0f5a82;
  --vti-accent: #f0b060;
  --vti-accent-hover: #e0982f;
  --vti-accent-glow: rgba(240, 176, 96, 0.35);
  --vti-green: #10b981;
  --vti-ink: #0f172a;
  --vti-muted: #64748b;
  --vti-border: #e2e8f0;
  --vti-border-focus: #f0b060;
  --vti-bg-card: #ffffff;
  --vti-bg-soft: #f8fafc;
  --vti-radius-lg: 20px;
  --vti-radius-md: 12px;
  --vti-radius-sm: 8px;
  --vti-shadow-modal: 0 25px 60px -15px rgba(0, 32, 54, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

/* ==========================================================================
   1. MODAL OVERLAY & CONTAINER (Awwwards Glassmorphism)
   ========================================================================== */
.vti-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(4, 18, 30, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s;
  overflow-y: auto;
}

.vti-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.vti-modal-card {
  position: relative;
  width: 100%;
  max-width: 660px;
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border-radius: var(--vti-radius-lg);
  border: 1px solid rgba(240, 176, 96, 0.35);
  box-shadow: var(--vti-shadow-modal);
  padding: 32px 36px 36px;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

.vti-modal-overlay.active .vti-modal-card {
  transform: translateY(0) scale(1);
}

/* Close button with micro-animation */
.vti-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--vti-bg-soft);
  border: 1px solid var(--vti-border);
  color: var(--vti-muted);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.vti-modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  transform: rotate(90deg);
}

/* ==========================================================================
   2. MODAL HEADER & INTENT TABS (Segmented Control)
   ========================================================================== */
.vti-form-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: linear-gradient(90deg, rgba(240, 176, 96, 0.16), rgba(15, 90, 130, 0.12));
  border: 1px solid rgba(240, 176, 96, 0.45);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #92580c;
  margin-bottom: 10px;
}

.vti-form-badge span.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: vti-pulse 2s infinite;
}

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

.vti-form-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--vti-navy);
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.vti-form-desc {
  font-size: 0.92rem;
  color: var(--vti-muted);
  margin: 0 0 20px 0;
  line-height: 1.5;
}

/* Intent Segmented Pills */
.vti-intent-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--vti-bg-soft);
  padding: 6px;
  border-radius: var(--vti-radius-md);
  border: 1px solid var(--vti-border);
  margin-bottom: 22px;
}

.vti-intent-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--vti-muted);
  border-radius: var(--vti-radius-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.vti-intent-tab:hover {
  color: var(--vti-navy);
}

.vti-intent-tab.active {
  background: #ffffff;
  color: var(--vti-navy);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 40, 64, 0.08), 0 0 0 1px rgba(240, 176, 96, 0.4);
}

/* ==========================================================================
   3. FORM FIELDS & INTERACTIVE CONTROLS
   ========================================================================== */
.vti-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.vti-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.vti-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.vti-label .req {
  color: #ef4444;
}

.vti-input,
.vti-textarea,
.vti-select {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--vti-ink);
  background: #ffffff;
  border: 1.5px solid var(--vti-border);
  border-radius: var(--vti-radius-sm);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.vti-input:focus,
.vti-textarea:focus,
.vti-select:focus {
  outline: none;
  border-color: var(--vti-border-focus);
  box-shadow: 0 0 0 4px var(--vti-accent-glow);
  background: #ffffff;
}

.vti-input::placeholder,
.vti-textarea::placeholder {
  color: #94a3b8;
}

.vti-textarea {
  resize: vertical;
  min-height: 85px;
}

/* Product Selection Chips */
.vti-product-chips-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.vti-product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.vti-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1.5px solid var(--vti-border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.vti-chip-btn:hover {
  border-color: #cbd5e1;
  background: var(--vti-bg-soft);
}

.vti-chip-btn.active {
  background: #fef7ed;
  border-color: var(--vti-accent);
  color: #92580c;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(240, 176, 96, 0.25);
}

.vti-chip-check {
  font-size: 0.85rem;
  line-height: 1;
}

/* ==========================================================================
   4. SUBMIT BUTTON & FEEDBACK STATES
   ========================================================================== */
.vti-submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #f0b060 0%, #e0982f 100%);
  color: #2a1b00;
  font-size: 1.02rem;
  font-weight: 800;
  border: none;
  border-radius: var(--vti-radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 20px -4px rgba(224, 152, 47, 0.45);
}

.vti-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(224, 152, 47, 0.6);
  color: #000;
}

.vti-submit-btn:active {
  transform: translateY(0);
}

.vti-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.vti-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(42, 27, 0, 0.25);
  border-top-color: #2a1b00;
  border-radius: 50%;
  animation: vti-spin 0.7s linear infinite;
}

@keyframes vti-spin {
  to { transform: rotate(360deg); }
}

.vti-submit-btn.loading .vti-spinner {
  display: inline-block;
}

.vti-submit-btn.loading .vti-btn-text,
.vti-submit-btn.loading .vti-btn-icon {
  opacity: 0.6;
}

/* Modal footer trust row */
.vti-modal-trust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--vti-border);
  font-size: 0.8rem;
  color: var(--vti-muted);
}

.vti-modal-trust a {
  color: var(--vti-navy);
  font-weight: 600;
  text-decoration: none;
}

.vti-modal-trust a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   5. SUCCESS CONFIRMATION STATE
   ========================================================================== */
.vti-success-box {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.vti-success-box.active {
  display: block;
}

.vti-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 10px rgba(220, 252, 231, 0.4);
}

.vti-success-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--vti-navy);
  margin-bottom: 8px;
}

.vti-success-desc {
  font-size: 1rem;
  color: #475569;
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* ==========================================================================
   6. EMBEDDED #contact SECTION (Redesigned for In-Page Form)
   ========================================================================== */
.vti-contact-section {
  padding: 70px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #edf3f8 100%);
  border-top: 1px solid var(--vti-border);
}

.vti-contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

.vti-contact-card {
  background: #ffffff;
  border: 1px solid rgba(240, 176, 96, 0.4);
  border-radius: var(--vti-radius-lg);
  padding: 34px 38px 38px;
  box-shadow: 0 20px 45px -12px rgba(0, 40, 64, 0.08);
}

.vti-contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vti-info-card {
  background: #ffffff;
  border: 1px solid var(--vti-border);
  border-radius: var(--vti-radius-md);
  padding: 24px 26px;
  box-shadow: 0 10px 25px -10px rgba(0, 40, 64, 0.05);
}

.vti-info-card.highlight {
  background: linear-gradient(135deg, #002b40 0%, #004060 100%);
  color: #ffffff;
  border-color: #0f5a82;
}

.vti-info-card.highlight h3,
.vti-info-card.highlight p {
  color: #ffffff;
}

.vti-info-card.highlight a {
  color: var(--vti-accent);
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 768px) {
  .vti-modal-card {
    padding: 26px 20px 28px;
    border-radius: 16px;
    max-height: 96vh;
  }
  .vti-intent-tabs {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .vti-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .vti-contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .vti-contact-card {
    padding: 24px 18px 26px;
  }
}
