/*
  Final polish layer.
  Loaded after the original stylesheet and inline page styles so these rules
  can refine the UI without rewriting the existing PHP structure.
*/
:root {
  --polish-ink: #0b1f33;
  --polish-river: #0077b6;
  --polish-lagoon: #00a896;
  --polish-green: #06c755;
  --polish-gold: #f9b233;
  --polish-coral: #ff6b4a;
  --polish-paper: rgba(255, 255, 255, .94);
  --polish-line: rgba(12, 58, 95, .12);
  --polish-shadow: 0 18px 42px rgba(3, 35, 64, .16);
  --polish-strong-shadow: 0 26px 80px rgba(2, 21, 42, .28);
}

body {
  color: var(--polish-ink);
  background:
    linear-gradient(180deg, #eaf9ff 0%, #f8fdff 34%, #fffaf0 100%);
}

.site-header {
  background:
    linear-gradient(105deg, rgba(0, 31, 67, .96) 0%, rgba(0, 105, 140, .94) 54%, rgba(0, 67, 82, .96) 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 16px 38px rgba(0, 25, 55, .22);
}

.brand {
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .18);
}

.brand-mark {
  border-color: rgba(249, 178, 51, .95);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, .1),
    0 12px 28px rgba(0, 0, 0, .2);
}

.site-nav a,
.nav-map-button,
.map-quick-button,
.button,
.hero-service-action,
.mobile-tabbar a {
  letter-spacing: 0;
}

.site-nav a {
  border-radius: 8px;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, .14);
}

.nav-map-button,
.google-map-actions .map-quick-button {
  border-radius: 8px !important;
  box-shadow: 0 12px 26px rgba(5, 42, 78, .16);
}

.hero::after {
  background:
    linear-gradient(180deg, rgba(0, 30, 63, .62) 0%, rgba(0, 96, 137, .16) 45%, rgba(0, 62, 91, .52) 100%) !important;
}

.notice-ribbon {
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 16px 34px rgba(2, 35, 62, .14);
}

.system-alert {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1120px;
  margin: 16px auto 0;
  padding: 14px 18px;
  color: #8a2f1e;
  background: linear-gradient(135deg, rgba(255, 247, 237, .96), rgba(255, 255, 255, .94));
  border: 1px solid rgba(255, 107, 74, .22);
  border-left: 5px solid var(--polish-coral);
  box-shadow: 0 12px 28px rgba(138, 47, 30, .08);
}

.system-alert::before {
  content: "!";
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(135deg, var(--polish-coral), #d83b2e);
  border-radius: 8px;
  font-weight: 900;
}

.notice-icon,
.notice-ribbon button,
.modal-close {
  border-radius: 8px !important;
}

.hero-service-actions {
  gap: 12px;
}

.hero-service-action {
  min-height: 92px;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, .42);
  box-shadow: 0 16px 30px rgba(1, 35, 67, .18);
  backdrop-filter: blur(12px);
}

.hero-service-action span {
  border-radius: 8px !important;
}

.hero-service-action.blue {
  background: linear-gradient(140deg, rgba(0, 119, 182, .92), rgba(0, 168, 150, .86));
}

.hero-service-action.green {
  background: linear-gradient(140deg, rgba(6, 199, 85, .94), rgba(0, 119, 182, .82));
}

.hero-service-action.purple {
  background: linear-gradient(140deg, rgba(255, 107, 74, .92), rgba(249, 178, 51, .92));
}

.hero-service-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(1, 35, 67, .24);
}

.hero-route-panel,
.boat-route-map,
.service-status,
.booking-card,
.fare-panel,
.contact-panel,
.modal-card,
.route-card,
.track-card,
.map-panel,
.admin-panel,
.access-card {
  border-radius: 8px !important;
}

.hero-route-panel,
.booking-card,
.fare-panel,
.contact-panel,
.modal-card,
.admin-panel,
.access-card {
  background: var(--polish-paper) !important;
  border: 1px solid rgba(255, 255, 255, .86) !important;
  box-shadow: var(--polish-shadow) !important;
}

.service-status {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(242, 251, 255, .94)) !important;
  border: 1px solid rgba(255, 255, 255, .86) !important;
}

.hours-card {
  border-radius: 8px !important;
  background: linear-gradient(135deg, #053b6f, #006d77) !important;
}

.status-pill {
  border-radius: 8px;
  background: linear-gradient(135deg, var(--polish-green), #009f7a);
}

.premium-fare-panel {
  overflow: hidden;
}

.premium-fare-row {
  border-radius: 8px !important;
  border-color: rgba(0, 119, 182, .12) !important;
}

.premium-fare-row:hover {
  transform: translateY(-2px);
}

.premium-fare-icon,
.premium-fare-row > strong,
.premium-fare-note span {
  border-radius: 8px !important;
}

.button {
  min-height: 52px;
  padding: 0 20px;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, .18);
  background: linear-gradient(135deg, #004b8d, #006d77);
  box-shadow: 0 12px 26px rgba(0, 87, 131, .2);
}

.button:hover {
  transform: translateY(-2px);
  filter: saturate(1.05) brightness(1.02);
  box-shadow: 0 18px 38px rgba(0, 87, 131, .26);
}

.button.primary,
.submit-button {
  background: linear-gradient(135deg, #006d77 0%, #0077b6 58%, #004b8d 100%) !important;
}

.button.secondary,
.booking-success-actions .button.secondary {
  color: #004b8d !important;
  background: #eef9ff !important;
  border: 1px solid rgba(0, 119, 182, .18) !important;
}

.button.phone {
  background: linear-gradient(135deg, #008f5a, #006d77) !important;
}

.button.line {
  background: linear-gradient(135deg, #06c755, #009f7a) !important;
}

.button.facebook {
  background: linear-gradient(135deg, #1877f2, #0056c8) !important;
}

.button.messenger {
  background: linear-gradient(135deg, #00b2ff 0%, #006aff 54%, #7b3ff2 100%) !important;
}

.button.outline,
.button.button-ghost {
  color: #004b8d;
  background: #fff !important;
  border-color: rgba(0, 75, 141, .16) !important;
}

.submit-button {
  position: relative;
  gap: 12px;
}

.submit-button.is-loading {
  opacity: .9;
  transform: none;
}

.button-spinner,
.submit-spinner {
  width: 18px;
  height: 18px;
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, .42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: polish-spin .8s linear infinite;
}

.form-heading {
  align-items: center;
}

.form-heading > span {
  border-radius: 8px;
  color: #007a4d;
  background: #e6fff2;
  border: 1px solid rgba(6, 199, 85, .18);
}

.form-grid {
  gap: 14px;
}

.form-grid label {
  gap: 8px;
  padding: 11px;
  background: linear-gradient(180deg, #f8fcff, #ffffff);
  border: 1px solid rgba(0, 75, 141, .1);
  border-radius: 8px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.form-grid label:focus-within {
  border-color: rgba(0, 119, 182, .42);
  box-shadow: 0 12px 26px rgba(0, 119, 182, .1);
  transform: translateY(-1px);
}

.form-grid label span {
  color: #174568;
  font-size: 13px;
}

input,
select,
textarea {
  min-height: 50px;
  border-radius: 8px !important;
  border-color: rgba(0, 75, 141, .16);
  background: #fff;
}

textarea {
  min-height: 118px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--polish-river);
  box-shadow: 0 0 0 4px rgba(0, 119, 182, .13);
}

form.was-submitted input:invalid,
form.was-submitted select:invalid,
form.was-submitted textarea:invalid {
  border-color: var(--polish-coral);
  box-shadow: 0 0 0 4px rgba(255, 107, 74, .14);
}

.consent {
  padding: 12px;
  border: 1px solid rgba(0, 119, 182, .12);
  border-radius: 8px;
  background: #f7fcff;
}

.consent input {
  accent-color: var(--polish-lagoon);
}

.form-error,
.system-alert {
  border-radius: 8px;
  border-color: rgba(255, 107, 74, .28);
  background: #fff6f3;
}

.booking-modal {
  z-index: 120;
}

.booking-modal.is-open,
.booking-modal:target {
  animation: polish-fade .18s ease both;
}

.modal-backdrop {
  background:
    linear-gradient(135deg, rgba(0, 28, 55, .74), rgba(0, 109, 119, .52)) !important;
  backdrop-filter: blur(14px);
}

.modal-card {
  width: min(820px, 100%);
  border: 1px solid rgba(255, 255, 255, .9) !important;
  box-shadow: var(--polish-strong-shadow) !important;
}

.booking-modal.is-open .modal-card,
.booking-modal:target .modal-card {
  animation: polish-pop .28s cubic-bezier(.2, .85, .2, 1) both;
}

.modal-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: -4px -4px 18px;
  padding: 4px 4px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .88));
  backdrop-filter: blur(10px);
}

.modal-close {
  color: #063b62;
  background: #eef9ff;
  border-color: rgba(0, 119, 182, .16);
  box-shadow: 0 10px 20px rgba(0, 57, 95, .1);
}

.modal-close:hover {
  color: #fff;
  background: var(--polish-coral);
  transform: translateY(-1px);
}

.success-state {
  min-height: 360px;
}

.success-mark {
  border-radius: 8px;
  background: linear-gradient(135deg, var(--polish-green), var(--polish-lagoon));
  box-shadow:
    0 0 0 10px rgba(6, 199, 85, .12),
    0 16px 34px rgba(0, 143, 90, .22);
}

.contact-buttons {
  gap: 10px;
}

.social-qr-grid {
  min-width: 0;
}

.mobile-tabbar {
  background: rgba(0, 40, 70, .96) !important;
  border-top: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(14px);
}

.mobile-tabbar a {
  border-radius: 8px;
}

.mobile-tabbar a:hover,
.mobile-tabbar a:focus-visible {
  background: rgba(255, 255, 255, .1);
}

.request-feedback {
  position: fixed;
  top: 108px;
  right: 18px;
  z-index: 220;
  width: min(420px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 16px;
  color: #0b1f33;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .86);
  border-left: 5px solid var(--polish-lagoon);
  border-radius: 8px;
  box-shadow: var(--polish-strong-shadow);
  backdrop-filter: blur(16px);
  animation: polish-slide-in .34s cubic-bezier(.2, .85, .2, 1) both;
}

.request-feedback.error {
  border-left-color: var(--polish-coral);
}

.request-feedback-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--polish-green), var(--polish-lagoon));
  border-radius: 8px;
  font-weight: 900;
}

.request-feedback.error .request-feedback-icon {
  background: linear-gradient(135deg, var(--polish-coral), #d83b2e);
}

.request-feedback p,
.request-feedback h2 {
  margin: 0;
}

.request-feedback h2 {
  color: #063b62;
  font-size: 18px;
  line-height: 1.25;
}

.request-feedback p {
  margin-top: 4px;
  color: #5b6b7a;
  line-height: 1.55;
}

.request-feedback-code {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 6px 10px;
  color: #004b8d;
  background: #eef9ff;
  border: 1px solid rgba(0, 119, 182, .14);
  border-radius: 8px;
  font-weight: 900;
}

.request-feedback-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #506273;
  background: #f2f7fb;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.request-feedback-close:hover {
  color: #fff;
  background: #063b62;
}

.request-feedback.is-hiding {
  animation: polish-slide-out .2s ease both;
}

.submit-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 22, 40, .58);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity .18s ease;
}

.submit-overlay[hidden] {
  display: none;
}

.submit-overlay.is-visible {
  opacity: 1;
}

.submit-overlay-card {
  width: min(360px, 100%);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 8px;
  box-shadow: var(--polish-strong-shadow);
  animation: polish-pop .24s cubic-bezier(.2, .85, .2, 1) both;
}

.submit-overlay-card h2,
.submit-overlay-card p {
  margin: 0;
}

.submit-overlay-card h2 {
  color: #063b62;
  font-size: 22px;
}

.submit-overlay-card p {
  color: #5b6b7a;
  line-height: 1.55;
}

.submit-spinner {
  width: 46px;
  height: 46px;
  border-width: 4px;
  border-color: rgba(0, 119, 182, .16);
  border-top-color: var(--polish-lagoon);
}

.admin-sidebar {
  background: linear-gradient(180deg, #003d62, #06203d) !important;
}

.admin-nav a,
.admin-account,
.admin-message {
  border-radius: 8px !important;
}

.access-card {
  overflow: hidden;
}

/* Cleaner action colors */
.button,
.button.primary,
.submit-button,
.site-nav .nav-call,
.nav-call.nav-messenger {
  color: #fff !important;
  background: #0b6f91 !important;
  border-color: rgba(255, 255, 255, .14) !important;
  box-shadow: 0 10px 22px rgba(9, 75, 105, .18) !important;
}

.button:hover,
.site-nav .nav-call:hover,
.nav-call.nav-messenger:hover {
  filter: none;
  background: #095f7d !important;
  box-shadow: 0 14px 30px rgba(9, 75, 105, .24) !important;
}

.button.line {
  background: #0a8f5a !important;
  box-shadow: 0 10px 22px rgba(10, 143, 90, .17) !important;
}

.button.line:hover {
  background: #087c4f !important;
}

.button.phone {
  background: #0f766e !important;
  box-shadow: 0 10px 22px rgba(15, 118, 110, .17) !important;
}

.button.phone:hover {
  background: #0d655f !important;
}

.button.facebook,
.button.messenger,
.nav-call.nav-messenger {
  background: #2563a8 !important;
  box-shadow: 0 10px 22px rgba(37, 99, 168, .17) !important;
}

.button.facebook:hover,
.button.messenger:hover,
.nav-call.nav-messenger:hover {
  background: #1e548f !important;
}

.button.secondary,
.button.outline,
.button.button-ghost,
.booking-success-actions .button.secondary {
  color: #0b4f6b !important;
  background: #ffffff !important;
  border: 1px solid rgba(11, 79, 107, .18) !important;
  box-shadow: 0 8px 18px rgba(7, 45, 68, .08) !important;
}

.button.secondary:hover,
.button.outline:hover,
.button.button-ghost:hover,
.booking-success-actions .button.secondary:hover {
  background: #f1f8fb !important;
}

.system-alert-soft {
  background: #f8fbff;
  border-color: rgba(43, 92, 168, .18);
  border-left-color: #2b6cb0;
  color: #24415f;
  box-shadow: none;
}

.system-alert-soft::before {
  content: "i";
  background: #2b6cb0;
  border-radius: 999px;
  font-family: Georgia, serif;
  font-style: italic;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.panel-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(43, 92, 168, .18);
  border-radius: 8px;
  background: #fff;
  color: #1f4f85;
  font-weight: 800;
  text-decoration: none;
}

.panel-actions a:first-child {
  background: #123a63;
  border-color: #123a63;
  color: #fff;
}

.booking-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(128px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(43, 92, 168, .14);
  border-radius: 12px;
  background: #f8fafc;
}

.booking-filter-bar label {
  display: grid;
  gap: 6px;
}

.booking-filter-bar span {
  color: #526579;
  font-size: 12px;
  font-weight: 800;
}

.booking-filter-bar input,
.booking-filter-bar select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  background: #fff;
  color: #182635;
  font: inherit;
  font-size: 14px;
}

.booking-filter-bar input {
  padding: 0 12px;
}

.booking-filter-bar select {
  padding: 0 34px 0 12px;
}

.booking-filter-bar input:focus,
.booking-filter-bar select:focus {
  border-color: #2b6cb0;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, .14);
  outline: 0;
}

.booking-filter-bar select:disabled {
  color: #9aa7b5;
  background: #eef2f6;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-actions .button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  white-space: nowrap;
}

.line-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d8e1ec;
  border-radius: 999px;
  background: #f3f6f9;
  color: #344454;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.line-status-pill.sent {
  border-color: rgba(18, 130, 91, .2);
  background: #eaf7f1;
  color: #0f6f4d;
}

.line-status-pill.failed {
  border-color: rgba(190, 24, 56, .18);
  background: #fff1f3;
  color: #a30f2d;
}

.line-status-pill.disabled {
  border-color: rgba(156, 112, 20, .2);
  background: #fff8e6;
  color: #77530b;
}

.line-status-pill.pending {
  border-color: rgba(82, 101, 121, .18);
  background: #f4f7fa;
  color: #46586b;
}

.service-note {
  margin: -2px 0 10px !important;
  color: #174668 !important;
  font-weight: 900;
  line-height: 1.55;
}

.service-status.closed .service-note {
  color: #9f1239 !important;
}

.settings-subpanel {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(43, 92, 168, .14);
  border-radius: 12px;
  background: #f8fbff;
}

.settings-subpanel .form-grid {
  margin-top: 12px;
}

.subpanel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.subpanel-heading h3,
.subpanel-heading p {
  margin: 0;
}

.subpanel-heading h3 {
  color: #123a63;
  font-size: 18px;
}

.subpanel-heading p {
  max-width: 760px;
  color: #5b6f83;
  font-size: 13px;
  line-height: 1.7;
}

.spam-settings-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .booking-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spam-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-filter-bar label:first-of-type,
  .filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .panel-actions,
  .filter-actions {
    justify-content: stretch;
  }

  .panel-actions a,
  .filter-actions .button {
    flex: 1 1 auto;
  }

  .booking-filter-bar {
    grid-template-columns: 1fr;
  }

  .spam-settings-grid {
    grid-template-columns: 1fr;
  }
}

.hero-service-action,
.hero-service-action.blue,
.hero-service-action.green,
.hero-service-action.purple {
  color: #0b3247 !important;
  background: rgba(255, 255, 255, .94) !important;
  border-color: rgba(11, 111, 145, .18) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 12px 24px rgba(3, 35, 64, .13) !important;
}

.hero-service-action:hover {
  background: #ffffff !important;
}

.hero-service-action span {
  color: #fff !important;
  background: #0b6f91 !important;
}

.hero-service-action.blue span {
  background: #0f766e !important;
}

.hero-service-action.green span {
  background: #0a8f5a !important;
}

.hero-service-action.purple span {
  background: #2563a8 !important;
}

.nav-map-button,
.nav-map-button.wat-map,
.nav-map-button.sathu-map,
.google-map-actions .map-quick-button,
.google-map-actions .map-quick-button.wat-map,
.google-map-actions .map-quick-button.sathu-map {
  color: #fff !important;
  background: #0b6f91 !important;
  border-color: rgba(255, 255, 255, .14) !important;
  box-shadow: 0 10px 22px rgba(9, 75, 105, .16) !important;
}

.nav-map-button:hover,
.google-map-actions .map-quick-button:hover {
  background: #095f7d !important;
}

.nav-map-button span,
.google-map-actions .map-quick-button span {
  background: rgba(255, 255, 255, .18) !important;
  color: #fff !important;
}

.premium-service-row.charter,
.premium-service-row.memorial {
  background: #f8fcff !important;
  border-color: rgba(11, 111, 145, .14) !important;
}

.premium-service-row.charter .premium-fare-icon,
.premium-service-row.memorial .premium-fare-icon,
.premium-service-row.charter > strong,
.premium-service-row.memorial > strong {
  background: #0b6f91 !important;
}

.mobile-tabbar {
  background: #062b40 !important;
}

@keyframes polish-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes polish-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes polish-pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes polish-slide-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes polish-slide-out {
  to {
    opacity: 0;
    transform: translateY(-8px) scale(.98);
  }
}

@media (max-width: 900px) {
  .site-header .site-nav.mobile-open,
  .site-header .site-nav.is-open {
    border-radius: 8px !important;
    background: rgba(0, 45, 76, .97) !important;
    box-shadow: var(--polish-strong-shadow) !important;
  }
}

@media (max-width: 680px) {
  .hero-service-actions {
    gap: 8px;
  }

  .hero-service-action {
    min-height: 72px;
    padding: 8px 6px;
  }

  .booking-card,
  .fare-panel,
  .contact-panel,
  .modal-card,
  .admin-panel {
    padding: 16px !important;
  }

  .form-grid label {
    padding: 10px;
  }

  .button {
    min-height: 50px;
    padding-inline: 14px;
  }

  .request-feedback {
    top: auto;
    right: 10px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
  }

  .booking-modal.is-open .modal-card {
    border-radius: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Compact contact panel */
.hero-service-actions {
  width: min(620px, 100%);
  margin: 0 auto 14px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

.hero-service-action,
.hero-service-action.blue,
.hero-service-action.green,
.hero-service-action.purple {
  min-height: 48px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
}

.hero-service-action span {
  width: 30px !important;
  height: 30px !important;
  font-size: 15px !important;
}

.hero-service-action b {
  line-height: 1.15;
}

.contact-map {
  max-width: 1180px !important;
  margin: 42px auto 54px !important;
}

.contact-panel {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px) !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 18px 20px !important;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(239, 248, 251, .98), rgba(248, 252, 253, .96)) !important;
  border: 1px solid rgba(11, 111, 145, .12) !important;
  color: #15384c !important;
}

.contact-copy {
  display: grid;
  align-content: center;
  min-width: 0;
}

.contact-panel h2,
.contact-panel .eyebrow,
.contact-panel p,
.contact-panel small,
.contact-panel b {
  color: #15384c !important;
}

.contact-panel .eyebrow {
  color: #0b6f91 !important;
}

.contact-copy > p:not(.eyebrow),
.contact-copy h2,
.contact-copy .eyebrow {
  display: none;
}

.contact-buttons {
  display: grid !important;
  grid-template-columns: repeat(2, max-content);
  align-items: center;
  justify-content: start;
  gap: 10px !important;
  margin-top: 0 !important;
}

.contact-buttons .button {
  width: auto !important;
  min-width: 148px;
  max-width: 214px;
  min-height: 42px !important;
  padding: 0 14px !important;
  gap: 8px;
  font-size: 15px;
  line-height: 1.15;
  box-shadow: 0 8px 18px rgba(7, 45, 68, .12) !important;
}

.contact-buttons .button span {
  flex: 0 0 auto;
}

.social-qr-grid {
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch;
  justify-self: end;
}

.social-qr-grid .line-qr-card {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px !important;
  gap: 7px;
  border: 1px solid rgba(11, 111, 145, .12);
  box-shadow: 0 10px 24px rgba(7, 45, 68, .1);
}

.social-qr-grid .line-qr-card img {
  width: min(104px, 100%) !important;
  max-width: 104px;
}

.social-qr-grid .line-qr-card span {
  max-width: 130px;
  color: #0b5e3a;
  font-size: 12px !important;
  line-height: 1.28 !important;
}

.social-qr-grid .facebook-qr-card span {
  color: #1e548f;
}

@media (max-width: 1040px) {
  .contact-panel {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }

  .social-qr-grid {
    justify-self: stretch;
    max-width: 340px;
  }
}

@media (max-width: 680px) {
  .hero-service-actions {
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .hero-service-action,
  .hero-service-action.blue,
  .hero-service-action.green,
  .hero-service-action.purple {
    min-height: 48px !important;
    display: grid !important;
    gap: 4px !important;
    padding: 6px 4px !important;
    font-size: 11px !important;
  }

  .hero-service-action span {
    width: 26px !important;
    height: 26px !important;
    font-size: 13px !important;
  }

  .contact-map {
    margin: 28px auto 36px !important;
  }

  .contact-panel {
    padding: 14px !important;
    gap: 14px !important;
  }

  .contact-buttons {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .contact-buttons .button {
    width: 100% !important;
    min-width: 0;
    max-width: none;
    min-height: 42px !important;
    padding: 0 10px !important;
    font-size: 13px;
  }

  .contact-buttons .button.messenger {
    grid-column: 1 / -1;
  }

  .social-qr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    max-width: none;
  }

  .social-qr-grid .line-qr-card {
    padding: 10px !important;
  }

  .social-qr-grid .line-qr-card img {
    width: min(96px, 100%) !important;
  }

  .social-qr-grid .line-qr-card span {
    max-width: 120px;
    font-size: 11px !important;
  }
}
