main {
  display: flex;
  justify-content: center;
  align-items: center;
}

.breadcrum {
  width: 280px !important;
}

.cost-calculator-section {
  width: 100%;
  padding: 50px 80px;
  background-color: #f8f8f8;
  display: flex;
  justify-content: center;
}

.container {
  border-radius: 8px;
  padding: 50px 98px;
  box-shadow: 0 4px 6.8px 4px #00000017;
  background-color: #ffffff;
}

.container p {
  color: #00000099;
}

.calculator-features {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature h3 {
  margin-bottom: 6px;
}

.radios {
  display: flex;
  gap: 18px;
}

.radio {
  display: flex;
  gap: 8px;
  color: #00000099;
  font-size: 18px;
  font-weight: 400;
}

.radio input {
  width: 24px;
}

.row-2 {
  display: flex;
  gap: 38px;
}

.row-2 input {
  height: 52px;
  width: 100%;
  border: 1px solid #0000003d;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 18px;
  font-weight: 400;
  line-height: 32px;
  outline: none;
}

.wrapper input {
  border: 0;
  border-left: 1px solid #ccc;
  border-radius: 0;
}

.row-2 select {
  height: 52px;
}

.shifting {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.options {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.option {
  border-radius: 12px;
  border: 2px solid #0000002d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* padding: 14px 28px; */
  gap: 26px;
  width: 145px;
  height: 143px;
  cursor: pointer;
}

.option:hover {
  transform: scale(1.05);
  box-shadow: 0 0 5px 2px #fee82333;
}

.option img {
  width: 55px;
  height: 55px;
}

.option.active {
  background-color: #fff9bb;
}

.checkbox {
  margin-top: 36px;
  margin-bottom: 42px;
  font-size: 18px;
  font-weight: 400;
  color: #00000099;
  display: flex;
  align-items: center;
  gap: 18px;
}

.checkbox input {
  width: 24px;
  height: 24px;
}

.calculate-btn {
  background-color: #fee823;
  border-radius: 8px;
  border: none;
  outline: none;
  padding: 10px;
  width: 659px;
  height: 54px;
  font-size: 18px;
  font-weight: 500;
  line-height: 34px;
  margin: 0 auto;
}

.calculate-btn:hover {
  background-color: #000000;
  color: #ffffff;
}

.calculate-btn:hover img {
  filter: invert(1);
}

.calculate-btn img {
  width: 14px;
  margin-left: 5px;
}

.phone-field {
  display: flex;
}

.phone-field select {
  width: 57px;
  border-right: none;
  border-radius: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  font-size: 18px;
  border-color: #0000003d;
  outline: none;
}

.phone-field input {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.btn-container {
  display: flex;
  justify-content: center;
}


/* --- 2. The Main Container --- */
.wrapper {
  position: relative;
  /* Needed for positioning the dropdown */
  height: 52px;
  border: 1px solid #0000003d;
  border-radius: 4px;
  width: 100%;
  /* width: 380px; */
  flex: 1;
}

.input-container {
  background-color: white;
  padding: 10px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
  /* Keeps input above the dropdown when closed */
  height: 52px;
}

/* --- 3. Left Side (Selector) --- */
.country-selector {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding-right: 6px;
  user-select: none;
  /* Prevents text highlighting on clicks */
}

.flag-icon {
  width: 28px;
  height: 19px;
  border-radius: 2px;
  object-fit: cover;
  margin-right: 8px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
}

.country-code {
  color: #999;
  font-size: 18px;
  margin-right: 8px;
  font-weight: 400;
}

/* --- 4. Custom Arrows --- */
.arrow-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.arrow-up {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 6px solid #999;
}

.arrow-down {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #999;
}

.phone-input {
  border: none;
  outline: none;
  font-size: 18px;
  color: #333;
  flex-grow: 1;
  height: 100%;
}

/* --- 6. The Dropdown List (New) --- */
.country-list {
  position: absolute;
  top: 110%;
  /* Pushes it just below the input */
  left: 0;
  width: 100%;
  background: white;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  /* Limits height */
  overflow-y: auto;
  /* Adds scrollbar if list is long */
  display: none;
  /* Hidden by default */
  z-index: 10;
  list-style: none;
}

/* Scrollbar styling for a cleaner look */
.country-list::-webkit-scrollbar {
  width: 8px;
}

.country-list::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

.country-list.show {
  display: block;
}

.country-option {
  padding: 10px 15px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

.country-option:last-child {
  border-bottom: none;
}

.country-option:hover {
  background-color: #f9f9f9;
}

.option-flag {
  width: 24px;
  height: 16px;
  margin-right: 10px;
  object-fit: cover;
  border-radius: 2px;
}

.option-name {
  flex-grow: 1;
  font-size: 14px;
  color: #333;
}

.option-code {
  font-size: 14px;
  color: #999;
  font-weight: bold;
}


/*-------------------
   Smaller desktop
-------------------*/
@media(max-width: 1280px) {
  .cost-calculator-section {
    padding: 50px 60px;
  }
}



/*-------------------
    Tablet view
-------------------*/
@media(max-width: 1024px) {
  .cost-calculator-section {
    padding: 50px 40px;
  }

  .container {
    padding: 32px 30px;
  }

  .row-2 {
    gap: 18px;
  }

  .calculator-features {
    gap: 32px;
  }

  .shifting {
    gap: 12px;
  }

  .calculate-btn {
    width: 389px;
  }

  .checkbox {
    margin-bottom: 40px;
  }
}



/*-------------------
    Mobile view
-------------------*/
@media(max-width: 767px) {
  .cost-calculator-section {
    padding: 36px 24px;
  }

  .container {
    padding: 32px 16px;
  }

  .checkbox {
    margin-top: 24px;
    margin-bottom: 36px;
  }

  .shifting,
  .feature {
    gap: 8px;
  }

  .row-2 {
    flex-direction: column;
    gap: 24px;
  }

  .calculate-btn {
    width: 292px;
  }

  .option {
    width: 136px;
  }
}



/*------------------------------*/
@media(max-width: 1400px) {
  .options {
    flex-wrap: wrap;
  }
}

@media(max-width: 511px) {
  .options {
    max-width: 284px;
    margin: 0 auto;
  }
}

@media(max-width: 425px) {
  .radios {
    flex-direction: column;
  }

  .radio {
    height: 48px;
    align-items: center;
    gap: 18px;
  }

  .radio input {
    height: 24px;
  }
}