.calculator-title {
  color: var(--primary-color);
}

.ielts-calculator {
  background-color: var(--secondary-color);
}

/* ---------------- SECTION INPUTS ----------------- */
.ielts-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.ielts-section {
  flex: 1 0 100%;
  display: flex;
  flex-direction: column;
  background-color: #f7f5ff;
  border: 1px solid #d9d2f5;
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(27, 8, 61, 0.06);
}

.ielts-section label {
  color: var(--text-color);
  font-weight: 500;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ielts-section label i {
  color: var(--primary-color);
}

.ielts-section select {
  font-size: 18px;
  padding: 10px 12px;
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  background-color: white;
  color: var(--text-color);
}

.ielts-section select:focus {
  outline: none;
  box-shadow: 0 0 0 3px #673de633;
}

/* Grey out the "Select band" placeholder while it is the current selection. */
.ielts-section select:has(option[value=""]:checked) {
  color: #999;
}

.ielts-section select option[value=""] {
  color: #999;
}

.raw-input {
  font-size: 16px;
  padding: 8px 12px;
  margin-top: 8px;
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  background-color: white;
  color: var(--text-color);
}

.raw-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px #673de633;
}

/* ---------------- READING TYPE TOGGLE ----------------- */
.reading-type-toggle {
  display: flex;
  margin-bottom: 8px;
}

.reading-type-button {
  flex: 1;
  padding: 6px 8px;
  font-size: 14px;
  background-color: white;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  cursor: pointer;
}

.reading-type-button:first-child {
  border-radius: 6px 0 0 6px;
  border-right: none;
}

.reading-type-button:last-child {
  border-radius: 0 6px 6px 0;
}

.reading-type-button.selected {
  background-color: var(--primary-color);
  color: white;
}

/* ---------------- RESULT ----------------- */
.ielts-result {
  margin-top: 24px;
  text-align: center;
  background-color: white;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  padding: 24px 16px;
}

.ielts-result-label {
  color: var(--text-color);
  font-size: 1rem;
  margin-bottom: 4px;
}

.ielts-result-score {
  color: var(--primary-color);
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.1;
}

.ielts-result-score.placeholder {
  color: var(--tertiary-color);
  font-size: 2.5rem;
}

.ielts-result-caption {
  color: #666666;
  font-size: 0.95rem;
  margin-top: 8px;
}

.error-message {
  color: red;
  text-align: center;
  font-size: 18px;
  padding: 4px;
}

/* ---------------- ACTION BUTTONS ----------------- */
.action-buttons {
  display: flex;
  justify-content: center;
}

.calculate-button {
  background-color: var(--primary-color);
  border: none;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  margin: 0px 5px;
  min-width: 100px;
}

.calculate-button:hover {
  font-weight: 600;
}

.reset-button {
  background-color: #e0e0e0;
  border: none;
  color: var(--primary-color);
  padding: 10px 16px;
  border-radius: 6px;
  margin: 0px 5px;
  min-width: 100px;
}

.reset-button:hover {
  font-weight: 600;
}

@media screen and (max-width: 768px) {
  .ielts-calculator {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .ielts-section {
    flex: 1 0 100%;
  }

  .ielts-result-score {
    font-size: 3rem;
  }
}
