.casm-search-wrap,
.casm-result-wrap {
  --casm-accent: #F1BE73;
  --casm-dark: #27344A;
  --casm-text: #172033;
  --casm-muted: #64748b;
  box-sizing: border-box;
  width: 100%;
}

.casm-search-wrap *,
.casm-search-wrap *::before,
.casm-search-wrap *::after,
.casm-result-wrap *,
.casm-result-wrap *::before,
.casm-result-wrap *::after {
  box-sizing: border-box;
}

.casm-search-title {
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.casm-search-form {
  display: flex;
  align-items: stretch;
  width: min(760px, 100%);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border: 2px solid var(--casm-accent);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.casm-search-form:focus-within {
  border-color: var(--casm-accent);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.22), 0 0 0 4px rgba(241, 190, 115, 0.18);
}

.casm-search-input {
  width: 100%;
  min-height: 58px;
  border: 0 !important;
  outline: 0 !important;
  padding: 0 18px !important;
  font-size: 18px;
  line-height: 1.2;
  color: var(--casm-text);
  background: #fff;
  box-shadow: none !important;
  appearance: none;
}

.casm-search-input::-webkit-search-decoration,
.casm-search-input::-webkit-search-cancel-button,
.casm-search-input::-webkit-search-results-button,
.casm-search-input::-webkit-search-results-decoration {
  display: none;
}

.casm-search-input::placeholder {
  color: #555;
  opacity: 1;
}

.casm-search-button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  background: var(--casm-accent);
  color: #172033;
  padding: 0 24px;
  min-height: 58px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.casm-search-button:hover,
.casm-search-button:focus {
  filter: brightness(0.96);
  color: #172033;
}

.casm-search-button:active {
  transform: translateY(1px);
}

.casm-button-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.casm-button-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.casm-button-icon-wrap svg,
.casm-button-icon-wrap i {
  width: 1em;
  height: 1em;
  font-size: 1em;
  display: block;
}

.casm-result-wrap {
  max-width: 100%;
}

.casm-status {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.casm-status-success {
  background: rgba(46, 125, 50, 0.1);
  color: #1b5e20;
  border: 1px solid rgba(46, 125, 50, 0.25);
}

.casm-status-warning {
  background: rgba(241, 190, 115, 0.18);
  color: #6b4300;
  border: 1px solid rgba(241, 190, 115, 0.6);
}

.casm-status-info {
  background: rgba(39, 52, 74, 0.08);
  color: var(--casm-dark);
  border: 1px solid rgba(39, 52, 74, 0.16);
}

.casm-map {
  width: 100%;
  min-height: 260px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(39, 52, 74, 0.14);
  box-shadow: 0 22px 55px rgba(39, 52, 74, 0.14);
  background: #f4f5f7;
  isolation: isolate;
}

.casm-map .leaflet-control-attribution {
  font-size: 10px;
}

.elementor-widget-casm_area_search .casm-search-form,
.elementor-widget-casm_area_map .casm-map,
.elementor-widget-casm_area_map .casm-status {
  transition: all 0.25s ease;
}

@media (max-width: 767px) {
  .casm-search-wrap {
    width: 100%;
  }

  .casm-search-title {
    font-size: 16px;
    line-height: 1.25;
    margin-bottom: 14px;
    text-align: center;
  }

  .casm-search-form {
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 6px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  }

  .casm-search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    min-height: 56px;
    padding-left: 14px !important;
    padding-right: 12px !important;
    font-size: 18px;
  }

  .casm-search-button {
    flex: 0 0 auto;
    width: auto;
    min-height: 56px;
    padding-left: 14px;
    padding-right: 14px;
    font-size: 14px;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .casm-search-input {
    font-size: 16px;
    padding-left: 12px !important;
    padding-right: 8px !important;
  }

  .casm-search-button {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 13px;
  }
}
