/* Calculator Section Styles */

.rand-calculator {
  background-color: #ffffff;
  padding: 60px 16px;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  .rand-calculator {
    padding: 100px 40px;
  }
}

@media (min-width: 992px) {
  .rand-calculator {
    padding: 150px 60px;
  }
}

.rand-calculator__container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

@media (min-width: 992px) {
  .rand-calculator__container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
  }
}

@media (min-width: 1400px) {
  .rand-calculator__container {
    gap: 100px;
  }
}

/* Left Column - Content */
.rand-calculator__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  min-width: 0;
}

@media (min-width: 992px) {
  .rand-calculator__content {
    flex: 1;
    gap: 0;
    justify-content: space-between;
    min-height: 460px;
  }
}

/* Text Block */
.rand-calculator__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 992px) {
  .rand-calculator__text {
    gap: 24px;
  }
}

/* Title */
.rand-calculator__title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -1px;
  color: #222222;
  margin: 0;
}

@media (min-width: 768px) {
  .rand-calculator__title {
    font-size: 40px;
    line-height: normal;
  }
}

@media (min-width: 992px) {
  .rand-calculator__title {
    font-size: 50px;
  }
}

/* Description */
.rand-calculator__description {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #64748b;
  margin: 0;
}

@media (min-width: 768px) {
  .rand-calculator__description {
    font-size: 18px;
    line-height: normal;
  }
}

@media (min-width: 992px) {
  .rand-calculator__description {
    font-size: 20px;
  }
}

/* Inputs Container */
.rand-calculator__inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 100%;
}

@media (min-width: 992px) {
  .rand-calculator__inputs {
    flex-direction: row;
    gap: 32px;
  }
}

/* Input Group */
.rand-calculator__input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

@media (min-width: 992px) {
  .rand-calculator__input-group {
    gap: 16px;
  }
}

/* Input Label */
.rand-calculator__label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #222222;
}

@media (min-width: 992px) {
  .rand-calculator__label {
    font-size: 20px;
  }
}

/* Input Control */
.rand-calculator__control {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  border: 1px solid #dee0e4;
  border-radius: 12px;
  padding: 12px 24px;
}

@media (min-width: 992px) {
  .rand-calculator__control {
    padding: 16px 24px;
  }
}

/* Input Buttons */
.rand-calculator__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  color: #2c52f5;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.rand-calculator__btn:hover {
  opacity: 0.8;
}

.rand-calculator__btn svg {
  width: 24px;
  height: 24px;
}

/* Input Field */
.rand-calculator__input {
  flex: 1;
  min-width: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #222222;
  text-align: center;
  border: none;
  background: none;
  outline: none;
}

@media (min-width: 992px) {
  .rand-calculator__input {
    font-size: 20px;
  }
}

/* Disclaimer */
.rand-calculator__disclaimer {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: #64748b;
  margin: 0;
}

/* Right Column - Chart */
.rand-calculator__chart-column {
  width: 100%;
  max-width: 100%;
  position: relative;
  min-width: 0;
}

@media (min-width: 992px) {
  .rand-calculator__chart-column {
    flex: 1;
    min-width: 0;
  }
}

/* Result Block */
.rand-calculator__result {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

/* Result Label */
.rand-calculator__result-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: 1.96px;
  color: #64748b;
  text-transform: uppercase;
  margin: 0;
}

.rand-calculator__result-label strong {
  font-weight: 700;
}

/* Result Value */
.rand-calculator__result-value {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -1px;
  color: #222222;
  margin: 0;
}

@media (min-width: 768px) {
  .rand-calculator__result-value {
    font-size: 40px;
    line-height: normal;
  }
}

@media (min-width: 992px) {
  .rand-calculator__result-value {
    font-size: 50px;
  }
}

/* Result Earnings */
.rand-calculator__result-earnings {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #03c131;
  margin: 0;
}

@media (min-width: 992px) {
  .rand-calculator__result-earnings {
    font-size: 20px;
    line-height: normal;
  }
}

/* Chart Container */
.rand-calculator__chart-wrapper {
  width: 100%;
  max-width: 100%;
  height: 250px;
  position: relative;
}

@media (min-width: 768px) {
  .rand-calculator__chart-wrapper {
    height: 300px;
  }
}

@media (min-width: 992px) {
  .rand-calculator__chart-wrapper {
    height: 362px;
  }
}

.rand-calculator__chart-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Mobile Layout Order */
.rand-calculator__content--mobile {
  display: flex;
}

.rand-calculator__content--desktop {
  display: none;
}

@media (min-width: 992px) {
  .rand-calculator__content--mobile {
    display: none;
  }

  .rand-calculator__content--desktop {
    display: flex;
  }
}
