/* =====================================
   Lottery Commission Calculator Design
   ===================================== */

.lottery-commission-calc {
  --navy: #001C38;
  --blue: #1b6df7;
  --blue-light: #EDF3FF;
  --pink: #ED047B;
  --text: #1c2434;
  --gray: #64748b;
  --border: #e5e7eb;
  --white: #ffffff;
  max-width: 1100px;
  margin: 40px auto;
  margin-bottom: 0;
  padding: 0;
  color: var(--text);
}


/* =========================
   Common Card
========================= */

.lottery-commission-calc .card,
.lottery-commission-calc .projector-card {

  background: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 0px 5px 0 rgba(0, 0, 0, 0.10);
  margin-bottom: 28px;
}

/* =========================
   Title
========================= */


.lottery-commission-calc .card-title {

  display: flex;
  align-items: center;
  gap: 14px;

  font-size: 22px;
  font-weight: 700;

  color: var(--navy);

  margin-bottom: 25px;
}


.lottery-commission-calc .dot {

  width: 45px;
  height: 45px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: var(--blue-light);
}



/* =========================
 State Tabs
========================= */


.state-tabs {

  display: flex;
  gap: 12px;

  padding: 8px;

  background: #f5f7fb;

  border-radius: 7px;

  margin-bottom: 30px;
}


.state-tab {

  flex: 1;

  border: none;
  background: transparent;

  padding: 15px 10px;

  border-radius: 5px;

  cursor: pointer;

  font-size: 18px;
  font-weight: 700;

  color: #64748b;

  transition: .3s;
}



.state-tab .tab-sub {

  display: block;

  font-size: 13px;

  font-weight: 500;

  margin-top: 5px;
}



.state-tab:hover {

  background: #fff;

  color: var(--blue);
}



.state-tab.active {
  border-radius: 5px;
  background: linear-gradient(90deg, #001C38 38.13%, #124791 102.4%);
  box-shadow: 0 0px 5px 0 rgba(0, 0, 0, 0.10);
  color: #fff;
}



/* =========================
 Inputs
========================= */


input[type=number]:focus {
  box-shadow: none;
}

.rates-row {
  margin-bottom: 15px;
  background-color: #f2f7ff;
  border-radius: 5px;
  padding: 10px 15px;
  border: 1px solid #DEE9FE;
}

.rates-row-inner {
  display: flex;
  gap: 20px;
}
.rate-field {
  width: 50%;
}
@media (max-width: 575px) { 
  .rates-row-inner {
    flex-wrap: wrap
  }
    .rate-field {
      width: 100%;
    }
}

.rate-field-last {
  width: 100%;
}

.rate-field label,
.field label {

  display: block;

  font-size: 15px;

  font-weight: 600;

  margin-bottom: 8px;

}



.sublabel {
  display: block;
  font-size: 13px;
  color: var(--gray);
  font-weight: 400;
}
@media (max-width: 1366px) {
  .sublabel {
    font-size: 11px;
  }
}


.rate-input-wrap,
.input-wrap {

  display: flex;

  align-items: center;

  background: #f8fafc;

  border: 1px solid var(--border);

  border-radius: 5px;

  overflow: hidden;

  transition: .3s;
  height: 36px;
}

#ny-sales-rate, #ny-cash-rate, #nj-sales-rate, #nj-cash-rate, #pa-sales-rate {
  font-weight: 600;
}


.rate-input-wrap:focus-within,
.input-wrap:focus-within {

  border-color: var(--blue);


}



.rate-input-wrap input,
.input-wrap input {

  width: 100%;

  border: none;

  outline: none;

  background: transparent;

  padding: 15px 10px 15px 15px;

  font-size: 16px;

}


.input-prefix {
  padding-right: 0 !important;
}
.rate-suffix,
.input-prefix {

  padding: 0 15px;
  font-size: 16px;
  color: var(--blue);

  font-weight: 700;

}





.input-grid {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 22px;

}
.second-input-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 22px;
}

.field-full {

  grid-column: span 3;

}

.form-label {
  line-height: 1.3;
}


.rates-note {
  color: var(--gray);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 0;
  font-style: italic;
  line-height: 1.5;
  margin-top: 5px;
}
.bonus-note {
    color: #a07010;
    background: rgba(245, 166, 35, .08);
    border: 1px solid rgba(245, 166, 35, .3);
    padding: 10px 18px;
    border-radius: 5px;
    margin-bottom: 25px;
    font-size: 14px;    
    line-height: 1.5;
}

.bonus-note strong {
  color: #7a5500;
}



/* =========================
 PA Incentive Buttons
========================= */


.incentive-select {

  display: flex;

  gap: 12px;

}


.inc-btn {

  flex: 1;

  padding: 10px;

  border-radius: 5px;

  border: 1px solid var(--border);

  background: white;

  cursor: pointer;

  transition: .3s;

  font-size: 14px;

  line-height: 1.5;

}



.inc-rate {

  display: block;

  font-size: 20px;
  font-weight: 700;
  color: var(--blue);

}


.inc-btn.active,
.inc-btn:hover {

  border-color: var(--blue);

  background: #EDF3FF;

}



/* =========================
 Results
========================= */


.results-title {

  font-size: 22px;

  font-weight: 700;

  margin-bottom: 20px;

}



.results-period-tabs {

  display: flex;

  justify-content: center;

  gap: 10px;

  margin-bottom: 0;

}


.period-tab {

  border: none;

  padding: 5px 25px;

  font-size: 16px;

  border-radius: 5px;

  color: rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .07);

  cursor: pointer;

  font-weight: 500;

}

@media (max-width: 991px) { 
.period-tab {
  font-size: 12px;
  padding: 5px 10px;
}
}


.period-tab.active {
  background: var(--blue);
  color: var(--white);
}



.results-hero {
  text-align: center;
  padding: 20px;
  color: white;
}



.total-label {
  font-size: 16px;

  color: rgba(255, 255, 255, .5);

}



.total-amount {

    font-size: 48px;
      font-weight: 800;
      margin: 10px 0;
      color: #fff;

}



.total-sub {

  font-size: 14px;
  
    color: rgba(255, 255, 255, .5);

}



/* =========================
 Projection
========================= */


.proj-grid {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 20px;

}



.proj-item {

      padding: 15px;
        border-radius: 10px;
        background: #fff;
        text-align: center;
        border: 1px solid #eaedf4;

}



.proj-period {

      color: #64748b;
        margin-bottom: 0px;
        font-size: 14px;

}



.proj-amount {

  font-size: 28px;

  font-weight: 800;

  color: var(--navy);

}



/* =========================
 CTA
========================= */


.cta-banner {
  padding: 30px;
  text-align: center;
  border-radius: 10px;
  background: #001C38;
  box-shadow: 0 0px 5px 0 rgba(0, 0, 0, 0.10);
  color: white;
  margin-bottom: 0;
}



.cta-banner h3 {
  color: var(--white);
  font-size: 28px;
  margin: 0 0 10px;

}

.cta-text {
  margin: 0 auto;
  max-width: 750px;
  width: 100%;
}


.cta-banner p {
color: var(--white);
}
@media(max-width:1440px) {
.cta-text {
    max-width: 630px;
  }
}
@media(max-width:575px) {
  .cta-banner h3 {
    font-size: 22px;
  }
.cta-banner .btn-blue {
  font-size: 14px;
}
}


/* =========================
 Responsive
========================= */


@media(max-width:991px) {


.period-tab {
    font-size: 12px;
    padding: 8px 16px;
  }

  .rates-row,
  .input-grid {

  grid-template-columns:
      repeat(1, 1fr);

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


  .field-full {

    grid-column: auto;

  }



  .cta-banner {

    flex-direction: column;

    align-items: flex-start;

  }


}



@media(max-width:600px) {


  .card,
  .results-card,
  .projector-card,
  .cta-banner {
    padding: 20px;
  }

  .rates-row,
  .input-grid,
  .proj-grid {
    grid-template-columns: 1fr;
  }


  .incentive-select {
    flex-direction: column;
  }



  .total-amount {

    font-size: 36px;

  }


  .cta-btn {

    width: 100%;

    text-align: center;

  }


}

/* ==========================
   Smooth Click Animations
========================== */


/* State Tab Click */
.state-tab {
  position: relative;
  overflow: hidden;
  transition:
    transform .25s ease,
    background .35s ease,
    color .35s ease,
    box-shadow .35s ease;
}


.state-tab:active {
  transform: scale(.96);
}



/* Active tab smooth glow */
.state-tab.active {

  animation: tabPop .35s ease;

}


@keyframes tabPop {

  from {
    transform: scale(.95);
    opacity: .7;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }

}



/* Period Buttons */

.period-tab {

  transition:
    transform .25s ease,
    background .3s ease,
    color .3s ease;

}


.period-tab:hover {

  transform: translateY(-2px);

}


.period-tab:active {

  transform: scale(.94);

}



/* Incentive Buttons */

.inc-btn {

  transition:
    transform .25s ease,
    border-color .3s ease,
    background .3s ease;

}



.inc-btn:active {

  transform: scale(.96);

}



/* CTA Button */

.cta-btn {

  transition:
    transform .25s ease,
    box-shadow .3s ease;

}


.cta-btn:hover {

  transform: translateY(-3px);

  box-shadow:
    0 12px 25px rgba(255, 255, 255, .25);

}


.cta-btn:active {

  transform: scale(.95);

}



/* Inputs smooth focus */

.input-wrap,
.rate-input-wrap {

  transition:
    transform .25s ease,
    box-shadow .3s ease,
    border-color .3s ease;

}


.input-wrap:focus-within,
.rate-input-wrap:focus-within {

  transform: translateY(-2px);

}



/* Card hover */

.card,
.results-card,
.projector-card {

  transition:
    transform .35s ease,
    box-shadow .35s ease;

}

/* ==========================================
   PREMIUM LOTTERY CALCULATOR UI ENHANCEMENT
========================================== */


/* Main Background */

.lottery-commission-calc {

  position: relative;

}


.lottery-commission-calc::before {

  content: "";

  position: absolute;

  width: 350px;
  height: 350px;

  background: #467FF7;

  filter: blur(120px);

  opacity: .15;

  top: 0;
  left: 0;

  z-index: -1;

}


/* Premium Cards */

.lottery-commission-calc .card,
.lottery-commission-calc .results-card,
.lottery-commission-calc .projector-card {


  border: 1px solid rgba(255, 255, 255, .8);

  backdrop-filter: blur(15px);

  position: relative;

  overflow: hidden;

}




/* State Tabs Premium */

.state-tabs {
  background:#f2f7ff;
}



.state-tab {
  line-height: 1.2;
  box-shadow:
    inset 0 0 0 1px transparent;


}



.state-tab.active {


  background:
      #001C38;


  /*box-shadow: 0 15px 35px rgba(70, 127, 247, .35);*/

}



/* Input Modern Look */


.input-wrap,
.rate-input-wrap {
  background: white;
}



.input-wrap:hover,
.rate-input-wrap:hover {


  border-color: #467FF7;

}



/* Labels */


.field label,
.rate-field label {


  color: #001C38;

  letter-spacing: .2px;

}




/* Smooth Loading Feel */

.state-content {


  animation:

    fadeSlide .35s ease;

}



@keyframes fadeSlide {


  from {

    opacity: 0;

    transform:
      translateY(15px);

  }


  to {

    opacity: 1;

    transform:
      translateY(0);

  }

}

/* =================================
   Commission Breakdown Upgrade
================================= */


#breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 250px));
  justify-content: center;
  gap: 18px;
}
@media (max-width: 1024px) {
  #breakdown-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 250px));
    gap: 16px;
  }
}
@media (max-width: 768px) {
  #breakdown-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
  }
}
@media (max-width: 576px) {
  #breakdown-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  #breakdown-grid>div {
    width: 100%;
  }
}
@media (max-width: 375px) {
  #breakdown-grid {
    gap: 12px;
  }

  #breakdown-grid>div {
    padding: 16px;
  }
}

/* Each breakdown item */

#breakdown-grid > div {

    background:#f8fafc;

    border:1px solid #2c4258;

    border-radius:5px;

    padding: 10px 20px;

    position:relative;

    overflow:hidden;
background: rgba(255, 255, 255, .07);
    transition:.3s ease;

}


/* 
#breakdown-grid > div:hover {

    transform:translateY(-5px);

    box-shadow: 0 0px 5px 0 rgba(0, 0, 0, 0.10);

} */
.bi-label, .bi-source {
  font-size: 14px;
  color: rgba(255, 255, 255, .5); 
}
.bi-source {
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
}
.bi-value {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  margin: 5px 0;
}

/* Icon style circle */

#breakdown-grid > div::before {

    content:"$";

    position:absolute;

    right:20px;

    top:20px;

    width:40px;

    height:40px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background: #83919e;

    color: #ffffff;

    font-weight:800;

    font-size:20px;

}



/* Title */

#breakdown-grid .break-title {

    font-size:14px;

    color:#64748b;

    margin-bottom:10px;

    font-weight:600;

}



/* Amount */

#breakdown-grid .break-value {

    font-size:28px;

    font-weight:800;

    color:#001C38;

    margin-bottom:8px;

}



/* Description */

#breakdown-grid .break-desc {

    font-size:14px;

    color:#64748b;

}




/* Results Card Upgrade */

.results-card {
   background: #001C38;
    padding:35px;
    border-radius:10px;
    margin-bottom:28px;
}
  



/* Responsive */

@media(max-width:600px){

    #breakdown-grid {

        grid-template-columns:1fr;

    }

}

@media (max-width:575px) {
  .lottery-commission-calc .card {
    padding: 25px;
  }

  .lottery-commission-calc .projector-card {
    padding: 25px;
  }

  .lottery-commission-calc .results-card {
    padding: 25px;
  }

  .state-tabs {
    flex-direction: row;
    gap: 5px;
  }

  .state-tab {
    padding: 10px 5px;
  }

  .state-tab .tab-sub {
    font-size: 11px;
  }
.results-hero { 
  padding: 20px 0;
}
}