/* =========================================================
   Tax Pricing Calculator
   PUBLIC TAX, CORP
   ========================================================= */

.pricing-calculator-card{
  background:#ffffff;
  border:1px solid rgba(15,34,64,.10);
  border-radius:22px;
  box-shadow:0 18px 50px rgba(0,0,0,.08);
  padding:34px;
  width:100%;
  overflow:visible;
}

#theform{
  width:100%;
  display:block;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}

.calc-header{
  display:block;
  margin-bottom:18px;
  padding-bottom:20px;
  border-bottom:1px solid rgba(15,34,64,.10);
}

.calc-header h3{
  margin:0 0 8px;
  font-size:1.75rem;
  line-height:1.2;
  color:#0b2545;
}

.calc-header p{
  margin:0;
  color:#667085;
  font-size:1rem;
  line-height:1.6;
}

/* Sticky total box - desktop and mobile */
.calc-total-box{
  width:100%;
  background:linear-gradient(135deg,#0b2545,#123e6d);
  color:#ffffff;
  border-radius:18px;
  padding:16px 20px;
  text-align:center;
  box-shadow:0 12px 30px rgba(0,0,0,.18);
}

.calc-total-sticky{
  position:sticky;
  top:150px;
  z-index:900;
  margin:0 0 26px;
}

.calc-total-label{
  display:block;
  font-size:.85rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  opacity:.85;
  margin-bottom:6px;
}

.calc-total-box input{
  width:100%;
  min-height:46px;
  border:0;
  background:transparent;
  color:#ffffff;
  font-size:2rem;
  font-weight:900;
  text-align:center;
  outline:none;
  padding:0;
}

.calc-section{
  margin-top:28px;
}

.calc-section-title{
  font-size:1.1rem;
  font-weight:800;
  color:#0b2545;
  margin:0 0 14px;
  padding-left:12px;
  border-left:4px solid #c89b3c;
}

.calc-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

.calc-field{
  background:#fbfcfe;
  border:1px solid rgba(15,34,64,.10);
  border-radius:16px;
  padding:17px 18px;
}

.calc-field label{
  display:block;
  font-size:1.08rem;
  font-weight:800;
  color:#0b2545;
  margin-bottom:10px;
}

.calc-control-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 170px;
  gap:16px;
  align-items:center;
}

.calc-control-row select{
  width:100%;
  min-height:56px;
  border:2px solid #d6e4f3;
  border-radius:12px;
  background-color:#eef5fb;
  color:#101828;
  font-size:1.1rem;
  font-weight:700;
  outline:none;
  padding:0 58px 0 14px;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background-image:
    linear-gradient(45deg, transparent 50%, #0b2545 50%),
    linear-gradient(135deg, #0b2545 50%, transparent 50%);
  background-position:
    calc(100% - 32px) 50%,
    calc(100% - 24px) 50%;
  background-size:
    8px 8px,
    8px 8px;
  background-repeat:no-repeat;
}

.calc-control-row select::-ms-expand{
  display:none;
}

.calc-control-row select:focus{
  border-color:#c89b3c;
  box-shadow:0 0 0 3px rgba(200,155,60,.18);
}

.calc-control-row select option{
  font-size:1.05rem;
  font-weight:600;
  padding:10px;
}

.calc-control-row input{
  width:100%;
  min-width:170px;
  min-height:56px;
  border:2px solid #e6c978;
  border-radius:12px;
  background:#fff8e8;
  color:#8a5b00;
  font-size:1.18rem;
  font-weight:900;
  text-align:center;
  padding:0 14px;
}

.form-line,
.forms-name,
.calc-block,
.calc-total{
  width:auto;
  display:block;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  font-size:inherit;
}

#theform select,
#theform input{
  display:block;
  color:inherit;
  font-weight:inherit;
}

.pricing-note{
  margin:24px 0 0;
  color:#667085;
  font-size:.98rem;
  line-height:1.65;
}

/* =========================================================
   Personal Tax Pricing Table
   PUBLIC TAX, CORP
   ========================================================= */

.pricing-table-card{
  background:#ffffff;
  border:1px solid rgba(15,34,64,.10);
  border-radius:22px;
  box-shadow:0 18px 50px rgba(0,0,0,.08);
  padding:30px;
  width:100%;
}

.pricing-table-wrap{
  overflow-x:auto;
  border-radius:16px;
  border:1px solid rgba(15,34,64,.10);
  background:#ffffff;
}

.pricing-table{
  width:100%;
  min-width:680px;
  border-collapse:separate;
  border-spacing:0;
  margin:0;
  background:#ffffff;
}

.pricing-table thead th{
  background:#0b2545;
  color:#ffffff;
  font-size:1rem;
  font-weight:800;
  letter-spacing:.03em;
  padding:17px 20px;
  border:0;
}

.pricing-table thead th:first-child{
  border-top-left-radius:14px;
}

.pricing-table thead th:last-child{
  border-top-right-radius:14px;
  text-align:right;
}

.pricing-table tbody td{
  padding:15px 20px;
  border-bottom:1px solid rgba(15,34,64,.08);
  font-size:1rem;
  color:#344054;
  background:#ffffff;
}

.pricing-table tbody tr:nth-child(even) td{
  background:#f8fafc;
}

.pricing-table tbody tr:hover td{
  background:#eef6ff;
}

.pricing-table tbody td:first-child{
  font-weight:600;
}

.pricing-table tbody td:last-child{
  width:140px;
  text-align:right;
  font-size:1.05rem;
  font-weight:900;
  color:#0b2545;
  white-space:nowrap;
}

.pricing-table tbody tr:last-child td{
  border-bottom:0;
}

.pricing-table tbody tr:last-child td:first-child{
  border-bottom-left-radius:14px;
}

.pricing-table tbody tr:last-child td:last-child{
  border-bottom-right-radius:14px;
}

/* =========================================================
   Mobile
   ========================================================= */

@media only screen and (max-width:768px){

  .pricing-calculator-card{
    padding:22px;
    border-radius:18px;
    overflow:visible;
  }

  #theform{
    overflow:visible;
  }

  .calc-header{
    margin-bottom:16px;
    padding-bottom:18px;
  }

  .calc-header h3{
    font-size:1.45rem;
  }

  .calc-header p{
    font-size:.98rem;
  }

  .calc-total-box{
    border-radius:14px;
    padding:13px 16px;
  }

  .calc-total-sticky{
    top:130px;
    z-index:900;
    margin:0 0 22px;
  }

  .calc-total-box input{
    font-size:1.85rem;
    min-height:42px;
  }

  .calc-section{
    margin-top:24px;
  }

  .calc-field{
    padding:15px;
    border-radius:14px;
  }

  .calc-field label{
    font-size:1rem;
  }

  .calc-control-row{
    grid-template-columns:1fr;
    gap:10px;
  }

  .calc-control-row select,
  .calc-control-row input{
    width:100%;
    min-width:0;
    min-height:54px;
    font-size:1.05rem;
  }

  .calc-control-row select{
    background:#eef5fb;
    border:2px solid #d6e4f3;
	padding:0 54px 0 14px;
    background-position:
      calc(100% - 30px) 50%,
      calc(100% - 22px) 50%;
  }

  .calc-control-row input{
    text-align:left;
    padding-left:16px;
    background:#fff8e8;
    border:2px solid #e6c978;
    color:#8a5b00;
  }

  .pricing-table-card{
    padding:14px;
    border-radius:18px;
  }

  .pricing-table-wrap{
    overflow-x:visible;
    border-radius:14px;
  }

  .pricing-table{
    width:100%;
    min-width:0;
    table-layout:fixed;
  }

  .pricing-table thead th,
  .pricing-table tbody td{
    padding:10px 8px;
    font-size:.82rem;
    line-height:1.35;
  }

  .pricing-table thead th:first-child,
  .pricing-table tbody td:first-child{
    width:76%;
  }

  .pricing-table thead th:last-child,
  .pricing-table tbody td:last-child{
    width:24%;
    text-align:right;
    white-space:nowrap;
    font-size:.84rem;
  }

  .pricing-table tbody td:first-child{
    word-break:normal;
    overflow-wrap:break-word;
  }
}

@media only screen and (max-width:420px){

  .pricing-calculator-card{
    padding:18px;
  }

  .calc-total-sticky{
    top:70px;
  }

  .calc-total-box input{
    font-size:1.65rem;
  }

  .calc-control-row select,
  .calc-control-row input{
    font-size:1rem;
  }

  .pricing-table-card{
    padding:10px;
  }

  .pricing-table thead th,
  .pricing-table tbody td{
    padding:9px 6px;
    font-size:.78rem;
  }

  .pricing-table thead th:first-child,
  .pricing-table tbody td:first-child{
    width:74%;
  }

  .pricing-table thead th:last-child,
  .pricing-table tbody td:last-child{
    width:26%;
    font-size:.8rem;
  }
}
