/* =========================================================
   Modern button system (site-wide)
   ========================================================= */
:root {
  --btn-primary: #0468ff;
  --btn-primary-hover: #0354d4;
  --btn-primary-active: #0246b3;
  --btn-success: #1f9d55;
  --btn-success-hover: #188248;
  --btn-danger: #e11d48;
  --btn-danger-hover: #be123c;
  --btn-muted: #f3f4f6;
  --btn-muted-text: #374151;
  --btn-muted-border: #e5e7eb;
  --btn-radius: 10px;
  --btn-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(4, 104, 255, 0.18);
  --btn-shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.08), 0 8px 20px rgba(4, 104, 255, 0.24);
}

button.button,
input[type="button"],
input[type="submit"],
a.button {
  --btn-bg: var(--btn-primary);
  --btn-bg-hover: var(--btn-primary-hover);
  --btn-bg-active: var(--btn-primary-active);
  --btn-color: #fff;
  --btn-border: transparent;

  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  position: relative;
  top: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  margin: 0 8px 8px 0;
  border: 1px solid var(--btn-border);
  border-radius: var(--btn-radius);
  background: var(--btn-bg) !important;
  background-image: none !important;
  color: var(--btn-color) !important;
  font-family: 'Nunito', 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--btn-shadow);
  transform: translateY(0);
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

button.button:before,
a.button:before,
input[type="button"]:before,
input[type="submit"]:before {
  display: none !important;
  content: none !important;
}

button.button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
a.button:hover {
  background: var(--btn-bg-hover) !important;
  color: var(--btn-color) !important;
  box-shadow: var(--btn-shadow-hover);
  transform: translateY(-1px);
  opacity: 1;
}

button.button:active,
input[type="button"]:active,
input[type="submit"]:active,
a.button:active {
  background: var(--btn-bg-active) !important;
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

button.button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
a.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(4, 104, 255, 0.28), var(--btn-shadow);
}

button.button:disabled,
button.button.is-disabled,
a.button.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

a.button.border,
button.button.border {
  --btn-bg: #fff;
  --btn-bg-hover: #f8fafc;
  --btn-bg-active: #eff6ff;
  --btn-color: var(--btn-primary);
  --btn-border: rgba(4, 104, 255, 0.45);
  box-shadow: none;
}

a.button.border:hover,
button.button.border:hover {
  --btn-border: var(--btn-primary);
  box-shadow: 0 4px 14px rgba(4, 104, 255, 0.12);
}

a.button.white,
button.button.white {
  --btn-bg: #fff;
  --btn-bg-hover: #f8fafc;
  --btn-bg-active: #f1f5f9;
  --btn-color: #111827;
  --btn-border: #e5e7eb;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

a.button.gray,
button.button.gray {
  --btn-bg: var(--btn-muted);
  --btn-bg-hover: #e5e7eb;
  --btn-bg-active: #d1d5db;
  --btn-color: var(--btn-muted-text);
  --btn-border: var(--btn-muted-border);
  box-shadow: none;
}

a.button.success,
button.button.success,
a.button.btn-success,
button.button.btn-success {
  --btn-bg: var(--btn-success);
  --btn-bg-hover: var(--btn-success-hover);
  --btn-bg-active: #146c3b;
  --btn-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(31, 157, 85, 0.22);
  --btn-shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.08), 0 8px 20px rgba(31, 157, 85, 0.28);
}

a.button.danger,
button.button.danger {
  --btn-bg: var(--btn-danger);
  --btn-bg-hover: var(--btn-danger-hover);
  --btn-bg-active: #9f1239;
  --btn-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(225, 29, 72, 0.2);
  --btn-shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.08), 0 8px 20px rgba(225, 29, 72, 0.26);
}

a.button.fullwidth,
button.button.fullwidth,
a.button.fullwidth_block,
button.button.fullwidth_block {
  width: 100%;
  margin-right: 0;
  white-space: normal;
}

a.button.medium,
button.button.medium {
  min-height: 48px;
  padding: 13px 24px;
  font-size: 16px;
}

a.button.small,
button.button.small {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
}

.button i {
  padding: 0;
  margin: 0;
  line-height: 1;
}

/* Phone / contact CTA on listing */
a.button.cta-phone,
button.button.cta-phone {
  --btn-bg: var(--btn-success);
  --btn-bg-hover: var(--btn-success-hover);
  --btn-bg-active: #146c3b;
  --btn-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(31, 157, 85, 0.22);
  --btn-shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.08), 0 8px 20px rgba(31, 157, 85, 0.28);
  width: 100%;
  margin: 10px 0 0;
  min-height: 48px;
  font-size: 16px;
}

a.button.cta-phone.is-pending {
  --btn-bg: #6b7280;
  --btn-bg-hover: #4b5563;
  --btn-bg-active: #374151;
  --btn-shadow: none;
  --btn-shadow-hover: none;
}

/* Sticky mobile phone bar */
.get-phone-block .button {
  width: 100%;
  margin: 0;
  min-height: 56px;
  border-radius: 0;
  font-size: 18px;
  box-shadow: 0 -2px 16px rgba(15, 23, 42, 0.12);
}

/* Payment modal pay button */
#contacts-view-form .button,
#recharge-method .button {
  width: 100%;
  margin: 0;
  min-height: 48px;
}

/* Keep map widget buttons usable */
.showmap button.button,
.showmap a.button {
  min-height: 0;
  padding: 8px 16px;
  top: -2px !important;
  white-space: nowrap;
}

.button.medium.fullwidth {
  font-weight: 700 !important;
  font-size: 1.15em !important;
  min-height: 52px;
}

.btn-group-hero {
  display: flex;
  justify-content: space-between;
}

#navigation .fa-heart{
  color: red;
}

#navigation .fa-envelope {
  color: #0468ff;
}

.btn-group-hero .button.medium.fullwidth {
  width: 100%;
  white-space: normal;
  font-weight: bold !important;
  align-content: center;
  display: flex;
  text-align: center;
  justify-content: center;
}

/* Homepage stats bar */
.home-stats-bar {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 30px 0;
  margin-top: -1px;
  position: relative;
  z-index: 10;
}

.home-stat-item {
  text-align: center;
  padding: 10px 5px;
}

.home-stat-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: #0b64ec;
  line-height: 1.2;
}

.home-stat-label {
  display: block;
  font-size: 14px;
  color: #888;
  margin-top: 4px;
}

/* Homepage advantages */
.box_icon_two.centered {
  text-align: center;
  padding: 20px 15px;
  margin-bottom: 20px;
}

.box_icon_two.centered p {
  font-size: 15px;
  line-height: 24px;
  margin-top: 12px;
}

/* Homepage how it works */
.home-how-block {
  background: #fff;
  border-radius: 6px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  height: calc(100% - 20px);
}

.home-how-block h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.home-how-block h4 i {
  color: #0b64ec;
  margin-right: 8px;
}

.home-steps-list {
  padding-left: 20px;
  margin: 0 0 10px 0;
}

.home-steps-list li {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 22px;
  color: #555;
}

/* Homepage FAQ */
.home-faq-item {
  background: #f9f9f9;
  border-radius: 6px;
  padding: 25px;
  margin-bottom: 20px;
  height: calc(100% - 20px);
}

.home-faq-item h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

.home-faq-item h4 i {
  color: #0b64ec;
  margin-right: 6px;
}

.home-faq-item p {
  font-size: 15px;
  line-height: 24px;
  color: #666;
  margin: 0;
}

/* Flip banner hidden text */
.flip-banner-content .flip-hidden {
  color: #fff;
  font-size: 18px;
  margin-top: 10px;
}

@media(max-width: 900px) {
  button.button,
  input[type="button"],
  input[type="submit"],
  a.button {
    min-height: 46px;
  }

  .button.medium.fullwidth {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    font-weight: 700 !important;
    font-size: 1.15em !important;
    margin-top: 16px !important;
    min-height: 56px;
    height: auto;
    align-items: center;
  }
  #utf_slide_layer_detail_one {
    white-space: normal;
  }
  .main_inner_search_block {
    display: none;
  }
  .btn-group-hero {
    display: block;
  }
  .home-stat-number {
    font-size: 24px;
  }
  .home-stat-label {
    font-size: 12px;
  }
  .home-how-block {
    height: auto;
  }
}
