.ga-dark-calc {
   background-color: #1e1f22;
   border-radius: 16px;
   padding: 30px;
   box-sizing: border-box;
   font-family: Roboto, Helvetica, Arial, sans-serif;
   width: 100%;
}

.ga-calc-title {
   color: #ffffff;
   font-size: 24px;
   font-weight: 700;
   margin-top: 0;
   margin-bottom: 25px;
}

.ga-calc-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 20px;
}

.ga-form-item {
   display: flex;
   flex-direction: column;
}

.ga-field-label {
   color: #9aa0a6;
   font-size: 14px;
   margin-bottom: 10px;
   font-weight: 500;
}

.ga-segment-control {
   display: flex;
   position: relative;
   background-color: #2b2c2f;
   border: 1px solid #44474a;
   border-radius: 10px;
   padding: 7px 2px;
   height: 48px;
   box-sizing: border-box;
   overflow: hidden;
}
.ga-dark-calc .ga-calc-submit,
.ga-dark-calc .ga-calc-submit:hover,
.ga-dark-calc .ga-calc-submit:focus,
.ga-dark-calc .ga-calc-submit:active {
   display: inline-block !important;
   visibility: visible !important;
   opacity: 1 !important;
   transition:
      background-color 0.2s ease,
      transform 0.1s ease !important;
}

.ga-slider-bg {
   position: absolute;
   top: 0;
   left: 0;
   width: 50%;
   height: 100%;
   background-color: #3b82f6;
   border-radius: 8px;
   transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
   z-index: 1;
}

.ga-segment-tab {
   flex: 1;
   position: relative;
   cursor: pointer;
   z-index: 2;
   display: flex;
   align-items: center;
   justify-content: center;
}

.ga-segment-tab input {
   position: absolute;
   opacity: 0 !important;
   width: 0;
   height: 0;
}

.ga-tab-design {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 100%;
   height: 100%;
   color: #9aa0a6;
   font-size: 15px;
   font-weight: 600;
   text-align: center;
   transition: color 0.25s ease;
}

.ga-segment-tab input:checked + .ga-tab-design {
   color: #ffffff;
}

.ga-input-box {
   background-color: #2b2c2f;
   border: 1px solid #44474a;
   border-radius: 10px;
   height: 48px;
   box-sizing: border-box;
   padding: 0 15px;
   display: flex;
   align-items: center;
   transition:
      border-color 0.2s,
      box-shadow 0.2s;
}

.ga-input-box.ga-input-error {
   border-color: #ef4444 !important;
   box-shadow: 0 0 0 1px #ef4444 !important;
}

.ga-input-box input,
.ga-input-box select {
   background: transparent !important;
   border: none !important;
   color: #ffffff !important;
   font-size: 16px !important;
   width: 100% !important;
   height: 100% !important;
   outline: none !important;
   padding: 0 !important;
   margin: 0 !important;
   box-shadow: none !important;
}

.ga-select-wrapper {
   position: relative;
}

.ga-select-wrapper select {
   appearance: none !important;
   -webkit-appearance: none !important;
   padding-right: 25px !important;
   cursor: pointer;
}

.ga-select-wrapper::after {
   content: "";
   position: absolute;
   right: 15px;
   top: 50%;
   transform: translateY(-50%);
   border: 5px solid transparent;
   border-top-color: #9aa0a6;
   pointer-events: none;
}

.ga-toggle-control {
   display: flex;
   align-items: center;
   cursor: pointer;
   height: 48px;
   position: relative;
   user-select: none;
}

.ga-toggle-control input {
   position: absolute;
   opacity: 0 !important;
}

.ga-toggle-slider {
   width: 44px;
   height: 24px;
   background-color: #44474a;
   border-radius: 20px;
   position: relative;
   margin-right: 12px;
   transition: background-color 0.2s ease;
   flex-shrink: 0;
}

.ga-toggle-slider::before {
   content: "";
   position: absolute;
   width: 18px;
   height: 18px;
   border-radius: 50%;
   background-color: #ffffff;
   left: 3px;
   top: 3px;
   transition: transform 0.2s ease;
}

.ga-toggle-control input:checked + .ga-toggle-slider {
   background-color: #3b82f6;
}

.ga-toggle-control input:checked + .ga-toggle-slider::before {
   transform: translateX(20px);
}

.ga-switch-text {
   color: #ffffff;
   font-size: 15px;
}

.ga-calc-divider {
   height: 1px;
   background-color: #2b2c2f;
   margin: 30px 0;
}

.ga-calc-footer {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 30px;
   width: 100%;
}

.ga-footer-left {
   display: flex;
   align-items: center;
}

.ga-footer-right {
   display: flex;
   align-items: center;
   text-align: right;
}

.ga-calc-submit {
   display: inline-flex !important;
   align-items: center !important;
   justify-content: center !important;
   background-color: #31c2e6;
   color: #ffffff;
   border: none;
   padding: 0 45px;
   border-radius: 10px;
   font-size: 16px;
   font-weight: 600;
   cursor: pointer;
   opacity: 1 !important;
   visibility: visible !important;
   text-transform: none !important;
   text-decoration: none !important;
   box-shadow: none;
}

.ga-calc-submit:hover {
   opacity: 1 !important;
   visibility: visible !important;
}

.ga-input-box input {
   border: 1px solid #ccc;
   transition: border-color 0.3s ease;
}

.ga-input-box input.ga-error {
   outline: none;
   box-shadow: 0 0 5px rgba(255, 0, 0, 0.2);
}

.ga-result-block {
   display: flex;
   flex-direction: column;
   align-items: flex-end;
}

.ga-result-label {
   color: #9aa0a6;
   font-size: 14px;
   margin-bottom: 5px;
}

.ga-result-value {
   color: #ffffff;
   font-size: 36px;
   font-weight: 700;
}

.ga-currency {
   font-size: 22px;
   color: #ffffff;
   margin-left: 3px;
}

.ga-hidden-block {
   display: none !important;
}

@media (max-width: 768px) {
   .ga-calc-grid {
      grid-template-columns: 1fr !important;
      gap: 15px;
   }
   .ga-calc-footer {
      flex-direction: column;
      align-items: stretch;
      gap: 20px;
   }
   .ga-footer-left,
   .ga-footer-right {
      width: 100%;
   }
   .ga-calc-submit {
      width: 100% !important;
   }
   .ga-result-block {
      align-items: center;
      width: 100%;
   }
}

.ga-dark-calc {
   background-color: #1e1f22;
   border-radius: 16px;
   padding: 30px;
   color: #fff;
}
.ga-calc-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 20px;
}
.ga-details-box {
   background: #2b2c2f;
   padding: 20px;
   border-radius: 10px;
}
.ga-details-box p {
   display: flex;
   justify-content: space-between;
   margin: 8px 0;
   font-size: 14px;
}
.ga-details-box b {
   color: #31c2e6;
}
.ga-segment-control {
   display: flex;
   position: relative;
   background-color: #2b2c2f;
   border: 1px solid #444;
   border-radius: 10px;
   height: 48px;
   overflow: hidden;
}
.ga-segment-tab {
   flex: 1;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   z-index: 2;
}
.ga-segment-tab input {
   display: none;
}
.ga-input-box.ga-error {
   border: 2px solid #ff0000 !important;
   box-shadow: 0 0 5px rgba(255, 0, 0, 0.3) !important;
}

.ga-select-wrapper select.ga-native-hidden {
   display: none !important;
}

.ga-custom-select {
   display: flex;
   align-items: center;
   width: 100%;
   height: 100%;
   cursor: pointer;
   outline: none;
}

.ga-select-value {
   color: #ffffff;
   font-size: 16px;
   flex: 1;
   user-select: none;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
   padding-right: 20px;
}

.ga-select-wrapper::after {
   transition: transform 0.2s ease;
}
.ga-select-wrapper.ga-open::after {
   transform: translateY(-70%) rotate(180deg);
}

.ga-select-wrapper.ga-open,
.ga-select-wrapper:has(.ga-custom-select:focus-visible) {
   border-color: #3b82f6;
}

.ga-select-dropdown {
   display: none;
   position: absolute;
   top: calc(100% + 6px);
   left: 0;
   right: 0;
   background-color: #2b2c2f;
   border: 1px solid #44474a;
   border-radius: 10px;
   z-index: 99;
   overflow: hidden;
   max-height: 260px;
   overflow-y: auto;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
   animation: gaDropdownIn 0.18s ease;
}

@keyframes gaDropdownIn {
   from {
      opacity: 0;
      transform: translateY(-6px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

.ga-select-wrapper.ga-open .ga-select-dropdown {
   display: block;
}

.ga-select-option {
   padding: 13px 15px;
   color: #ffffff;
   font-size: 15px;
   cursor: pointer;
   transition: background-color 0.15s ease;
   user-select: none;
}

.ga-select-option:hover {
   background-color: rgba(59, 130, 246, 0.18);
}

.ga-select-option.ga-selected {
   background-color: #3b82f6;
   color: #ffffff;
}

.ga-select-dropdown::-webkit-scrollbar {
   width: 6px;
}
.ga-select-dropdown::-webkit-scrollbar-thumb {
   background-color: #44474a;
   border-radius: 3px;
}
