/* =========================================================
   ProGlove ROI Calculator
   Scoped styles only - master.css handles global/base styles
========================================================= */

/* ------------------------------
   Page wrapper
------------------------------ */

.pg-roi-page {
  background: #F4F6F8;
  color: #0C0C0F;
  overflow: hidden;
}

.pg-roi-container {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

/* ------------------------------
   Preloader
------------------------------ */

#pg-roi-preloader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(12, 12, 15, 0.92);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#pg-roi-preloader.active {
  display: flex;
}

.pg-roi-preloader__box {
  max-width: 380px;
  width: 100%;
  padding: 34px;
  border-radius: 22px;
  background: #FFFFFF;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.pg-roi-preloader__box p {
  margin: 0 0 8px;
  color: #0C0C0F;
  font-size: 21px;
  font-weight: 700;
}

.pg-roi-preloader__box span {
  display: block;
  color: #68707A;
  font-size: 15px;
}

/* ------------------------------
   Hero
------------------------------ */

.pg-roi-hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  padding: 170px 0 105px;
  background:
    linear-gradient(90deg, rgba(12, 12, 15, 0.94) 0%, rgba(12, 12, 15, 0.88) 50%, rgba(12, 12, 15, 0.55) 100%),
    url('/wp-content/uploads/2023/05/roi-banner-final.jpg') center center / cover no-repeat;
  color: #FFFFFF;
}

.pg-roi-hero::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 12%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.pg-roi-hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.pg-roi-eyebrow {
  margin: 0 0 14px;
  color: #00C8FF;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.pg-roi-hero h1 {
  margin: 0 0 24px;
  color: #FFFFFF;
  font-size: clamp(42px, 5.8vw, 76px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.pg-roi-hero__text {
  max-width: 720px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
}

/* ------------------------------
   Buttons
------------------------------ */

.pg-roi-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.045em;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.pg-roi-button--primary {
  background: #FF6F19;
  border-color: #FF6F19;
  color: #FFFFFF;
  box-shadow: 0 12px 28px rgba(255, 111, 25, 0.22);
}

.pg-roi-button--primary:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #FF6F19;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(255, 255, 255, 0.16);
}

/* ------------------------------
   Calculator section
------------------------------ */

.pg-roi-calculator-section {
  position: relative;
  padding: 92px 0 110px;
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 200, 255, 0.12), transparent 310px),
    radial-gradient(circle at 92% 14%, rgba(255, 111, 25, 0.1), transparent 300px),
    #F4F6F8;
}

.pg-roi-intro {
  max-width: 860px;
  margin-bottom: 42px;
}

.pg-roi-intro h2 {
  margin: 0 0 16px;
  color: #0C0C0F;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.038em;
}

.pg-roi-intro p:not(.pg-roi-eyebrow) {
  margin: 0;
  max-width: 790px;
  color: #555D66;
  font-size: 18px;
  line-height: 1.65;
}

/* ------------------------------
   Main form layout
------------------------------ */

.pg-roi-calculator-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.6fr);
  gap: 30px;
  align-items: start;
}

.pg-roi-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(12, 12, 15, 0.07);
  border-radius: 24px;
  padding: clamp(26px, 3vw, 40px);
  box-shadow: 0 18px 52px rgba(12, 12, 15, 0.08);
}

.pg-roi-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.pg-roi-card--details {
  position: sticky;
  top: 110px;
}

.pg-roi-card--inputs {
  border-top: 4px solid #00C8FF;
}

.pg-roi-card__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 30px;
}

.pg-roi-step {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0C0C0F;
  color: #00C8FF;
  font-size: 13px;
  font-weight: 700;
}

.pg-roi-card__header h3 {
  margin: 0 0 6px;
  color: #0C0C0F;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.pg-roi-card__header p {
  margin: 0;
  color: #68707A;
  font-size: 15px;
  line-height: 1.5;
}

/* ------------------------------
   Fields
------------------------------ */

.pg-roi-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}

.pg-roi-field {
  margin-bottom: 22px;
}

.pg-roi-input-grid .pg-roi-field {
  margin-bottom: 0;
}

.pg-roi-field label {
  display: block;
  margin-bottom: 8px;
  color: #0C0C0F;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.pg-roi-field input[type="text"],
.pg-roi-field input[type="number"] {
  display: block;
  width: 100%;
  height: 56px;
  border: 1.5px solid #DDE3E8;
  border-radius: 15px;
  background: #FAFBFC;
  color: #0C0C0F;
  padding: 0 16px;
  font-size: 17px;
  font-weight: 500;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.pg-roi-field input[type="text"]::placeholder,
.pg-roi-field input[type="number"]::placeholder {
  color: #A3AAB1;
  font-weight: 400;
}

.pg-roi-field input[type="text"]:hover,
.pg-roi-field input[type="number"]:hover {
  border-color: rgba(0, 200, 255, 0.75);
  background: #FFFFFF;
}

.pg-roi-field input[type="text"]:focus,
.pg-roi-field input[type="number"]:focus {
  border-color: #00C8FF;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(0, 200, 255, 0.14);
}

.pg-roi-field small {
  display: block;
  margin-top: 7px;
  color: #737B84;
  font-size: 13px;
  line-height: 1.45;
}

.pg-roi-field input[type="number"]::-webkit-outer-spin-button,
.pg-roi-field input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.pg-roi-field input[type="number"] {
  -moz-appearance: textfield;
}

/* ------------------------------
   Industry selector
------------------------------ */

.pg-roi-industry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.pg-roi-industry-button {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid #DDE3E8;
  border-radius: 14px;
  background: #FAFBFC;
  color: #0C0C0F;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.pg-roi-industry-button:hover {
  border-color: #00C8FF;
  background: rgba(0, 200, 255, 0.08);
  color: #0C0C0F;
}

.pg-roi-industry-button.active {
  border-color: #00C8FF;
  background: #0C0C0F;
  color: #00C8FF;
  transform: translateY(-1px);
}

/* ------------------------------
   Bottom row
------------------------------ */

.pg-roi-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #E7EBEF;
}

.pg-roi-field--currency {
  margin-bottom: 0;
}

.pg-roi-currency-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pg-roi-currency-row label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid #DDE3E8;
  border-radius: 999px;
  background: #FAFBFC;
  color: #0C0C0F;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.pg-roi-currency-row input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: #00C8FF;
}

/* ------------------------------
   Calculation assumptions accordion
------------------------------ */

.pg-roi-assumptions {
  margin-top: 28px;
  border: 1px solid #DDE3E8;
  border-radius: 18px;
  background: #FAFBFC;
  overflow: hidden;
}

.pg-roi-assumptions__toggle {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 0;
  background: transparent;
  color: #0C0C0F;
  font-size: 15px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.pg-roi-assumptions__toggle:hover {
  background: rgba(0, 200, 255, 0.06);
}

.pg-roi-assumptions__toggle[aria-expanded="true"] {
  border-bottom: 1px solid #DDE3E8;
  background: rgba(0, 200, 255, 0.08);
}

.pg-roi-assumptions__icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0C0C0F;
  color: #00C8FF;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.pg-roi-assumptions__content {
  padding: 20px;
}

.pg-roi-assumptions__content p {
  margin: 0 0 16px;
  color: #555D66;
  font-size: 15px;
  line-height: 1.6;
}

.pg-roi-assumptions__content ul {
  margin: 0;
  padding-left: 18px;
}

.pg-roi-assumptions__content li {
  margin-bottom: 10px;
  color: #555D66;
  font-size: 15px;
  line-height: 1.55;
}

.pg-roi-assumptions__content li:last-child {
  margin-bottom: 0;
}

.pg-roi-assumptions__content strong {
  color: #0C0C0F;
  font-weight: 700;
}

/* ------------------------------
   Errors
------------------------------ */

.pg-roi-error {
  min-height: 24px;
  margin: 18px 0 0;
  color: #C62828;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

/* ------------------------------
   Results
------------------------------ */

.pg-roi-results {
  display: none;
  margin-top: 42px;
  padding: clamp(30px, 4vw, 48px);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(0, 200, 255, 0.16), transparent 320px),
    #0C0C0F;
  color: #FFFFFF;
  box-shadow: 0 22px 60px rgba(12, 12, 15, 0.16);
}

.pg-roi-results.active {
  display: block;
}

.pg-roi-results__header {
  max-width: 790px;
  margin-bottom: 32px;
}

.pg-roi-results__header h2 {
  margin: 0 0 14px;
  color: #FFFFFF;
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.038em;
}

.pg-roi-results__header p:not(.pg-roi-eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
  line-height: 1.6;
}

.pg-roi-results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pg-roi-result-card {
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.065);
}

.pg-roi-result-card span {
  display: block;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.pg-roi-result-card strong {
  display: block;
  color: #00C8FF;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
}

.pg-roi-result-card:nth-child(1),
.pg-roi-result-card:nth-child(2),
.pg-roi-result-card:nth-child(3) {
  background: rgba(0, 200, 255, 0.09);
  border-color: rgba(0, 200, 255, 0.22);
}

.pg-roi-result-card:nth-child(7) {
  grid-column: span 2;
}

.pg-roi-results-cta {
  margin-top: 28px;
  padding: 28px;
  border-radius: 20px;
  background: #FFFFFF;
  color: #0C0C0F;
}

.pg-roi-results-cta h3 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pg-roi-results-cta p {
  max-width: 720px;
  margin: 0 0 20px;
  color: #555D66;
  font-size: 16px;
  line-height: 1.6;
}

/* ------------------------------
   Responsive
------------------------------ */

@media only screen and (max-width: 1180px) {
  .pg-roi-calculator-layout {
    grid-template-columns: 1fr;
  }

  .pg-roi-card--details {
    position: static;
  }

  .pg-roi-industry-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pg-roi-industry-button {
    text-align: center;
  }

  .pg-roi-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pg-roi-result-card:nth-child(7) {
    grid-column: span 1;
  }
}

@media only screen and (max-width: 820px) {
  .pg-roi-container {
    width: min(100% - 30px, 1240px);
  }

  .pg-roi-hero {
    min-height: auto;
    padding: 135px 0 78px;
  }

  .pg-roi-hero h1 {
    font-size: 42px;
  }

  .pg-roi-hero__text {
    font-size: 18px;
  }

  .pg-roi-calculator-section {
    padding: 64px 0 78px;
  }

  .pg-roi-intro h2,
  .pg-roi-results__header h2 {
    font-size: 34px;
  }

  .pg-roi-card {
    padding: 26px;
    border-radius: 20px;
  }

  .pg-roi-input-grid,
  .pg-roi-industry-grid,
  .pg-roi-results-grid {
    grid-template-columns: 1fr;
  }

  .pg-roi-bottom-row {
    align-items: stretch;
    flex-direction: column;
  }

  .pg-roi-button {
    width: 100%;
  }

  .pg-roi-result-card {
    min-height: auto;
  }
}

@media only screen and (max-width: 520px) {
  .pg-roi-container {
    width: min(100% - 24px, 1240px);
  }

  .pg-roi-hero h1 {
    font-size: 36px;
  }

  .pg-roi-card__header {
    gap: 12px;
  }

  .pg-roi-step {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .pg-roi-field input[type="text"],
  .pg-roi-field input[type="number"] {
    height: 52px;
    font-size: 16px;
  }

  .pg-roi-currency-row {
    flex-direction: column;
  }

  .pg-roi-currency-row label {
    width: 100%;
  }
}