/* App layout fixes for uploaded media */

.service-box-items {
  overflow: hidden;
}

.service-box-items .service-image {
  margin-top: 20px !important;
  height: 200px !important;
  overflow: hidden;
  border-radius: 8px;
  background-color: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-box-items .service-image img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.service-card-items .service-image {
  overflow: hidden;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-items .service-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.services-wrapper-3 .service-box-items-3 .service-thumb {
  overflow: hidden;
}

.services-wrapper-3 .service-box-items-3 .service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.service-details-section img.w-100,
.service-details-wrapper .service-details-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

/* Bootstrap form selects — do not inherit theme nice-select look */
form .form-select,
.form-select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.625rem 2.25rem 0.625rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

form .form-select:focus,
.form-select:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Safety: if nice-select was applied inside a form, neutralize theme teal dropdown */
form .nice-select {
  width: 100% !important;
  min-height: 48px;
  padding: 0.625rem 0.75rem !important;
  border: 1px solid #ced4da !important;
  border-radius: 0.375rem !important;
  background-color: #fff !important;
  display: flex !important;
  align-items: center;
  float: none !important;
}

form .nice-select::after {
  right: 14px !important;
  top: 50% !important;
  margin-top: -4px;
  border-color: #343a40 !important;
}

form .nice-select .list {
  background-color: #fff !important;
  color: #212529 !important;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  right: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1050;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

form .nice-select .option {
  color: #212529 !important;
  border: none !important;
  padding: 0.5rem 0.75rem !important;
  min-height: auto !important;
  line-height: 1.4 !important;
}

form .nice-select .option:hover,
form .nice-select .option.focus,
form .nice-select .option.selected.focus {
  background-color: #f8f9fa !important;
  color: #212529 !important;
}

form .nice-select .current {
  color: #212529 !important;
}

/* Homepage CTA layout fixes */
.cta-section {
  padding-top: 40px;
}

.cta-section .cta-wrapper {
  margin-top: 0 !important;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-section .cta-wrapper .section-title {
  position: relative;
  z-index: 3;
  max-width: min(540px, 55%);
}

.cta-section .cta-wrapper .section-title h2 {
  line-height: 1.2;
}

.cta-section .cta-wrapper > .theme-btn {
  position: relative;
  z-index: 3;
  align-self: flex-start;
}

.cta-section .cta-wrapper .cta-image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(46%, 480px);
  height: auto !important;
  overflow: hidden;
  border-radius: 0 30px 30px 0;
  z-index: 1;
}

.cta-section .cta-wrapper .cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cta-section .cta-wrapper .hand-bag,
.cta-section .cta-wrapper .prite-box,
.cta-section .cta-wrapper .t-shirt-shape {
  z-index: 2;
  pointer-events: none;
}

.cta-section .cta-wrapper .t-shirt-shape {
  display: none !important; /* template asset is a grey 150x152 placeholder */
}

@media (max-width: 991px) {
  .cta-section .cta-wrapper .section-title {
    max-width: 100%;
  }

  .cta-section .cta-wrapper .cta-image {
    width: 40%;
    opacity: 0.35;
  }
}

@media (max-width: 767px) {
  .cta-section .cta-wrapper .cta-image {
    display: none !important;
  }

  .cta-section .cta-wrapper .section-title {
    max-width: 100%;
  }
}
