/* ===========================
   IPTPA Equipment Discounts
   benefits.css
=========================== */

/* ---- Page Hero ---- */
.discounts-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 80px 0 60px;
  text-align: center;
  color: var(--white);
}

.discounts-hero .section-tag {
  margin-bottom: 16px;
}

.discounts-hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.15;
}

.discounts-hero h1 span {
  color: var(--green);
}

.discounts-hero p {
  margin-top: 16px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Section wrapper ---- */
.discounts-section {
  background: var(--gray-50);
  padding: 64px 0 80px;
}

/* Single-column stack so cards are wide enough for the horizontal layout */
.discounts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================
   HORIZONTAL CARD
   Logo on the left  |  Info on the right
   ============================================ */
.benefit-card-horizontal {
  display: flex;
  /* side-by-side layout */
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 180px;
  margin-bottom: 20px;
}
.benefit-card-horizontal:last-child { margin-bottom: 0; }

.benefit-card-horizontal:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(15, 29, 71, 0.13);
}

/* ---- Left: Brand Sidebar ---- */
.brand-sidebar {
  flex: 0 0 180px;
  /* fixed width, never shrinks */
  background: #f1f5f9;
  /* soft blue-gray */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  border-right: 1px solid var(--gray-200);
}

.brand-sidebar img {
  width: 100%;
  max-width: 130px;
  max-height: 90px;
  object-fit: contain;
  display: block;
}

/* Text badge when no logo image is available */
.brand-sidebar .brand-text-badge {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy-dark);
  letter-spacing: 2px;
  text-align: center;
  line-height: 1;
}

/* ---- Right: Info Panel ---- */
.info-panel {
  flex: 1;
  /* fills remaining space */
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-panel .brand-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy-dark);
  letter-spacing: 0.5px;
  margin: 0;
  line-height: 1.15;
}

.info-panel .brand-type {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: -4px;
}

/* ---- Steps list ---- */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.5;
}

.steps-list .step-n {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ---- Bottom action row (promo code + button) ---- */
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  /* pushes row to the bottom of the panel */
  padding-top: 8px;
}

/* ---- Promo code — looks like a real coupon ---- */
.promo-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(74, 222, 128, 0.10);
  border: 1.5px dashed var(--green-dark);
  border-radius: 8px;
  padding: 7px 16px;
}

.promo-code .code-label {
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-400);
  font-family: 'Inter', sans-serif;
}

.promo-code .code-value {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  letter-spacing: 2.5px;
}

/* ---- Copy-email button (Head card) ---- */
.contact-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-dark);
  cursor: pointer;
  user-select: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.contact-copy-btn:hover {
  background: var(--gray-50);
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(15, 29, 71, 0.1);
}

.contact-copy-btn.copied {
  background: rgba(74, 222, 128, 0.12);
  border-color: var(--green-dark);
  color: var(--green-dark);
}

.contact-copy-btn.copied svg {
  stroke: var(--green-dark);
}

.copy-hint {
  font-size: 0.73rem;
  font-weight: 400;
  color: var(--gray-400);
  letter-spacing: 0.3px;
  margin-left: 2px;
}

.contact-copy-btn.copied .copy-hint {
  display: none;
}

/* ---- Redeem button — pinned to the right via card-actions ---- */
.btn-redeem {
  display: inline-block;
  background: var(--navy-dark);
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-left: auto;
  /* always pushes to the right inside card-actions */
}

.btn-redeem:hover {
  background: var(--navy);
  transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet: cards already single-column and stretch fine */
@media (max-width: 768px) {

  /* Stack logo on top, info below */
  .benefit-card-horizontal {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
  }
  .benefit-card-horizontal:last-child { margin-bottom: 0 !important; }

  .brand-sidebar {
    display: flex !important;
    flex: unset !important;
    width: 100% !important;
    height: 120px !important;
    border-right: none !important;
    border-bottom: 1px solid var(--gray-200) !important;
    padding: 20px !important;
  }

  .info-panel {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    flex: unset !important;
    padding: 22px 22px 20px !important;
    min-height: 0 !important;
  }

  .card-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-redeem {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  .discounts-hero h1 {
    font-size: 2.2rem;
  }
}

/* ============================================
   INSURANCE SERVICES — portal modifiers
   ============================================ */

/* Blue-tinted sidebar (COI card) */
.ins-sidebar-blue {
  background: rgba(26, 47, 110, 0.06);
  border-right-color: rgba(26, 47, 110, 0.12);
}

/* Amber-tinted sidebar (Additional Insured card) */
.ins-sidebar-amber {
  background: rgba(251, 191, 36, 0.08);
  border-right-color: rgba(251, 191, 36, 0.25);
}

/* Small status badge inside the sidebar */
.ins-badge {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
}

.ins-badge--green {
  background: rgba(74, 222, 128, 0.18);
  color: var(--green-dark);
}

.ins-badge--amber {
  background: rgba(251, 191, 36, 0.22);
  color: #92400e;
  border: 1px solid rgba(251, 191, 36, 0.45);
}

/* Requirements bullet list */
.ins-req-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ins-req-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--gray-700);
  line-height: 1.45;
}

.ins-req-list li::before {
  content: '·';
  color: var(--navy);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 0.9;
  flex-shrink: 0;
}

/* Coming soon amber notice */
.ins-coming-soon {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--gray-700);
  line-height: 1.45;
  flex: 1;
}

/* Disabled state for Coming Soon button */
.btn-redeem-disabled {
  background: var(--gray-200) !important;
  color: var(--gray-400) !important;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
}