.form-section-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 5%;
  margin-top: 6%;
}

.form-section {
  width: 100%;
  max-width: 1400px;
  background-color: #fff;
  border-radius: 24px;
  padding: 40px 20px;
}

.form-head,
.form-subhead {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.form-head {
  flex-direction: column;
  margin-top: 5vh;
}

.form-subhead {
  margin-top: 20px;
}

.form-subhead p {
  width: 65%;
  color: var(--text-gray);
  font-size: 20px;
  line-height: 30px;
}

.form-subhead-bold {
  font-weight: bold;
}

.form-yellow-top,
.price-info-container,
.multiple-device-container,
.form-footer {
  max-width: 1264px;
  width: 100%;
}

.form-yellow-top {
  background-color: #fefcda;
  border: 4px solid #fef9ba;
  border-radius: 16px;
  padding: 40px;
  margin: 30px auto 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.title-icon-text {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 32px;
}

.title-icon {
  width: 24px;
  height: 24px;
}

.title-text {
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: var(--text-gray);
}

.title-cont,
.device-form {
  width: 100%;
}

.device-help-text,
.red-text {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 19px;
  color: #f42120;
  margin-top: 6px;
}
.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  text-align: start;
}

.form-group input {
  width: 100%;
  height: 64px;
  padding-right: 40px;
  padding-left: 16px;
  border: 1px solid var(--input-border, #ccc);
  border-radius: 12px;
  font-weight: 400;
  line-height: 19px;
  color: #000;
  box-sizing: border-box;
}

/* Keep red information icon stay inside the field*/
.form-group .input-icon {
  position: absolute;
  right: 12px;
  top: calc(36px + 1rem);
  transform: translateY(-20%);
  width: 24px;
  height: 24px;
  pointer-events: none;
}

/* Error class */
.form-group.error select,
.form-group.error input {
  border-color: #f42120 !important;
}

.form-group label {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-gray);
}

.form-group input,
.form-group select {
  padding: 12px 16px;
  border: 2px solid #dcdcdc;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 400;
  outline-color: var(--primary-green);
  transition: border-color var(--transition);
  color: var(--text-gray);
  height: 64px;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary-green);
}

.form-group select {
  background: url("../svg/dropdown-arrow.svg") no-repeat right 16px center;
  background-size: 10px 6px;
  cursor: pointer;
  background-color: #fff;
}

.form-button {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  width: 93%;
  margin-top: 40px;
  justify-items: center;
}

.form-grid-button {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 304px;
}

/* Main button styles applied to the <a> */
.form-grid-button a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  height: 78px;
  width: 100%;
  border-radius: var(--radius-sm);
  border: none;
  background: #edf1f7;
  cursor: pointer;
  transition: transform 0.2s ease, background-color var(--transition),
    border var(--transition);
  text-decoration: none;
  color: inherit;
}

.form-grid-button span {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  text-align: center;
}

.form-grid-button:hover a {
  background-color: rgb(238, 253, 242);
  border: 2px solid var(--primary-green);
}

.form-grid-button:hover .btn-label {
  color: var(--text-dark);
}

.grid-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.btn-label {
  color: var(--text-muted);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Dynamic Fields */
.dynamic-row {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(150px, 1fr)
  ); /** max 6 fields in a row **/
  gap: 24px;
  margin-bottom: 24px;
}

.group-short {
  display: flex;
  gap: 8px;
  flex: 1;
}

.group-medium {
  display: flex;
  gap: 8px;
}

.form-group.short,
.form-group.long {
  flex: 1;
}

/* Reverse layout (2:1) */
.group-medium .form-group:first-child {
  flex: 2;
}

.group-medium .form-group:last-child {
  flex: 1;
}

/* Reverse layout (1:2) */
.group-medium.reverse .form-group:first-child {
  flex: 1;
}
.group-medium.reverse .form-group:last-child {
  flex: 2;
}

.multiple-link-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-gray);
  padding: 8px 12px;
  border-radius: 12px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  transition: background-color var(--transition);
  box-sizing: border-box;
  max-width: 100%;
  text-decoration: none;
}

.multiple-link-button:hover {
  background-color: var(--primary-green);
}

.multiple-link-button .icon-left {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.multiple-device-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border: 2px solid #46cc55;
  border-radius: 999px;
  background-color: transparent;
  height: 64px;
  margin-top: 24px;
  cursor: pointer;
  margin: 30px auto 0;
  transition: color 0.3s, text-decoration 0.3s;
  gap: 10px;
  text-decoration: none;
}

.multiple-device-container p {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 22px;
  color: #2d8737;
}

.multiple-device-container:hover {
  background-color: var(--light-green-bg);
}

.multiple-device-container img {
  width: 24px;
  height: 24px;
  margin-bottom: 5px;
}

.form-footer {
  margin: 30px auto 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 2%;
  padding-bottom: 50px;
}

.save-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  background-color: #3fb84b;
  border-radius: 999px;
  border: none;
  height: 80px;
  width: 100%;
  gap: 15px;
  cursor: pointer;
  transition: color 0.3s, text-decoration 0.3s;
}

.save-btn:hover {
  background-color: var(--primary-green);
  box-shadow: var(--XXHardXShard) var(--YYHardXShard) var(--BlurBlurHardXShard)
    var(--SpreadSpreadHardXShard) var(--PrimaryButtonsShadow);
}

.save-btn img {
  width: 24px;
}

.save-btn p {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 22px;
  color: #fff;
}

.price-info-container {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin: 30px auto 0;
}

.total-price-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.total-price-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.total-price-text .currency-text,
.total-price-text .currency-title {
  font-weight: 400;
  font-size: 56px;
  line-height: 66px;
  color: var(--text-gray);
}

.total-price-text .currency-text {
  font-weight: 700;
  margin-top: 5px;
}

.total-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: row;
  height: 80px;
  gap: 16px;
  border-radius: 999px;
  background-color: #eefdf2;
  padding: 2px 16px 0 24px;
}

.total-amount h3 {
  font-weight: 700;
  font-size: 56px;
  line-height: 66px;
}

.discount-text {
  margin-top: 1%;
  color: var(--text-gray);
}

.update-price-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  width: 195px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid var(--primary-green);
  padding: 10px 20px 10px 32px;
  background-color: transparent;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
}

.update-price-container:hover {
  background-color: var(--primary-green);
}

.update-price-container:hover p {
  color: #fff;
}

.update-price-container p {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 22px;
  color: #2d8737;
}

.icon-calculator {
  width: 24px;
  height: 24px;
  cursor: pointer;
  pointer-events: auto;
}

.icon-calculator path {
  fill: #2d8737;
  transition: fill 0.3s ease;
}

/* Change icon fill only when .update-price-container is hovered */
.update-price-container:hover .icon-calculator path {
  fill: #fff;
}

.payment-form {
  width: 100%;
}

/* --- Responsive Styles --- */
@media (max-width: 1200px) {
  .form-button {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .btn-label {
    font-size: 16px;
    margin: 0;
    white-space: nowrap;
  }

  .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0; /* Prevent icon from shrinking */
  }
}

@media (max-width: 1090px) {
  .form-grid-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    min-width: 160px;
    border-radius: 8px;
  }

  .form-grid-button span {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

@media (max-width: 955px) {
  .total-price-text {
    flex-direction: column;
  }

  .price-info-container {
    align-items: center;
    flex-direction: column-reverse;
    gap: 0;
  }

  .total-price-info {
    align-items: center;
  }

  .total-price-text .currency-text,
  .total-price-text .currency-title {
    font-size: 40px;
  }
}

@media (max-width: 805px) {
  .form-button {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .form-grid-button span {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    padding: 20px 30px;
    width: auto;
    min-width: 240px;
    text-wrap: nowrap;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
  }

  .form-button {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
    width: 100%;
  }

  .form-grid-button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-width: 100%; /* Let buttons shrink to content */
  }

  .btn-label {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    text-wrap: wrap;
    margin-left: 6px;
  }

  .dynamic-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
  }

  .icon {
    height: 40px;
    width: 40px;
  }

  /* Remove the inner border effect on hover */
  .form-grid-button span:hover {
    border: 2px solid transparent;
    background-color: rgb(238, 253, 242);
  }

  .form-footer {
    padding: 0 20px 30px;
    gap: 16px;
  }

  .price-info-container {
    flex-direction: column-reverse;
    align-items: center;
    gap: 0;
    margin: 0;
  }

  .total-price-info {
    width: 100%;
    align-items: center;
  }

  .total-price-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 50px;
  }

  .total-amount {
    flex-direction: row;
    width: 100%;
    gap: 25px;
  }

  .total-amount h3 {
    font-size: 40px;
    line-height: 35px;
  }

  .update-price-container {
    padding: 10px 16px;
  }

  .discount-text {
    text-align: center;
    margin-top: 8px;
  }

  .save-btn {
    height: 60px;
  }

  .save-btn p {
    font-size: 16px;
  }

  .save-btn img {
    width: 20px;
  }

  .form-yellow-top {
    padding: 20px;
  }
}

@media (max-width: 630px) {
  .form-button {
    gap: 1px;
  }

  .form-grid-button {
    height: 90%;
  }

  .btn-label {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    text-wrap: wrap;
    margin-left: 6px;
  }

  .icon {
    height: 40px;
    width: 40px;
  }

  .form-grid-button span:hover {
    border: 2px solid transparent;
  }
}

@media (max-width: 577px) {
  .total-price-text .currency-text,
  .total-price-text .currency-title {
    font-size: 30px;
  }
}

@media (max-width: 520px) {
  .total-amount {
    width: 100%;
    gap: 5px;
  }
}

@media (max-width: 493px) {
  .form-section {
    padding: 0px 10px;
  }

  .form-subhead p {
    width: 100%;
    margin-top: 20px;
  }

  .form-grid-button {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    width: 100%;
  }

  .btn-label {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-wrap: wrap;
    margin-left: 6px;
  }

  .total-price-text .currency-text,
  .total-price-text .currency-title {
    font-size: 24px;
    line-height: 30px;
  }

  .save-btn {
    gap: 5px;
  }

  .save-btn p {
    font-size: 12px;
  }

  .icon {
    height: 25px;
    width: 25px;
  }

  .total-amount {
    flex-direction: column;
    height: 100px;
    gap: 5px;
  }

  .multiple-link-button {
    font-size: 12px;
  }
}

/******************** FORM TWO ******************/
.top-row-two {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.residence-form,
.profile-form {
  width: 100%;
  text-align: center;
  margin-bottom: 2%;
}

.formTwo-head,
.formTwo-subhead {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.formTwo-head {
  flex-direction: column;
  margin-top: 5vh;
}

.formTwo-subhead {
  margin-top: 20px;
}

.formTwo-subhead p {
  width: 65%;
  color: var(--text-gray);
  font-size: 20px;
  line-height: 30px;
}

.formTwo-subhead-bold {
  font-weight: bold;
}

.formTwo-footer {
  max-width: 1264px;
}

.title-icon-text-center {
  align-items: center;
  gap: 12px;
}

.title-text-two {
  font-weight: 700;
  font-size: 32px;
  line-height: 44px;
  color: var(--text-gray);
  white-space: normal;
}

.title-cont-formTwo,
.residence-form,
.profile-form {
  width: 100%;
  justify-self: center;
  text-align: center;
}

.device-help-text,
.red-text {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 19px;
  color: #f42120;
  margin-top: 6px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

select option[disabled] {
  color: var(--text-muted);
}

/* Radio */
.radio-group {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.radio-input {
  position: relative;
  display: flex;
  align-items: center;
  width: 384px;
  height: 64px;
  border: 2px solid var(--highlight-yellow);
  background-color: var(--highlight-yellow);
  border-radius: 16px;
  padding: 0 24px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
  gap: 16px;
}

.radio-input input[type="radio"] {
  display: none;
}

.custom-radio {
  height: 20px;
  width: 20px;
  border: 2px solid #e8d600;
  background-color: #fff;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.radio-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.radio-content p {
  font-weight: 700;
  font-size: 20px;
  color: var(--text-muted);
  margin: 0;
}

/* Fill circle when selected */
.radio-input input[type="radio"]:checked ~ .custom-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Checked state text color */
.radio-input:has(input[type="radio"]:checked) p {
  color: var(--text-gray);
}

/* Checked state background */
.radio-input:has(input[type="radio"]:checked) {
  background-color: #fff;
  border-color: var(--gold);
}

/* Hover */
.radio-input:hover {
  background-color: #fff;
  border-color: var(--gold);
}

.custom-radio {
  height: 20px;
  width: 20px;
  border: 2px solid #e8d600;
  background-color: #fff;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.radio-input input[type="radio"]:checked + .radio-content .custom-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.radio-group p {
  font-family: "Baloo Bhaijaan 2", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 0;
  color: var(--text-muted);
}

.radio-input:has(input[type="radio"]:checked) p {
  color: var(--text-gray);
  background-color: #fff;
}

.radio-input:has(input[type="radio"]:checked) {
  background-color: #fff;
  border: 2px solid var(--gold);
}

/* Hover effect */
.radio-input:hover {
  background-color: #fff;
  border-color: var(--gold);
}

.radio-input:has(input[type="radio"]:checked):hover {
  background-color: #fff;
  border-color: var(--gold);
}

/* Hide the default radio button */
.radio-input input[type="radio"] {
  display: none;
}

/* Circle fill when selected */
.radio-input input[type="radio"]:checked + .custom-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 6px solid #ab9f00;
}

/* hover effect */
.radio-input:hover .custom-radio {
  border: 6px solid #ab9f00;
}

.formTwo-group {
  text-align: left;
  flex-direction: column;
}

.formTwo-group label {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-gray);
  margin-top: 2%;
  line-height: 19px;
}

.formTwo-group input:focus,
.formTwo-group select:focus {
  border-color: var(--primary-green);
}

.formTwo-group select {
  background: url("../svg/dropdown-arrow.svg") no-repeat right 16px center;
  background-size: 10px 6px;
  cursor: pointer;
  background-color: #fff;
}

.middle-row {
  display: flex;
  gap: 16px;
  margin: 16px 0;
}

.middle-row .formTwo-group {
  flex: 1;
}

.formTwo-footer {
  margin: 30px auto 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  margin-top: 3%;
  padding-bottom: 50px;
}

.prev-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  background-color: transparent;
  border-radius: 999px;
  border: none;
  border: 2px solid var(--primary-green);
  height: 80px;
  width: 100%;
  gap: 15px;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  box-shadow: var(--XXSoftXSsoft) var(--YYSoftXSsoft) var(--BlurBlurSoftXSsoft)
    var(--SpreadSpreadSoftXSsoft) var(--PrimaryButtonsShadow);
}

.prev-btn:hover {
  background-color: var(--primary-green);
  box-shadow: var(--XXHardXShard) var(--YYHardXShard) var(--BlurBlurHardXShard)
    var(--SpreadSpreadHardXShard) var(--PrimaryButtonsShadow);
}

.prev-btn:hover p {
  color: #fff;
}

.prev-btn img {
  width: 24px;
  height: 12px;
}

.prev-btn p {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 20px;
  color: #2d8737;
}

.icon-right {
  width: 24px;
  height: 24px;
  transform: rotate(180deg);
  cursor: pointer;
  pointer-events: auto;
}

.icon-right path {
  fill: #2d8737;
  transition: fill 0.3s ease;
}

/* Change icon fill only when .prev-btn is hovered */
.prev-btn:hover .icon-right path {
  fill: #fff;
}

.input-icon-formTwo {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(10%);
  width: 20px;
  height: 20px;
  border: 1.5px solid #4caf50;
  border-radius: 4px;
  background: white;
  pointer-events: none;
}

/* Residence  Middle Row*/
.formTwo-group select {
  font-family: "Roboto", sans-serif;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 400;
  outline-color: var(--primary-green);
  transition: border-color var(--transition);
  border: 1px solid #dcdcdc;
  color: var(--text-gray);
  height: 64px;
  line-height: 19px;
  letter-spacing: 0;
}

.psc-container {
  position: relative;
}

.input-icon-formTwo {
  border: none;
  outline: none;
  box-shadow: none;
}

/* Responsive Styles */
@media screen and (max-width: 1440px) {
  .formTwo-subhead p {
    width: 75%;
  }
}

/* --- Responsive Styles --- */
@media (max-width: 1200px) {
  .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0; /* Prevent icon from shrinking */
  }
}

@media screen and (max-width: 1090px) {
  .formTwo-subhead p {
    width: 85%;
    font-size: 18px;
    line-height: 27px;
  }

  .radio-group {
    flex-wrap: wrap;
    justify-content: center;
  }

  .radio-input {
    width: 45%;
    min-width: 200px;
  }

  .title-text-two {
    font-size: 28px;
    line-height: 38px;
  }
}

@media screen and (max-width: 768px) {
  .formTwo-subhead p {
    width: 100%;
    font-size: 16px;
    line-height: 24px;
  }

  .radio-input {
    width: 100%;
  }

  .formTwo-footer {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .prev-btn {
    height: 56px;
  }

  .title-text-two {
    font-size: 24px;
    line-height: 32px;
  }

  .icon {
    height: 40px;
    width: 40px;
  }
}

@media (max-width: 630px) {
  .icon {
    height: 40px;
    width: 40px;
  }
}

@media (max-width: 520px) {
  .group-short {
    flex-direction: column;
  }

  .group-medium {
    flex-direction: column;
  }
}

@media screen and (max-width: 480px) {
  .formTwo-subhead p {
    font-size: 14px;
    line-height: 21px;
  }
  .radio-input p {
    font-size: 12px;
  }

  .prev-btn {
    height: 48px;
    margin-top: 5%;
  }

  .prev-btn p {
    font-size: 12px;
  }

  .formTwo-footer {
    gap: 5px;
  }

  .title-text-two {
    font-size: 20px;
    line-height: 28px;
  }

  .icon {
    height: 25px;
    width: 25px;
  }
}

/****************** FORM THREE *****************/
.formThree-head,
.formThree-subhead {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.formThree-head {
  flex-direction: column;
  margin-top: 5vh;
}

.formThree-subhead {
  margin-top: 20px;
}

.formThree-subhead p {
  width: 65%;
  color: var(--text-gray);
  font-size: 20px;
  line-height: 30px;
}

.formThree-subhead-bold {
  font-weight: bold;
}

.table-yellow-top,
.formThree-footer {
  max-width: 1264px;
}

.title-icon-text {
  align-items: center;
  gap: 12px;
  height: 32px;
}

.title-icon {
  width: 24px;
  height: 24px;
}

.title-cont-formThree .second-box,
.full-width {
  width: 100%;
  justify-self: center;
  /* text-align: center; */
}

.red-text-formThree {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 19px;
  color: #f42120;
  margin-top: 6px;
}

/* 1st table - RESPONSIVE */
.first-table {
  width: 100%;
  max-width: 1184px;
  min-width: 600px;
  border-collapse: collapse;
  border-radius: 16px;
  margin: 0 auto;
  margin-top: 1%;
  margin-bottom: 2%;
  display: block;
  table-layout: fixed;
  box-shadow: 2px 4px 6px 0px rgba(0, 0, 0, 0.1);
}

.first-table thead tr,
.first-table tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.first-table thead tr {
  background-color: var(--highlight-yellow);
  border-bottom: 1px solid var(--gold);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.first-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 16px;
}

.first-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 16px;
}
.first-table th {
  padding: 8px 24px;
  text-align: left;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 19px;
  letter-spacing: 0;
  color: var(--text-muted);
}

.first-table th:last-child {
  border-right: none;
}

.first-table td {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  height: 51px;
  padding: 16px 24px;
  line-height: 19px;
  text-align: left;
  font-size: 14px;
  color: var(--text-gray);
  border-top: 1px solid var(--gold); /* Row divider */
  background-color: #fff;
  word-break: break-word;
  box-sizing: border-box;
}

.first-table tbody tr:first-child td {
  border-top: none; /* Remove top border on first row */
}

.first-table tbody td:first-child {
  font-weight: 600;
}

/* Wide column for last cell */
.first-table .wide-col {
  width: 40%;
}

.first-table td:not(.wide-col) {
  width: 20%;
}

/* 2nd Box */
.box-container {
  width: 100%;
  max-width: 1184px;
  height: 136px;
  display: flex;
  align-items: start;
  gap: 10px;
  border-radius: 16px;
  padding: 24px;
  background: #fff;
  box-sizing: border-box;
  flex-wrap: wrap;
  box-shadow: 2px 4px 6px 0px rgba(0, 0, 0, 0.1);
}

.box-part {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bold-name {
  font-weight: 600;
}

.box-text {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #333;
  line-height: 22px;
}

/* Radio */
.radio-group-formThree {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.radio-input-formThree {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 384px;
  height: 64px;
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 16px 24px;
  background-color: #fff;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.3s ease;
}

.radio-input-formThree .custom-radio-formThree {
  border: 2px solid var(--gold);
}

.radio-content-formThree {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 10px;
  text-align: center;
}

.radio-content-formThree .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
}

.main-text {
  font-family: "Baloo Bhaijaan 2", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
  color: var(--text-gray);
  margin: 0;
}

.subtext {
  font-size: 14px;
  line-height: 19px;
  color: var(--text-muted);
  margin: 0;
}

.radio-input-formThree:has(input[type="radio"]:checked) .main-text,
.radio-input-formThree:has(input[type="radio"]:checked) p {
  color: var(--text-muted);
}

.radio-input-formThree:has(input[type="radio"]:checked) {
  background-color: #fff;
  border: 2px solid var(--gold);
}

/* Hover effect */
.radio-input-formThree:hover {
  background-color: #fff;
  border-color: var(--gold);
}

.radio-input-formThree:has(input[type="radio"]:checked):hover {
  background-color: #fff;
  border-color: var(--gold);
}
/* Hide the default radio button */
.radio-input-formThree input[type="radio"] {
  display: none;
}

/* Style the custom radio circle */
.custom-radio-formThree {
  height: 20px;
  width: 20px;
  border: 2px solid var(--gold); /* customize border color */
  background-color: #fff;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  box-sizing: border-box;
}

/* Circle fill when selected */
.radio-input-formThree
  input[type="radio"]:checked
  + .custom-radio-formThree::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 6px solid #ab9f00; /* customize border color */
}

/* hover effect */
.radio-input-formThree:hover .custom-radio-formThree {
  border: 6px solid #ab9f00;
}

.main-text {
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 0;
  color: var(--text-gray);
}

/* nasaan ito? */
.sub-text {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  size: 14px;
  line-height: 19px;
  letter-spacing: 0;
}

.radio-input-formThree:has(input[type="radio"]:checked) {
  background-color: var(--highlight-yellow);
  border: none;
}

.radio-input-formThree:has(input[type="radio"]:checked)
  .custom-radio-formThree {
  border: 2px solid var(--gold);
}

.formThree-group {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.formThree-group label {
  width: 584px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-gray);
  margin-top: 2%;
}

.payment-desc {
  width: 42%;
  height: 57px;
  font-weight: 400;
  size: 14px;
  line-height: 19px;
  letter-spacing: 0;
  color: var(--text-muted);
  margin-top: 2%;
}

.formThree-button {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  width: 93%;
  margin-top: 40px;
  justify-items: center;
}

.formThree-footer {
  margin: 30px auto 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  margin-top: 2%;
  padding-bottom: 50px;
}

.icon-right-formThree {
  width: 24px;
  height: 24px;
  transform: rotate(180deg);
  cursor: pointer;
  pointer-events: auto;
}

.icon-right-formThree path {
  fill: #2d8737;
  transition: fill 0.3s ease;
}

/* Change icon fill only when .prev-btn is hovered */
.prev-btn-formThree:hover .icon-right-formThree path {
  fill: #fff;
}

.prev-btn-formThree p {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 20px;
  color: #2d8737;
}

.prev-btn-formThree:hover p {
  color: #fff;
}

.formThree-price-info-container,
.formThree-footer {
  max-width: 1264px;
  width: 100%;
}

.formThree-price-info-container {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin: 30px auto 0;
}
.formThree-discount-text {
  color: var(--text-gray);
}

.formThree-discount-text,
.red-text-formThree {
  font-size: 14px;
  margin-top: 12px;
}

.formThree-total-price-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.formThree-total-price-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.formthree-total-price-text h3 {
  font-weight: 400;
  font-size: 56px;
  line-height: 66px;
  color: var(--text-gray);
}

.formThree-total-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  height: 80px;
  gap: 16px;
  border-radius: 999px;
  background-color: #eefdf2;
  padding: 2px 16px 2px 24px;
}

.currency-text {
  font-weight: 700;
  font-size: 56px;
  line-height: 66px;
  color: #2e3c42;
}

.formThree-update-price-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  width: 195px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid var(--primary-green);
  background-color: transparent;
  padding: 10px 20px 10px 32px;
  gap: 8px;
  cursor: pointer;
}

.formThree-update-price-container:hover {
  background-color: var(--primary-green);
}

.formThree-update-price-container:hover p {
  color: #fff;
}

.formThree-update-price-container p {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 22px;
  color: #2d8737;
}

.formThree-icon-calculator {
  width: 24px;
  height: 24px;
  cursor: pointer;
  pointer-events: auto;
}

.formThree-icon-calculator path {
  fill: #2d8737;
  transition: fill 0.3s ease;
}

.formThree-update-price-container:hover .formThree-icon-calculator path {
  fill: #fff;
}

/* --- Responsive Styles --- */
@media (max-width: 1200px) {
  .box-container {
    flex-wrap: wrap;
    gap: 10px;
  }

  .currency-text {
    font-size: 40px;
  }

  .formThree-subhead p {
    width: 90%;
    font-size: 16px;
  }

  .payment-desc {
    font-size: 13px;
    line-height: 1.3;
  }

  .formThree-button {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .formThree-head {
    margin-top: 4vh;
  }
}

@media (max-width: 1090px) {
  .formThree-subhead p {
    width: 85%;
    font-size: 18px;
    line-height: 27px;
  }
  .radio-group-formThree {
    flex-wrap: wrap;
    justify-content: center;
  }

  .radio-input-formThree {
    width: 45%;
    min-width: 200px;
  }

  .title-text-two {
    font-size: 28px;
    line-height: 38px;
  }
}

@media (max-width: 870px) {
  .formThree-total-price-text {
    flex-direction: column;
  }

  .formThree-price-info-container {
    align-items: center;
    flex-direction: column-reverse;
    gap: 0;
  }
}

@media (max-width: 805px) {
  .formThree-button {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .table-scroll-container {
    width: 100%;
    overflow-x: auto;
  }

  .first-table {
    overflow-x: auto;
  }

  .radio-group-formThree {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .formThree-group label {
    width: 100%;
    font-size: 16px;
  }

  .radio-input-formThree {
    width: 100%;
    max-width: none;
    height: auto;
    padding: 12px 16px;
    gap: 8px;
    justify-content: flex-start;
  }

  .radio-input-formThree .icon {
    width: 32px;
    height: 32px;
  }

  .radio-input-formThree p.main-text {
    font-size: 18px;
    line-height: 1.2;
  }

  .radio-input-formThree p.sub-text {
    font-size: 14px;
  }

  .payment-desc {
    width: 100%;
    font-size: 14px;
    line-height: 1.4;
    margin-top: 12px;
    padding-left: 0;
    padding-right: 0;
  }

  .multiple-link-button {
    padding: 6px 10px;
    gap: 6px;
    font-size: 16px;
  }

  .multiple-link-button .icon-left {
    width: 18px;
    height: 18px;
  }

  .formThree-price-info-container,
  .formThree-total-price-info {
    align-items: center;
    text-align: center;
  }

  .formThree-total-price-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .formThree-total-amount {
    flex-direction: row;
    width: 100%;
    gap: 25px;
  }

  .formThree-total-price-text h3 {
    font-size: 48px;
    line-height: 40px;
  }

  .currency-text {
    font-size: 40px;
    line-height: 35px;
  }

  .formThree-update-price-container {
    padding: 10px 16px;
  }

  .formThree-discount-text,
  .red-text-formThree {
    font-size: 14px;
    margin-top: 12px;
  }

  .formThree-subhead p {
    width: 100%;
    font-size: 16px;
    line-height: 24px;
  }

  .radio-input-formThree {
    width: 100%;
  }

  .formThree-footer {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .formThree-button {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
    width: 100%;
  }

  .title-text-two {
    font-size: 24px;
    line-height: 32px;
  }
}

@media (max-width: 600px) {
  .table-yellow-top {
    padding: 24px 12px;
  }

  .box-container {
    flex-direction: column;
    height: auto;
  }

  .formThree-subhead p {
    width: 100%;
  }

  .title-icon-text {
    font-size: 24px;
  }

  .formThree-group label {
    width: 100%;
  }
}

@media (max-width: 630px) {
  .formThree-button {
    gap: 1px;
  }

  .icon {
    height: 40px;
    width: 40px;
  }
}

@media (max-width: 577px) {
  .formThree-total-price-text .currency-text,
  .formThree-total-price-text .currency-title {
    font-size: 30px;
  }
}

@media (max-width: 520px) {
  .formThree-total-amount {
    flex-direction: column;
    width: 100%;
    height: 100px;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .multiple-link-button {
    font-size: 13px;
    padding: 6px 8px;
    gap: 4px;
  }

  .multiple-link-button .icon-left {
    width: 16px;
    height: 16px;
  }

  .icon {
    height: 25px;
    width: 25px;
  }

  .formThree-subhead p {
    font-size: 14px;
  }

  .formThree-total-price-text .currency-text,
  .formThree-total-price-text .currency-title {
    font-size: 24px;
    line-height: 30px;
  }

  .formThree-update-price-container {
    font-size: 14px;
    padding: 6px 12px;
    width: 100%;
    justify-content: center;
  }

  .formThree-price-info-container {
    gap: 12px;
  }
}

@media (max-width: 400px) {
  .title-icon-text {
    font-size: 20px;
  }

  .radio-input-formThree {
    padding: 10px 12px;
  }

  .radio-input-formThree .icon {
    width: 24px;
    height: 24px;
  }

  .radio-input-formThree p.main-text {
    font-size: 16px;
  }

  .radio-input-formThree p.sub-text {
    font-size: 12px;
  }

  .payment-desc {
    font-size: 12px;
  }
}

@media screen and (max-width: 360px) {
  .radio-input-formThree {
    padding: 10px 8px;
  }
}

/********************* FORM FOUR **********************/
.certificate-container {
  display: flex;
  flex-direction: row;
  gap: 40px;
}

.left-container {
  width: 572px;
  height: 152px;
  gap: 24px;
}

.left-container h1 {
  font-weight: 700;
  size: 32px;
  line-height: 44px;
  letter-spacing: 0;
  color: var(--text-dark);
}

.left-container p {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: var(--text-dark);
  letter-spacing: 0;
  margin-top: 2%;
  width: 100%;
}

.right-container {
  width: 572px;
  height: 264px;
  padding: 24px;
  gap: 10px;
  border-radius: 12px;
  background: #ffffff;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.right-container {
  width: 572px;
  height: 264px;
  padding: 24px;
  gap: 16px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.right-top-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cert-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cert-icon {
  width: 20px;
  height: 20px;
}

.cert-row p {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
  color: var(--text-gray);
}

.download-button {
  display: flex;
  align-items: center;
  width: 226px;
  height: 48px;
  gap: 8px;
  background-color: #3fb84b;
  color: white;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  padding: 10px 20px 10px 32px;
  box-shadow: var(--XXSoftXSsoft) var(--YYSoftXSsoft) var(--BlurBlurSoftXSsoft)
      var(--SpreadSpreadSoftXSsoft) var(--PrimaryButtonsShadow),
    var(--XXHardXShard) var(--YYHardXShard) var(--BlurBlurHardXShard)
      var(--SpreadSpreadHardXShard) var(--PrimaryButtonsShadow);
}

.download-button:hover {
  background-color: var(--primary-green);
}

.download-icon {
  width: 20px;
  height: 20px;
}

.right-top-content h1 {
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0;
  color: var(--text-dark);
}

/* --- Responsive Styles --- */
@media (max-width: 1400px) {
  .certificate-container {
    flex-direction: column;
    align-items: center;
  }

  .left-container,
  .right-container {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .left-container h1 {
    font-size: 26px;
    line-height: 36px;
    text-align: center;
  }

  .left-container p {
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    width: 100%;
  }

  .right-container {
    padding: 20px;
    align-items: center;
    text-align: center;
  }

  .right-top-content h1 {
    font-size: 20px;
    line-height: 28px;
  }

  .cert-row {
    justify-content: center;
  }

  .download-button {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .top-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
  }

  .icon {
    height: 40px;
    width: 40px;
  }

  .price-info-container {
    flex-direction: column-reverse;
    align-items: center;
    gap: 0;
  }

  .total-price-info {
    width: 100%;
    align-items: center;
  }

  .total-price-text {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    text-align: center;
  }

  .total-price-text .currency-text,
  .total-price-text .currency-title {
    font-size: 32px;
    line-height: 40px;
  }

  .discount-text {
    text-align: center;
    margin-top: 8px;
  }
}

@media (max-width: 600px) {
  .formFour-yellow-top {
    padding: 20px;
    gap: 16px;
  }

  .left-container h1,
  .right-top-content h1 {
    font-size: 22px;
    line-height: 30px;
  }

  .left-container p,
  .cert-row p {
    font-size: 15px;
    line-height: 22px;
  }

  .cert-row {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .cert-icon {
    width: 24px;
    height: 24px;
  }

  .download-button {
    font-size: 14px;
    padding: 10px 16px;
    gap: 6px;
  }
}

@media (max-width: 345px) {
  .cert-row {
    justify-content: start;
  }

  .cert-row p {
    font-size: 12px;
  }

  .left-container h1,
  .right-top-content h1 {
    font-size: 20px;
  }

  .left-container p {
    font-size: 14px;
  }
}
