/* ====COST CALCULATOR ====== */

:root{
  --cc-radius-xl: 28px;
  --cc-radius-lg: 22px;
  --cc-radius-pill: 30px;

  --cc-bg: rgba(8, 48, 68, 0.55);
  --cc-card: rgba(255,255,255,0.06);
  --cc-card-2: rgba(255,255,255,0.08);

  --cc-border: rgba(255,255,255,0.12);
  --cc-border-2: rgba(255,255,255,0.18);

  --cc-text: #ffffff;
  --cc-text-2: rgba(255,255,255,0.85);
  --cc-text-3: rgba(255,255,255,0.70);

  --cc-shadow: 0 18px 60px rgba(0,0,0,0.25);

  --cc-btn-bg: #ffffff;
  --cc-btn-text: #083044;
}

.cc-card {
  height: 100%;
}

.ccalc{
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(25, 154, 218 ,0.1);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
  display: flex;
  flex-direction: column;
}

.ccalc__form{
  padding: 40px 50px;
  flex: 0;
}

.ccalc__field label{
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 150%;
  padding-bottom: 10px;
  color: #fff;
}

.ccalc__field input,
.ccalc__field select{
  width: 100%;
  height: 45px;
  border-radius: 30px;
  padding: 14px 14px;
  border: 1px solid rgba(101, 164, 173, 0.4);
  background: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  outline: none;
}

.ccalc__field select{
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(0,0,0,.55) 50%),
    linear-gradient(135deg, rgba(0,0,0,.55) 50%, transparent 50%);
  background-position: calc(100% - 27px) 19px, calc(100% - 20px) 19px;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}

.ccalc__field--engine .ccalc__hint{
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255,255,255,.65);
}

.ccalc__pills{
  display:flex;
  gap: 10px;
  flex-wrap: nowrap;
}

.ccalc__pill{
  flex: 1 1 160px;
  display:flex;
  align-items:center;
  gap: 10px;
  height: 47px;
  padding: 14px 14px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(101, 164, 173, 0.4);
}
.ccalc__pill input{
  height: 45px;
  border: 0;
  padding: 0;
  font-size: 16px;
  background: transparent;
  font-weight: 500;
  outline: none;
}
.ccalc__pill span{
  margin-left: auto;
  font-size: 14px;
  color: rgba(0,0,0,.55);
  font-weight: 700;
}

.ccalc__fees{
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding: 31px 50px;
  flex: 0;
}
.ccalc__fees_item{
  display:flex;
  align-items:center;
}
.ccalc__fee{
  flex: 0 0 auto; 
  text-align:start;
}
.ccalc__divider{
  flex: 1 1 auto; 
  position: relative;
  height: 100%;
}
.ccalc__divider::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,.3);
}
@media (max-width:410px){
  .ccalc__fees_item{ flex-direction:column; align-items:stretch; }
  .ccalc__divider{ display:none; }
  .ccalc__fee{ padding:12px 0; border-bottom:1px solid rgba(255,255,255,.3); }
  .ccalc__fee:last-child{ border-bottom:0; }
}

.ccalc__fee-label{
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 11px;
}
.ccalc__fee-val{
  font-size: 24px;
  font-weight: 500;
  color: #fff;
}

.ccalc__total{
  display:flex;
  justify-content: space-between;
  align-items:center;
  flex: 1;
  gap: 10px;
  padding: 30px 50px;
  background: rgba(1, 49, 70);
  width: 100%;
}

@media (max-width: 575px){
  .ccalc__total{ flex-direction: column; align-items: stretch; }
}

.ccalc__total-label{
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
}

.ccalc__total-sum{
  display:flex;
  gap: 6px;
  align-items: baseline;
  color: #fff;
  font-weight: 400;
  font-size: 30px;
}

.ccalc__total-sum strong{
  font-weight: 700;
}

.ccalc__meta{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.75);
}

.ccalc__note{
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255,255,255,.65);
}

.cc-btn-l {
  font-weight: 500;
  gap: 10px;
  margin-top: 9px;
  transition: all 0.2s ease-in-out;
  span{ 
    font-size: 16px; 
    line-height: 1; 
    color: #386477;
    transition: all 0.2s ease-in-out; 
  }
}

.cc-btn-l:hover span{ color: #fff;}
/* Error box */
.ccalc__error{
  margin: 14px 22px 22px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,0,0,.12);
  border: 1px solid rgba(255,0,0,.25);
  color: #fff;
}
.cc-left { min-height: 1px; }
.cc-left > * { position: relative; z-index: 1; }
.ccalc__field select{
  color: #0b2230;
  background-color: rgba(255,255,255,.95);
  -webkit-text-fill-color: #0b2230;
}

.ccalc__field select option{
  color: #0b2230;
  background: #fff;
}

.ccalc__field select{
  opacity: 1 !important;
}
.ccalc__field select{
  padding-right: 44px;
}



/* ================================
   Choices.js  for калькулятора
   ================================ */

#cost_calculator .ccalc-choices {
  width: 100%;
}

#cost_calculator .ccalc-choices .choices__inner {
  width: 100%;
  min-height: 46px;    
  padding: 10px 44px 10px 16px;  
  border-radius: 30px;       
  border: 0;
  background: #fff;
  color: #0b1b24;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

#cost_calculator .ccalc-choices .choices__item--selectable {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
}

#cost_calculator .ccalc-choices *,
#cost_calculator .ccalc-choices *::before,
#cost_calculator .ccalc-choices *::after {
  box-sizing: border-box;
}

#cost_calculator .ccalc-choices[data-type*="select-one"]::after {
  right: 18px;
  width: 8px;
  height: 8px;
  border: solid #0b1b24;
  border-width: 0 2px 2px 0;
  transform: translateY(-50%) rotate(45deg);
  margin-top: 0;
  top: 50%;
}
#cost_calculator .ccalc-choices.is-open .choices__inner {
  border-radius: 23px 23px 0 0;
}
#cost_calculator .ccalc-choices .choices__list--dropdown,
#cost_calculator .ccalc-choices .choices__list[aria-expanded] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  display: block;    
  margin-top: 0px;
  border-radius: 0 0 23px 23px;
  border: 0;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  overflow: hidden;
  z-index: 9999;
}

#cost_calculator .ccalc-choices.is-open .choices__list--dropdown,
#cost_calculator .ccalc-choices.is-open .choices__list[aria-expanded] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

#cost_calculator .ccalc-choices .choices__list--dropdown .choices__item {
  padding: 12px 16px;
  background: #fff;
  color: #0b1b24;
}
#cost_calculator .ccalc-choices .choices__list--dropdown .choices__item--selectable {
  font-weight: 400;
}
.choices__list--dropdown .choices__item--selectable:after {
  display: none;
}
#cost_calculator .ccalc-choices .choices__list--dropdown .choices__item--selectable.is-highlighted {
  color: #34C759;
  font-weight: 400;
}

#cost_calculator .ccalc-choices .choices__list--dropdown .choices__item.is-selected {
  font-weight: 600;
}
#cost_calculator .ccalc-choices .choices__list--dropdown .choices__item.is-selected :after{
          content: " ";
        font-size: 12px;
        opacity: 0;
        position: absolute;
        right: 10px;
        top: 50%;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
}
#cost_calculator .ccalc-choices .choices__input {
  display: none !important;
}

#cost_calculator select {
  appearance: none;
}
#cost_calculator .ccalc-choices .choices__input--cloned {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#cost_calculator .ccalc-choices input[type="text"] {
  box-shadow: none !important;
  border: 0 !important;
  outline: 0 !important;
}
#cost_calculator .ccalc-choices .choices__inner {
  display: flex !important;
  align-items: center !important;
}

#cost_calculator .ccalc-choices .choices__list--single {
  padding: 0 !important;
}
#cost_calculator .ccalc-choices input.choices__input--cloned {
  display: none !important;
}




#cost_calculator.ccalc--busy .ccalc__fees,
#cost_calculator.ccalc--busy .ccalc__total-sum {
  opacity: 0.58;
  transition: opacity .12s ease;
}

#cost_calculator .ccalc__fees,
#cost_calculator .ccalc__total-sum {
  transition: opacity .12s ease;
}

#cost_calculator .ccalc__total-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#cost_calculator .ccalc__total-label::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity .12s ease, transform .12s ease;
  background: currentColor;
}

#cost_calculator.ccalc--busy .ccalc__total-label::after {
  opacity: .35;
  transform: scale(1);
  animation: ccalcPulse 0.9s ease-in-out infinite;
}

@keyframes ccalcPulse {
  0%, 100% { opacity: .2; }
  50% { opacity: .5; }
}

@media (max-width: 1880px){
  .ccalc__total-sum {
    font-size: 25px;
    gap: 3px;
  }
  .ccalc__total, .ccalc__fees {
    padding: 30px 40px;
  }
  .ccalc__form {
    padding: 40px 40px;
    flex: 0;
  }
}

@media (max-width: 1599px){
  .ccalc__total {
    flex-direction: column;
    align-items: normal;
  }
  .ccalc__total, .ccalc__fees {
    padding: 20px 40px;
  }
  .ccalc__form {
    padding: 30px 40px;
  }
}
@media (max-width: 1199px){
  .ccalc__total {
    flex-direction: row;
  }
}
@media (max-width: 991px){
  .ccalc__total, .ccalc__fees, .ccalc__form {
    padding: 18px 30px;
  }
  .ccalc__total {
    flex-direction: column;
    align-items: normal;
  }
  .ccalc__form .row-gap-24 {
    row-gap: 12px;
  }
  .ccalc__form .mb-20{
    margin-bottom: 12px;
  }
    .ccalc__fees_item{
    display:flex;
    flex-wrap: wrap;
    align-items: stretch;
    row-gap: 12px;
  }
  .ccalc__fees_item > .ccalc__fee{
    flex: 1 1 calc(50% - 25px);
    min-width: 0;
  }
  .ccalc__fees_item > .ccalc__divider{
    flex: 0 0 1px;
    width: 1px;
    height: auto;
    margin: 0 16px;
  }
  .ccalc__fees_item > .ccalc__divider::before{
    left: 0;
    transform: translate(0, -50%);
    height: 56px; 
  }
  .ccalc__fees_item > .ccalc__divider:nth-child(4){
    flex: 0 0 100%;
    width: 100%;
    height: 0;
    margin: 0;
  }
  .ccalc__fees_item > .ccalc__divider:nth-child(4)::before{
    display: none;
  }
}
@media (max-width: 575px){
  .ccalc__total, .ccalc__fees, .ccalc__form {
    padding: 15px 15px;
  }
  .ccalc__fee {
    padding: 9px 0;
  }
  .ccalc__fees_item {
    row-gap: 0px;
  }
  .ccalc__total-sum {
    font-size: 22px;
  }
  .ccalc__fee-label {
    margin-bottom: 7px;
  }
  .ccalc__form .row-gap-24 {
    row-gap: 8px;
  }
  .ccalc__form .mb-20{
    margin-bottom: 8px;
  }
  .ccalc__field label {
    padding-bottom: 5px;
  }
  .ccalc__fee-val {
    font-size: 21px;
  }
  .ccalc__fees_item > .ccalc__divider {
    margin: 0 9px;
  }
  .ccalc__fees_item > .ccalc__fee {
    flex: 1 1 calc(50% - 11px);
  }
}
@media (max-width: 410px){
  .ccalc__total-sum {
    gap: 0px;
    flex-direction: column;
    align-items: center;
  }
  .ccalc__fee-val {
    font-size: 24px;
  }
  .ccalc__total-left {
    text-align: center;
  }
}