.cgc-page {
  background: #fff;
  color: #1f2937;
}

.cgc-container {
  width: min(1170px, calc(100% - 40px));
  margin: 0 auto;
}

/* Hero */
.cgc-hero {
  padding: 60px 0 20px;
  text-align: center;
}

.cgc-hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cgc-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 42px;
  background: #e7f8f2;
  color: #10b981;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.cgc-hero__title {
  margin: 0;
  color: #1f2937;
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
}

.cgc-hero__title span {
  color: #10b981;
}

.cgc-hero__subtitle {
  max-width: 798px;
  margin: 0;
  color: #6c757d;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
}

/* Tool */
.cgc-tool-section {
  padding: 30px 0;
}

.cgc-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.cgc-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.cgc-result-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
}

.cgc-result-card--gpa {
  border: 1px solid #d5f2e9;
  background: #eefaf5;
}

.cgc-result-card--credits {
  border: 1px solid #e5e7eb;
  background: #fff;
}

.cgc-result-card__label {
  margin: 0;
  color: #111827;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.cgc-result-card--credits .cgc-result-card__label {
  text-align: center;
}

.cgc-result-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.cgc-result-card__value {
  color: #10b981;
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 700;
  line-height: 18px;
}

.cgc-result-card--credits .cgc-result-card__value {
  color: #111827;
}

#ai_gpa_cummulative_gpa.low {
  color: #dc1e1e;
}

#ai_gpa_cummulative_gpa.medium {
  color: #f49e0c;
}

#ai_gpa_cummulative_gpa.high {
  color: #10b981;
}

.cgc-result-card__hint {
  margin: 0;
  color: #4f4f4f;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.cgc-progress {
  display: flex;
  flex-direction: column;
  gap: 11px;
  width: 100%;
}

.cgc-progress__labels {
  display: flex;
  justify-content: space-between;
  color: #6c757d;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.cgc-progress__track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbf5ec;
}

.cgc-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: width 0.2s ease;
}

.cgc-weighted {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.cgc-weighted__text h3 {
  margin: 0 0 8px;
  color: #000;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.cgc-weighted__text p {
  margin: 0;
  color: #4f4f4f;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.cgc-weighted__control {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.cgc-weighted__toggle {
  position: relative;
  flex-shrink: 0;
  width: 47px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #e5e7eb;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cgc-weighted__toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.cgc-weighted--on .cgc-weighted__toggle {
  background: #10b981;
}

.cgc-weighted--on .cgc-weighted__toggle::after {
  transform: translateX(19px);
}

.cgc-weighted__state {
  color: #4f4f4f;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.cgc-prior {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.cgc-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cgc-field__label {
  margin: 0;
  color: #4f4f4f;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.cgc-stepper {
  display: flex;
  align-items: stretch;
  height: 56px;
}

.cgc-stepper__btn {
  display: inline-flex;
  min-width: 56px;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #131313;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cgc-stepper__btn:first-child {
  border-radius: 12px 0 0 12px;
}

.cgc-stepper__btn:last-child {
  border-radius: 0 12px 12px 0;
}

.cgc-stepper__btn:hover {
  background: #f9fafb;
}

.cgc-stepper input {
  width: 100%;
  min-width: 0;
  padding: 15px 20px;
  border: 1px solid #e5e7eb;
  border-right: none;
  border-left: none;
  color: #131313;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}

.cgc-stepper input::placeholder {
  color: #131313;
}

.cgc-stepper input::-webkit-outer-spin-button,
.cgc-stepper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.cgc-stepper input:focus {
  border-color: #10b981;
  box-shadow: inset 0 0 0 1px #10b981;
}

.ai-gpa-semesters {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cgc-semester {
  width: 100%;
}

.cgc-semester__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border: 1px solid #e5e7eb;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
}

.cgc-semester__title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cgc-semester__title {
  color: #000;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.cgc-semester__badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 42px;
  background: #e7f8f2;
  color: #009a67;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.cgc-semester__delete {
  padding: 0;
  border: none;
  background: none;
  color: #4f4f4f;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s ease;
}

.cgc-semester__delete:hover {
  color: #dc1e1e;
}

.cgc-semester__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 0 0 12px 12px;
}

.cgc-courses {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cgc-course {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 187px 111px 25px;
  gap: 12px;
  align-items: end;
}

.cgc-course + .cgc-course .cgc-course__label {
  display: none;
}

.cgc-course__label {
  display: block;
  margin-bottom: 12px;
  color: #4f4f4f;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.cgc-course__field--name input,
.cgc-course__field--grade select,
.cgc-course__field--level select {
  width: 100%;
  height: 56px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #4f4f4f;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  outline: none;
}

.cgc-course__field--name input::placeholder {
  color: #afafaf;
}

.cgc-course__field--name input:focus,
.cgc-course__field--grade select:focus,
.cgc-course__field--level select:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}

.cgc-course__field--grade select,
.cgc-course__field--level select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%234F4F4F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.cgc-course__field--level {
  display: none;
}

.cgc-tool--weighted .cgc-course__field--level {
  display: block;
}

.cgc-tool--weighted .cgc-course {
  grid-template-columns: minmax(0, 1fr) 128px 160px 111px 25px;
}

.cgc-course__field--credits .ai_course_cred-box {
  margin: 0;
}

.cgc-course__field--credits .cgc-stepper {
  height: 56px;
}

.cgc-course__field--credits .cgc-stepper input {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.cgc-course__field--credits .cgc-stepper__btn {
  display: none;
}

.cgc-course__delete {
  display: inline-flex;
  width: 25px;
  height: 56px;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  border: none;
  background: none;
  color: #4f4f4f;
  cursor: pointer;
  transition: color 0.15s ease;
}

.cgc-course__delete:hover {
  color: #dc1e1e;
}

.cgc-add-course {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 10px 30px;
  border: none;
  border-radius: 12px;
  background: #e7f8f2;
  color: #333;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cgc-add-course:hover {
  background: #def5ed;
}

.cgc-add-semester {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 10px 30px;
  border: none;
  border-radius: 12px;
  background: #10b981;
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cgc-add-semester:hover {
  background: #0ea572;
}

/* Content sections */
.cgc-section {
  padding: 80px 0 100px;
}

.cgc-section__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
  text-align: center;
}

.cgc-section__header h2 {
  margin: 0;
  color: #000;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: normal;
}

.cgc-section__header p {
  margin: 0;
  color: #6c757d;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
}

.cgc-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.cgc-step-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.cgc-step-card__icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #10b981;
  color: #fff;
}

.cgc-step-card__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cgc-step-card h3 {
  margin: 0;
  color: #000;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
}

.cgc-step-card:nth-child(2) h3,
.cgc-step-card:nth-child(3) h3 {
  line-height: 1.2;
}

.cgc-step-card p {
  margin: 0;
  color: #4f4f4f;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.cgc-grades {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.cgc-grade-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.cgc-grade-card strong {
  color: #000;
  font-family: var(--font-body);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.5;
}

.cgc-grade-card span {
  color: #4f4f4f;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.cgc-grades__note {
  grid-column: 2 / -1;
  align-self: end;
  margin: 0;
  color: #4f4f4f;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.cgc-why {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.cgc-why-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.cgc-why-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cgc-why-card__icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
  color: #fff;
}

.cgc-why-card__icon--green {
  background: #10b981;
}

.cgc-why-card__icon--orange {
  background: #f49e0c;
}

.cgc-why-card__icon--blue {
  background: #3f73ec;
}

.cgc-why-card__icon--pink {
  background: #ec4799;
}

.cgc-why-card h3 {
  margin: 0;
  color: #000;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
}

.cgc-why-card p {
  margin: 0;
  color: #4f4f4f;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.cgc-table-wrap {
  overflow-x: auto;
}

.cgc-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

.cgc-table th,
.cgc-table td {
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
  width: 33.333333%;
}

.cgc-table thead th {
  background: #f8f8f8;
  font-weight: 600;
}

.cgc-table tbody td {
  font-weight: 400;
}

.cgc-table thead th:first-child {
  border-radius: 12px 0 0 0;
}

.cgc-table thead th:last-child {
  border-radius: 0 12px 0 0;
}

.cgc-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 12px;
}

.cgc-table tbody tr:last-child td:last-child {
  border-radius: 0 0 12px 0;
}

@media (max-width: 1100px) {
  .cgc-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cgc-grades {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cgc-grades__note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .cgc-container {
    width: 100%;
    max-width: 362px;
    margin: 0 auto;
  }

  .cgc-hero {
    padding: 40px 20px 20px;
  }

  .cgc-hero__container {
    gap: 16px;
    max-width: none;
    width: 100%;
  }

  .cgc-hero__title {
    font-size: 32px;
  }

  .cgc-hero__subtitle {
    font-size: 18px;
    line-height: 26px;
  }

  .cgc-tool-section {
    padding: 30px 20px;
  }

  .cgc-tool {
    max-width: none;
    width: 100%;
  }

  .cgc-results,
  .cgc-prior {
    grid-template-columns: 1fr;
  }

  .cgc-weighted {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .cgc-semester__title-wrap {
    gap: 10px;
  }

  .cgc-course {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
  }

  .cgc-course__field--name {
    width: 100%;
  }

  .cgc-course__field--grade {
    width: 160px;
  }

  .cgc-course__field--credits {
    width: 111px;
  }

  .cgc-tool--weighted .cgc-course__field--level {
    width: 100%;
  }

  .cgc-tool--weighted .cgc-course {
    display: flex;
    flex-wrap: wrap;
  }

  .cgc-course__delete {
    flex: 1 0 auto;
    justify-content: flex-start;
    width: 25px;
    height: 56px;
    margin-top: 0;
  }

  .cgc-section {
    padding: 20px;
  }

  .cgc-section .cgc-container {
    max-width: none;
    width: 100%;
  }

  .cgc-section__header {
    margin-bottom: 24px;
    text-align: center;
  }

  .cgc-section__header h2 {
    font-size: 28px;
  }

  .cgc-section__header p {
    font-size: 18px;
    line-height: 26px;
  }

  .cgc-steps,
  .cgc-why {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cgc-step-card h3,
  .cgc-why-card h3 {
    font-size: 20px;
    line-height: 1.5;
  }

  .cgc-grades {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .cgc-grade-card strong {
    font-size: 28px;
  }

  .cgc-grades__note {
    grid-column: 1 / -1;
    align-self: auto;
  }
}
