/* ============================================
   IMPORTS
============================================ */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap");


/* ============================================
   GLOBAL RESET & BASE STYLES
============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

input, select, textarea, button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.box-s--b {box-shadow: 0 30px 30px rgba(0, 0, 0, 0.05);}
.box-s--sm {box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);}

/* ============================================
   TYPOGRAPHY
============================================ */
.main-- h1 {font-size: 6vw; text-align: center;}
.regular, .p--content p, .p--content-s {font-weight: 400;}
.extra--bold {font-weight: 800;}
.upper--case {text-transform: uppercase;}
.bold {font-weight: 700;}
.semi--bold {font-weight: 600;}
.medium {font-weight: 500;}
.fs--12 {font-size: 12px;}
.fs--14 {font-size: 14px;}
.fs--16 {font-size: 16px;}
.fs--24 {font-size: 24px;}


/* ============================================
   COLORS & BACKGROUNDS
============================================ */
.bg--white {background-color: #ffffff;}
.bg--light-gray {background-color: #E9E9E9;}
.bg--gray-1 {background-color: #E8E8E8;}
.bg--black {background-color: #000000;}
.bg--green {background-color: #96C942;}
.bg--dark {background-color: #05000d;}

.c--white {color: #ffffff;}
.c--green {color: #96C942;}
.gray--text {color: #2d2c2c;}
.gray--text-20 {color: #b0b0b0;}
.blue-gray--text {color: #0f4866;}
.white--text, .p--content p, .p--content-s {color: #ffffff;}


/* ============================================
   FLEXBOX & GRID UTILITIES
============================================ */
.flex {display: flex;}
.flex-wrap {flex-wrap: wrap;}
.fd--column {flex-direction: column;}
.fd--c-n {flex-direction: column;}
.jc--center {justify-content: center;}
.jc--space-b {justify-content: space-between;}
.jc--end {justify-content: end;}
ai--center {align-items: center;}
ai--end {align-items: end;}
ai--start {align-items: start;}
.grid {display: grid;}
.g--auto {--n-c: 6; --n-r: 0; grid-template-columns: repeat(var(--n-c), 1fr); grid-template-rows: repeat(var(--n-r), 1fr);}
.gc--3 {--column-count: 3; grid-template-columns: repeat(var(--column-count), 1fr);}


/* ============================================
   SPACING & SIZING
============================================ */
.p--8 {padding: 8px;}
.p--16 {padding: 16px;}
.p--12-20 {padding: 12px 20px;}
.p--20-a {padding: 20px;}
.p--lr-16 {padding-left: 16px; padding-right: 16px;}
.pt--16 { padding-top: 16px; }
.mt--auto { margin-top: auto; }
.mt--16 {margin-top: 16px;}
.mt--32 {margin-top: 32px;}
.mt--24 {margin-top: 24px;}
.mt--120 {margin-top: 120px;}
.mb--16 { margin-bottom: 16px; }
.m--0 {margin: 0;}
.g--4 {gap: 4px;}
.g--8, .gap--8 {gap: 8px;}
.g--16, .gap--16 {gap: 16px;}
.g--20, .gap--20 {gap: 20px;}
.g--32 {gap: 32px;}
.w--full, .width--full {width: 100%;}
.width--fit, .w--fitcontent {width: fit-content;}
.h--full {height: 100%;}
.h--40 {height: 40px;}
.h--50 {min-height: 50px;}
.height--full {height: 100%;}
.height--fit-content {height: fit-content;}
.w--200 {min-width: 200px;}
.w--140 {width: 140px;}
.w--300 {width: 300px;}
.mw--158 {min-width: 158px; object-position: center; object-fit: cover;}


.form-w-full .fluentform{
  width: 100%;
}

/* ============================================
   BORDERS & RADIUS
============================================ */
.br--4 {border-radius: 4px;}
.br--8 {border-radius: 8px;}
.br--12 {border-radius: 12px;}
.br--16 {border-radius: 16px;}
.br--24 {border-radius: 24px;}
.br--32 {border-radius: 32px;}
.br--80 {border-radius: 80px;}
.border--gray {border: 2px solid #e7e7e7;}
.border--gray-1 {border: 1px solid #e8e8e8;}
.border--1 {border: 1px solid #ccc;}


/* ============================================
   COMPONENTS & ELEMENTS
============================================ */
.tabs {display: flex; gap: 10px;}
.tab {border-radius: 8px; padding: 10px 16px; display: flex; align-items: center; gap: 8px; transition: background-color 0.3s; border: 1px solid #E8E8E8;}
.tab.active {border-color: #96C942;}
.marker {display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 4px; font-size: 12px; font-weight: 600; color: #96C942; border: 1px solid #E8E8E8;}
.tab.active .marker, .done .marker {background: #96C942; color: white; border: 0px;}
.tab-content {display: none;}
.tab-content.active {display: flex;}
.animate-check svg path {stroke-dasharray: 13; stroke-dashoffset: 13; animation: drawCheck 0.5s forwards; animation-delay: 0.3s;}
@keyframes drawCheck {to {stroke-dashoffset: 0;}}
.product-card {border: 1px solid #ccc; display: inline-block; cursor: pointer;}
.product-card.selected {border: 1px solid #000000;}
.tab-controller button {border-radius: 8px; padding: 10px 16px; display: flex; align-items: center; transition: background-color 0.3s; background-color: #000000; color: #ffffff; border: none;}
.selection-popup {position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); background: #222; color: #fff; padding: 12px 20px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease; z-index: 999;}
.selection-popup.show {opacity: 1; transform: translateX(-50%) translateY(-10px);}
.efficiency-badge {background: #96C942; color: #ffffff; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; width: fit-content; min-width: 105.06px;}
.tooltip {position: absolute; background-color: #333; color: #fff; padding: 5px 10px; border-radius: 4px; font-size: 12px; z-index: 1000; opacity: 0; transition: opacity 0.3s ease; pointer-events: none;}
.tooltip.show {opacity: 1;}

.costing #currencySimble {
  position: relative !important;
  right: auto;
  top: auto;
}

#currencySimble {
  position: absolute;
  z-index: 5;
  right: 20px;
  top: calc(50% - 9px);
}

#typeOfCompressor {
  position: absolute;
  z-index: 5;
  right: 20px;
  top: calc(50% - 12.5px);
}

#energySaving{
  width: min-content;
}

.near-match-badge {
  background-color: orange;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  /* margin-bottom: 16px; */
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
  min-width: 105.06px;
}

.exact-match-badge {
  background-color: #09577D;
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  /* margin-bottom: 16px; */
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
  min-width: 105.06px;
}


/* Efficiency legend container */
#etaLegendContainer {
  margin-top: 24px;
  width: 100%;
  box-sizing: border-box;
}

/* Modern legend */
.eff-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Title */
.eff-legend .legend-title {
  font-weight: 600;
  margin-right: 12px;
  flex: 0 0 auto;
}

/* Color swatches */
.eff-legend .legend-bar {
  width: 100%;
  display: flex;
  flex: 1 1 auto;
  margin: 8px 0;
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
}

.eff-legend .legend-bar div {
  flex: 1;
}

/* Labels row */
.eff-legend .legend-labels {
  display: flex;
  flex: 1 1 auto;
  margin-left: 12px;
}

.eff-legend .legend-labels div {
  flex: 1;
  text-align: center;
  font-weight: 500;
}

.legendary-con {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin-top: 8px;
}
#downloadPdfReport,
#exportChartBtn,
#toggleRpmBtn{
  padding: 4px 8px;
}

.eye-wrap{
  width: 24px;
  height: 24px;
  position: relative;
}
.eye-lottie-toggle {
  position: absolute;
  left: calc(50% - 20px);
  top: calc(50% - 20px);
  width: 40px;
  height: 40px;
  pointer-events: none; /* So clicks go to the parent btn */
}

#downlaodPdfLottie,#exportChartLottie,#computeLottie,#findLottie,#curveTypeLottie{
  width: 24px;
  height: 24px;
  pointer-events: none; /* So clicks go to the parent btn */
}


.pdf-container {
  padding: 32px;
  width: 1200px;
  background: #f5f5f5;
  font-family: Arial, sans-serif;
}

.pdf-header {
  border-bottom: 2px solid #09577D;
}

.border-t--gray-1 {
  border-top: 1px solid #e1e6ea;
}

/* ============================================
   PDF VIEWER RESPONSIVE STYLES
============================================ */
.pdf-viewer-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 600px;
  max-height: calc(100vh - 150px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #e8e8e8;
  transition: all 0.3s ease;
  animation: pdfContainerFadeIn 0.4s ease-out;
}

@keyframes pdfContainerFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* PDF Viewer Header */
.pdf-viewer-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.pdf-viewer-title {
  font-size: 18px;
  font-weight: 600;
  color: #2d2c2c;
  margin: 0;
}

.pdf-icon {
  color: #96C942;
  flex-shrink: 0;
}

.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #000000;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.pdf-download-btn:hover {
  background: #96C942;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(150, 201, 66, 0.3);
}

.pdf-download-btn svg {
  flex-shrink: 0;
}

/* PDF Iframe Wrapper */
.pdf-iframe-wrapper {
  flex: 1;
  min-height: 0;
  position: relative;
  width: 100%;
  background: #f5f5f5;
  overflow: hidden;
  border-top: 1px solid #e8e8e8;
}

.pdf-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #ffffff;
}

/* Loading Indicator */
.pdf-loading-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  z-index: 10;
  transition: opacity 0.3s ease;
}

.pdf-loading-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.pdf-loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e8e8e8;
  border-top-color: #96C942;
  border-radius: 50%;
  animation: pdf-spin 1s linear infinite;
  margin-bottom: 16px;
}

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

.pdf-loading-text {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  margin: 0;
}

/* PDF Fallback */
.pdf-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  z-index: 5;
}

.pdf-fallback-content {
  text-align: center;
  padding: 40px;
}

.pdf-fallback-icon {
  color: #96C942;
  margin-bottom: 16px;
  opacity: 0.7;
}

.pdf-fallback-text {
  font-size: 16px;
  color: #666;
  margin-bottom: 24px;
  font-weight: 500;
}

.pdf-fallback-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #000000;
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pdf-fallback-btn:hover {
  background: #96C942;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(150, 201, 66, 0.3);
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 1024px) {
  .pdf-viewer-container {
    height: calc(100vh - 180px);
    min-height: 500px;
  }
  
  .pdf-viewer-header {
    padding: 16px 20px;
  }
  
  .pdf-viewer-title {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .pdf-viewer-container {
    height: calc(100vh - 160px);
    min-height: 400px;
    border-radius: 12px;
  }
  
  .pdf-viewer-header {
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .pdf-viewer-header > div {
    width: 100%;
    justify-content: space-between;
  }
  
  .pdf-viewer-title {
    font-size: 15px;
  }
  
  .pdf-download-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .pdf-download-btn span {
    display: none;
  }
  
  .pdf-download-btn svg {
    margin: 0;
  }
}

@media (max-width: 640px) {
  .pdf-viewer-container {
    height: calc(100vh - 140px);
    min-height: 350px;
  }
  
  .pdf-viewer-header {
    padding: 12px;
  }
  
  .pdf-loading-spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
  }
  
  .pdf-loading-text {
    font-size: 13px;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .pdf-viewer-container {
    height: calc(100vh - 120px);
    min-height: 300px;
  }
}

/* Ensure download tab content uses full height */
.download-tab-content {
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.download-tab-content > div {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}


/* ============================================
   POSITIONING, STATES, MISC
============================================ */
.pointer {cursor: pointer;}
.overflow-hiden {overflow: hidden;}
.text-align--start {text-align: start;}
.text-align--center {text-align: center;}
.t-dec-none {text-decoration: none;}
.position-r {position: relative;}
.box-sizing {box-sizing: border-box;}
.subtract div:first-child {display: none;}
.disabled {opacity: 0.5; cursor: not-allowed;}

/* ============================================
   BASE STYLES FOR STRUCTURE CLASSES
============================================ */
.calc--con {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
  }

  .con-drk--gray {
    display: flex;
    min-width: 240px;
    min-height: 50px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    background: #e8e8e8;
    color: #000;
    align-items: center;
    justify-content: center;
    font-size: 14px;
  }
  
  .calc--nav {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
  }

  .calc--nav-second{
    display: none;
    flex-direction: row;
    gap: 16px;
    width: 100%;
  }
  
  .cont {
    height: 500px;
    width: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    padding: 20px;
    background-color: white;
    flex-direction: column;
    gap: 40px;
  }

  #upcoming {
    width: 100%;
  }
  
  /* ============================================
     FORM & BUTTON ENHANCEMENTS
  ============================================ */
  
  #findProductsButton:disabled {
    background-color: #ccc;
    cursor: not-allowed;
  }

  #curveType{
    grid-column-gap: 7px;
    grid-row-gap: 7px;
    color: #fff;
    background-image: linear-gradient(#444, #000);
    border: 1px solid #000;
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all .2s;
    display: inline-flex
    ;
    box-shadow: 0 1px 2px #0000004d, 0 0 #000, inset 1px 1px .25px #ffffff4d, inset 0 2px 1px #ffffff80;
  }
  
  /* ============================================
     TABS & STEPS
  ============================================ */
  .tabs .tab {
    flex-grow: 1;
    justify-content: center;
  }
  
  
  /* ============================================
     TOOLTIP POSITIONING SUPPORT (Optional)
  ============================================ */
  .tooltip[data-position="top"] {
    transform: translateY(-100%);
  }
  
  .tooltip[data-position="bottom"] {
    transform: translateY(100%);
  }
  
  .tooltip[data-position="left"] {
    transform: translateX(-100%);
  }
  
  .tooltip[data-position="right"] {
    transform: translateX(100%);
  }
  
  /* ============================================
     DROPDOWN UX IMPROVEMENT
  ============================================ */
  /* Shared dropdown wrapper styles */
  .dropdown,
  .dropdown-1,
  .dropdown-01 {
    position: relative;
    width: 100%;
    height: 50px;
  }

  /* Shared input styles */
  .dropdown input,
  .dropdown-01 input {
    padding: 12px 20px;
  }

  .dropdown-1 input {
    padding: 8px 48px 8px 16px;
  }

  .dropdown input,
  .dropdown-1 input,
  .dropdown-01 input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border-radius: 10px;
    font-size: 14px;
    background-color: white;
  }

  /* Focus styles */
  #Quantity:focus,
  #dailyRuntime:focus,
  #EneryPrice:focus,
  #flowInput:focus,
  #pressureInput:focus,
  .dropdown input:focus,
  .dropdown-1 input:focus,
  .dropdown-01 input:focus {
    border: 1px solid #96C942;
    box-shadow: 0 0 0 2px rgba(150, 201, 66, 0.3);
    outline: none;
  }

  /* Shared dropdown list styles */
  .dropdown .option,
  .dropdown-1 .option-1,
  .dropdown-01 .option-01 {
    position: absolute;
    top: 70px;
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    z-index: 6;
    box-shadow: 0 30px 30px rgba(0, 0, 0, 0.05);
    border: none;
    display: none;
  }

  /* Override for specific dropdown spacing */
  .dropdown .option {
    top: 65px;
  }

  /* Shared option item styles */
  .dropdown .option div,
  .dropdown-1 .option-1 div,
  .dropdown-01 .option-01 div {
    padding: 12px 20px;
    cursor: pointer;
  }

  /* Hover state */
  .dropdown .option div:hover,
  .dropdown-1 .option-1 div:hover,
  .dropdown-01 .option-01 div:hover {
    background: #62baea;
    color: #fff;
  }

  /* Active dropdown states */
  .dropdown.active .option,
  .active-1 .option-1,
  .active-01 .option-01 {
    visibility: visible;
    opacity: 1;
    display: block;
  }

  .active-01 .option-01 {
    z-index: 20;
  }

  /* Type of compressor positioning */
  #typeOfCompressor {
    position: absolute;
    z-index: 5;
    right: 20px;
    top: calc(50% - 12.5px);
  }

  /* Specific override for search field */
  #search01:focus {
    border: #000 !important;
  }
  
  /* ============================================
     PRODUCT CARD HOVER
  ============================================ */
  .product-card:hover {
    /* border-color: #96C942; */
    box-shadow: 0 0 0 2px rgba(150, 201, 66, 0.2);
    transition: all 0.3s ease;
  }
  
  /* ============================================
     P-CONTENT BASE STYLE
  ============================================ */
  .p--content {
    font-size: 16px;
    line-height: 1.6;
    color: #525252;
    margin-bottom: 16px;
  }
  
  .p--content p {
    margin-bottom: 12px;
  }
  
  /* ============================================
     UTILITY CLASSES FIX
  ============================================ */
  .overflow-hidden {
    overflow: hidden;
  }
  
  /* If you're using `ai--center`, this will fix it */
  .ai--center { align-items: center; }
  .ai--start { align-items: flex-start; }
  .ai--end   { align-items: flex-end; }
  
  .jc--start { justify-content: flex-start; }
  .jc--end   { justify-content: flex-end; }
  
  /* ============================================
     CONTAINER-CALC BASE STYLE
  ============================================ */
  .container-calc {
    width: 1024px;
    margin-left: auto;
    margin-right: auto;
  }

  .hr--gray {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #E9E9E9;
    margin: 1em 0;
    padding: 0;
}


/* ============================================
   MEDIA QUERIES
============================================ */
/* ===== 2xl (1536px) ===== */
@media (max-width: 1536px) {
  .container-calc {
    max-width: 1280px;
  }
}

/* ===== xl (1280px) ===== */
@media (max-width: 1280px) {
  .container-calc {
    width: 1024px;
  }
}

/* ===== lg (1024px) ===== */
@media (max-width: 1024px) {
  .container-calc {
    max-width: 768px;
  }

  #productInquiry{
    flex-direction: column !important;
  }

  #pumpCurveChart {
    width: 100% !important;
  }

  .gc--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .tabs,
  .calc--nav,
  .calc--nav > div:not(.tab-controller),
  .calc--con,
  #upcoming > div,
  .calc--con > div:last-child > div {
    width: 100%;
    flex-direction: column;
  }
  
  .tab{
    width: 100%;
  }
  
  /* Override only for .tab inside .tab-controller */
  .tab-controller .tab {
    flex-direction: row !important;
    width: auto !important;
  }
  

  .tab {
    height: 100%;
  }
}

/* ===== md (768px) ===== */
@media (max-width: 768px) {
  .calc--nav-second{
    display: flex;
    flex-direction: column-reverse;
  }
  .container-calc {
    max-width: 640px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .r-lc {
    width: 100%;
  }

  .overflow-y--scroll {
    overflow-y: scroll;
  }

  .filter-calc-con > div:nth-of-type(2) {
    flex-direction: column;
  }

  #currencySimble {
    width: fit-content;
  }

  .calc--con > .flex:first-of-type > .bg--white:nth-of-type(2) > div,
  .calc--con > .flex:first-of-type > .bg--white:nth-of-type(2) > div :first-child {
    flex-direction: column;
    width: 100%;
  }

  .calc--con > div:first-child div {
    flex-direction: column;
    width: 100%;
}

  .tabs {
    flex-direction: column;
  }

  .tab .marker {
    margin-left: 24px;
  }
}

/* ===== sm (640px) ===== */
@media (max-width: 640px) {
  .container-calc {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .gc--3 {
    grid-template-columns: repeat(1, 1fr);
  }

  #findProductsButton {
    width: 100%;
    margin-top: 16px;
  }

  .product-card img {
    width: 100%;
    max-height: 222px;
    object-fit: contain;
  }
}


/* FAQ Section Styles */
.faq-title {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.faq-item {
  border-top: 1px solid #ccc;
}

.faq-question {
  background: none;
  border: none;
  font-size: 1.25rem;
  width: 100%;
  padding: 1rem 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 0.95rem;
  color: #666;
}

.icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .icon {
  transform: rotate(45deg); /* turns "+" into "x" */
}

#btn-compute,.sec {
  flex-direction: row !important;
}

.c--green{
  color: #96C942;
}

/* ============================================
   ALREADY REGISTERED MESSAGE STYLES
============================================ */
.already-registered-container {
  margin-bottom: 24px;
  width: 100%;
  animation: fadeInSlideDown 0.4s ease-out;
}

@keyframes fadeInSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.already-registered-content {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.already-registered-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e8e8;
}

.already-registered-icon {
  color: #96C942;
  flex-shrink: 0;
}

.already-registered-title {
  font-size: 20px;
  font-weight: 700;
  color: #2d2c2c;
  margin: 0;
}

.already-registered-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.info-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.info-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.info-icon {
  color: #96C942;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-content {
  flex: 1;
  min-width: 0;
}

.info-label {
  font-size: 12px;
  font-weight: 500;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.info-value {
  font-size: 16px;
  font-weight: 600;
  color: #2d2c2c;
  word-break: break-word;
}

.already-registered-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #e8e8e8;
}

.register-again-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.register-again-btn:hover {
  background: #96C942;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(150, 201, 66, 0.3);
}

.register-again-btn:active {
  transform: translateY(0);
}

.register-again-btn svg {
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .already-registered-content {
    padding: 20px;
  }
  
  .already-registered-title {
    font-size: 18px;
  }
  
  .already-registered-info {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .info-card {
    padding: 14px;
  }
  
  .register-again-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
  
  .register-again-btn span {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .already-registered-content {
    padding: 16px;
  }
  
  .already-registered-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }
  
  .already-registered-title {
    font-size: 16px;
  }
  
  .info-value {
    font-size: 14px;
  }
  
  .register-again-btn {
    font-size: 13px;
    padding: 12px 16px;
  }
  
  .register-again-btn span {
    display: none;
  }
  
  .register-again-btn svg {
    margin: 0;
  }
}