.home-container {
  max-width: 95%;
  min-height: 60vh;
  margin: auto;
  margin: 50px auto 0;
}

.sub-heading {
  display: flex;
  justify-content: space-between;
}

.home-container h1 {
  font-size: 30px;
  font-weight: 700;
  color: #067577;
}

.back-btn {
  margin-top: 2rem;
  text-align: left;
}

.back-btn a {
  text-decoration: none;
  color: #004d66;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
}

.back-btn a::before {
  content: "<";
  font-size: 20px;
  margin-right: 8px;
}

.ad-tabs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 15px;
}

.ad-tab {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  background-color: white;
  box-shadow: 0px 4px 4px 0px #00000040;
  width: 100%;
}

.ad-header {
  font-weight: bold;
  margin-bottom: 15px;
  color: #067577;
  text-align: center;
  font-size: 1.2rem;
}

.ad-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ad-image-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ad-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.ad-filename {
  flex: 1;
  font-size: 0.9rem;
  color: #0f395c;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: calc(100% - 90px);
}

.ad-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.ad-textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: vertical;
  font-size: 14px;
  margin-bottom: 0;
  box-shadow: 0px 4px 4px 0px #00000040;
}

.delete-btn {
  align-self: flex-end;
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: auto;
}

.delete-btn:hover {
  background-color: #c82333;
}

.create-another-btn {
  background: linear-gradient(270deg, #1d9097 0%, rgba(9, 47, 49, 0.8) 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  display: block;
  margin: 15px auto 0;
  transition: background 0.3s ease, transform 0.2s ease;
  font-weight: 600;
}

.create-another-btn:hover {
  background: linear-gradient(270deg, #1d9097 0%, rgba(9, 47, 49, 1) 100%);
  transform: scale(1.05);
}

.hidden {
  display: none;
}

.selection-container {
  padding: 10px;
  gap: 0;
  border-radius: 10px;
  background: white;
  display: flex;
  flex-direction: column;
  text-align: center;
  max-width: 100%;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px,
    rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
  margin: auto 0;
}

.address-form-container {
  background-color: #f0f8ff;
  padding: 20px 0;
  width: 100%;
  display: flex;
  justify-content: center;
  border-radius: 10px;
  margin: 10px 0 5px 0;
}

.address-fields {
  display: flex;
  align-items: center;
  max-width: 1200px;
  gap: 10px;
  justify-content: center;
}

.address-input {
  padding: 12px 15px;
  text-align: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  color: #1a629e;
  outline: none;
  width: 800px;
  flex: none;
  min-width: 0;
  box-shadow: 0px 4px 4px 0px #0000001a inset;
}

.or-divider {
  color: #0077b6;
  font-weight: bold;
  font-size: 20px;
  padding: 0 10px;
}

.validation-section {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
}

.valid-postcode {
  font-weight: 700;
  font-size: 18px;
  color: #067577;
}

.map-layers h2 {
  font-size: 15px;
  font-weight: 400;
  line-height: 15.62px;
  letter-spacing: -0.03em;
  text-align: center;
  color: #1a629e;
}

.demographic-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  background: #f6fbff;
  height: calc(100vh - 130px);
  overflow-y: auto;
  border-radius: 5px;
  scrollbar-color: #007bff transparent;
  box-shadow: 0px 4px 4px 0px #00000040;
}

.carrier-route-heading {
  color: #067577;
}

#carrier_id {
  color: red;
}

.table th,
.table td {
  font-size: 14px;
  font-weight: 700;
  line-height: 23.44px;
  text-align: left;
  color: #067577;
}

.table td {
  font-weight: 400;
  letter-spacing: -0.03em;
}

.map-layers {
  height: calc(100vh - 130px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #1a629e transparent;
  border-radius: 5px;
  box-shadow: 0px 4px 4px 0px #00000040;
  background: #f6fbff;
}

.select-section {
  text-align: left;
  margin-top: 1rem;
}

.select-header {
  font-weight: 600;
  font-size: 16px;
  color: #0f395c;
  margin-left: 2px;
}

.radio-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.radio-btn {
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radio-btn input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ced4da;
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  position: relative;
}

.radio-btn input[type="radio"]:checked {
  border-color: #0d6efd;
}

.radio-btn input[type="radio"]:checked::after {
  content: "";
  width: 10px;
  height: 10px;
  background-color: #0d6efd;
  border-radius: 50%;
  position: absolute;
  border: 1px solid #9fccf1;
}

.option-card {
  flex-grow: 1;
  border: 1px solid #ced4da;
  border-radius: 8px;
  background-color: #fff;
  transition: all 0.2s ease;
}

.form-select,
.form-control {
  box-shadow: 0px 4px 4px 0px #00000040;
  color: #0f395c;
}

.radio-option:hover .option-card {
  border-color: #adb5bd;
  background-color: #f8f9fa;
}

.radio-option:has(input[type="radio"]:checked) .option-card {
  border-color: #a0d2eb;
  background-color: #9fccf1;
  box-shadow: 0 0 0 1px #a0d2eb;
}

.option-content {
  display: flex;
  flex-direction: column;
}

.option-title {
  font-weight: 600;
  font-size: 16px;
  color: #152850;
  text-align: center;
}

.option-price {
  color: #152850;
  font-size: 12px;
  margin-top: 3px;
  font-weight: 400;
  text-align: center;
}

.radio-option {
  position: relative;
}

.radio-option::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

#ad-size-radios {
  padding: 0px;
  margin-top: 1rem;
}

.radio-btn {
  z-index: 2;
  position: relative;
}

.targeting-container {
  margin-top: 15px;
  padding: 0 10px;
}

.targeting-header {
  display: flex;
  margin-bottom: 10px;
  padding: 0 5px;
  font-size: 14px;
  font-weight: 600;
}

.header-left,
.header-right {
  flex: 1;
  font-weight: bold;
  color: #094785;
}

.header-left {
  text-align: left;
}

.header-right {
  text-align: right;
}

.header-arrow {
  margin: 0 10px;
  color: #094785;
  font-weight: bold;
}

.form-check {
  margin-bottom: 10px;
  font-size: 12px;
  padding-left: 0;
  font-weight: 400;
}

.objective-label {
  display: flex;
  width: 100%;
  background-color: #b8e0ff;
  border-radius: 10px;
  padding: 8px 15px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.objective-label:hover {
  background-color: #a0d2eb;
}

.form-heading {
  color: #044c4e;
  font-size: 20px;
  font-weight: 700;
}

#map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.form-check-input:checked ~ .objective-label {
  background-color: #7cc3ff;
}

.objective-item {
  flex: 1;
  color: #094785;
  text-align: left;
}

.objective-arrow {
  margin: 0 15px;
  color: #094785;
}

.outcome-item {
  flex: 1;
  color: #094785;
  text-align: right;
}

.note {
  padding: 12px 15px;
  background: #ffffff;
  box-shadow: 0px 4px 4px 0px #00000040;
  border-radius: 10px;
}

.note-display {
  color: #1a629e;
  font-weight: 600;
  font-size: 15px;
}

.form-check-input {
  margin-top: 12px;
  position: relative;
  float: none;
}

#upload-context {
    height: 100px;
    width: 652px;
    border: 1px solid #9fccf1;
    box-shadow: 0px 4px 4px 0px #00000040;
    padding: 10px 20px;
    border-radius: 5px;
    background: #effbfb;
    color: #1A629E;
    font-size: 20px;
    font-weight: 500;
}

#digital-validate-btn,
#digital-add-to-cart,
#confirm-dfm-btn {
  padding: 10px;
  border-radius: 10px;
  color: white;
  width: 180px;
  font-size: 20px;
  font-weight: 700;
  line-height: 26.04px;
  transition: background 0.3s ease, transform 0.2s ease;
  background: linear-gradient(270deg, #1d9097 0%, rgba(9, 47, 49, 0.8) 100%);
  border-color: unset;
}

#digital-validate-btn:hover,
#digital-add-to-cart:hover,
#confirm-dfm-btn:hover {
  background: linear-gradient(270deg, #1d9097 0%, rgba(9, 47, 49, 1) 100%);
  transform: scale(1.05);
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
}

#budget-guide {
  display: none;
  text-decoration: underline;
  color: #0079ff;
  font-size: 12px;
  cursor: pointer;
}

#staticBackdropLabel {
  margin-left: auto;
  color: #0f395c;
  font-size: 25px !important;
  font-weight: 700;
}

#staticBackdrop .modal-dialog {
  max-width: 620px;
}

#budget-note {
  font-size: 12px;
  font-weight: 400;
  color: #1a629e;
}

#budget-note-heading {
  box-shadow: 0px 4px 4px 0px #00000040;
  padding: 10px 5px;
  border-radius: 5px;
  background: #eef6fc;
  text-align: center;
  color: #1a629e;
  font-weight: bold;
}

.home-container .modal-content {
  border: 1px solid #1d9097;
  box-shadow: 0px 4px 4px 0px #00000040;
}

.home-container .modal-header {
  border-bottom: unset;
}

.modal-subtitle {
  font-size: 20px;
  font-weight: 700;
  color: #1a629e;
  margin-top: 4px;
  margin-bottom: 0;
  margin-left: auto;
}

.home-container .modal-body ul {
  color: #067577;
  font-size: 18px;
  font-weight: 400;
  line-height: 25px;
}

.modal-title-container {
  display: block;
  margin-left: auto;
  text-align: center;
}

.loader-icon {
  font-size: 2em;
  vertical-align: middle;
  margin-right: 0.5em;
}

.overlay-text {
  color: white;
}

.designtypeselection {
  border: 1px solid #9fccf1;
  box-shadow: 0px 4px 4px 0px #00000040;
  background: white;
  color: #1a629e;
  padding: 5px;
  border-radius: 5px;
  height: 65px;
}

.designTypeLabel {
  font-size: 15px;
  font-weight: 400;
}

#designForMeModal .modal-title-container
 {
  display: block;
  margin-left: auto;
  text-align: center;
}

#designForMeModal .modal-title {
  color: #0f395c !important;
  font-weight: 700 !important;
  font-size: 30px !important;
}

#designForMeModal .modal-header {
  border-color: transparent;
}

#designForMeModal .modal-subtitle
 {
  font-size: 18px;
  font-weight: 700;
  color: #1a629e;
  margin-bottom: 10px;
  text-align: center;
}

#designForMeModal .modal-note {
  box-shadow: 0px 4px 4px 0px #00000040;
  background: #eef6fc;
  padding: 15px 15px;
  color: #1a629e;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 400;
  max-width: 85%;
  margin: auto;
}

#designForMeModal .modal-upload {
  padding: 15px 0px;
  color: #1a629e;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 400;
  max-width: 85%;
  margin: auto;
}

#designForMeModal .modal-body {
  padding-top: unset;
  padding-bottom: 45px;
}

#designForMeModal .upload-container {
  border: 0.5px solid #1d9097;
  box-shadow: 0px 4px 4px 0px #00000040;
  border-radius: 10px;
}

#designForMeModal .upload-btn  {
  background: linear-gradient(
    270deg,
    rgba(29, 144, 151, 0.8) 0%,
    rgba(161, 206, 208, 0.6) 100%
  );
  box-shadow: 0px 4px 4px 0px #00000040;
  color: #044c4e;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 18px;
}

#designForMeModal .upload-btn:hover {
  background: linear-gradient(
    270deg,
    rgba(29, 144, 151, 1) 0%,
    rgba(161, 206, 208, 0.8) 100%
  );
  transform: translateY(-2px);
  box-shadow: 0px 6px 10px 0px #00000040;
  cursor: pointer;
}

.loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  display: none;
}

@media (min-width: 768px) {
  .ad-details {
    flex-direction: row;
    align-items: flex-start;
  }

  .ad-textarea {
    flex: 1;
  }

  .delete-btn {
    align-self: flex-start;
    margin-left: 10px;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .ad-image {
    width: 60px;
    height: 60px;
  }

  .ad-filename {
    font-size: 0.8rem;
    max-width: calc(100% - 70px);
  }
}

.select-design-type {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 9px;
  background: #ffffff;
  box-shadow: 0px 4px 4px 0px #00000040;
  border-radius: 10px;
}
.design-option__label{
  color: #1a629e;
}

.design-option__fee{
  color: #1d9097;
}