.akx-app {
  --akx-surface: #fff;
  --akx-surface-soft: #faf9fd;
  --akx-text: #181526;
  --akx-muted: #6d687c;
  --akx-border: #e4e0ec;
  --akx-heading-font: var(--wp--preset--font-family--heading, var(--wp--preset--font-family--body, inherit));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  direction: rtl;
  box-sizing: border-box;
  width: calc(100% - 24px);
  max-width: 780px;
  margin: 28px auto;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--akx-border);
  border-radius: var(--akx-radius, 18px);
  background:
    radial-gradient(circle at 95% 0, rgba(171, 127, 16, .08) 0, transparent 32%),
    radial-gradient(circle at 0 100%, rgba(16, 5, 99, .06) 0, transparent 34%),
    var(--akx-background);
  color: var(--akx-text);
  font-family: var(--akx-heading-font);
  font-size: 15px;
  font-synthesis: none;
  line-height: 1.8;
  box-shadow: 0 24px 70px rgba(16, 5, 99, .09), 0 3px 12px rgba(21, 16, 43, .04);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.akx-app::before,
.akx-app::after {
  position: absolute;
  z-index: -1;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  filter: blur(2px);
}

.akx-app::before {
  top: -110px;
  right: -80px;
  background: rgba(171, 127, 16, .11);
}

.akx-app::after {
  bottom: -125px;
  left: -75px;
  background: rgba(16, 5, 99, .07);
}

.akx-app *,
.akx-app *::before,
.akx-app *::after {
  box-sizing: border-box;
}

.akx-app [hidden] {
  display: none !important;
}

.akx-app h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--akx-text);
  font-family: inherit;
  font-size: clamp(1.2rem, 2.6vw, 1.48rem);
  font-weight: 800;
  line-height: 1.55;
}

.akx-app h2::before {
  width: 5px;
  height: 25px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--akx-accent), var(--akx-primary));
  content: "";
  box-shadow: 0 4px 12px rgba(171, 127, 16, .24);
}

.akx-app label {
  display: block;
  margin: 0 0 19px;
  color: var(--akx-text);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
}

.akx-app .akx-manual-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px dashed var(--akx-accent);
  border-radius: 13px;
  background: rgba(171, 127, 16, .07);
  cursor: pointer;
}

.akx-manual-toggle input { width: 19px; height: 19px; accent-color: var(--akx-primary); }
.akx-manual-hint { padding: 13px 16px; border-radius: 12px; background: #f0edfa; color: var(--akx-primary); font-weight: 650; }
.akx-manual-result { padding: 26px; text-align: center; }
.akx-manual-result h2 { justify-content: center; }
.akx-manual-result strong { color: var(--akx-primary); font-size: 1.2rem; }

.akx-app form input:not([type="radio"]):not([type="checkbox"]),
.akx-app form select,
.akx-app form textarea {
  display: block;
  width: 100%;
  min-height: 55px;
  margin-top: 7px;
  padding: 11px 15px !important;
  border: 1px solid var(--akx-border) !important;
  border-radius: 13px !important;
  outline: 0;
  background: rgba(255, 255, 255, .94) !important;
  color: var(--akx-text) !important;
  font-family: inherit !important;
  font-size: .96rem !important;
  font-weight: 500;
  line-height: 1.7;
  box-shadow: 0 2px 7px rgba(31, 23, 69, .025);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}

.akx-app form textarea {
  min-height: 108px;
  resize: vertical;
}

.akx-app form input::placeholder,
.akx-app form textarea::placeholder {
  color: #918b9d;
  opacity: 1;
}

.akx-app form input:not([type="radio"]):not([type="checkbox"]):hover,
.akx-app form select:hover,
.akx-app form textarea:hover {
  border-color: #c9c4d9 !important;
}

.akx-app form input:not([type="radio"]):not([type="checkbox"]):focus,
.akx-app form select:focus,
.akx-app form textarea:focus {
  border-color: var(--akx-accent) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(171, 127, 16, .15), 0 8px 24px rgba(16, 5, 99, .06);
}

.akx-app button {
  min-height: 49px;
  padding: 10px 23px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: var(--akx-primary) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: .94rem !important;
  font-weight: 800 !important;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 5, 99, .20);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.akx-app button:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 11px 25px rgba(16, 5, 99, .26);
}

.akx-app button:active:not(:disabled) {
  transform: translateY(0);
}

.akx-app button:focus-visible {
  outline: 3px solid rgba(171, 127, 16, .48);
  outline-offset: 3px;
}

.akx-app button:disabled {
  opacity: .48;
  cursor: not-allowed;
  box-shadow: none;
}

.akx-app .akx-secondary {
  border-color: var(--akx-primary) !important;
  background: rgba(255, 255, 255, .82) !important;
  color: var(--akx-primary) !important;
  box-shadow: 0 5px 16px rgba(16, 5, 99, .06);
}

.akx-progress {
  height: 9px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid rgba(16, 5, 99, .03);
  border-radius: 99px;
  background: #e9e7f2;
  box-shadow: inset 0 1px 3px rgba(16, 5, 99, .07);
}

.akx-progress span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--akx-primary), var(--akx-accent));
  box-shadow: 0 0 12px rgba(171, 127, 16, .30);
  transition: width .35s ease;
}

.akx-step-label {
  display: table;
  margin: 0 0 27px;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(16, 5, 99, .055);
  color: var(--akx-muted);
  font-size: .83rem;
  font-weight: 650;
}

.akx-app [data-step]:not([hidden]) {
  animation: akx-step-in .28s ease both;
}

.akx-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 27px;
  padding-top: 21px;
  border-top: 1px solid var(--akx-border);
}

.akx-alert {
  margin: 12px 0 18px;
  padding: 12px 15px;
  border: 1px solid #ffd3ce;
  border-right: 4px solid #b42318;
  border-radius: 11px;
  background: #fff3f2;
  color: #8a1c13;
  font-weight: 650;
}

.akx-status:empty {
  display: none;
}

.akx-status {
  color: var(--akx-muted);
}

.akx-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.akx-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.akx-app .akx-service {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 162px;
  margin: 0;
  padding: 19px;
  overflow: hidden;
  border: 1.5px solid var(--akx-border);
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, var(--akx-surface-soft));
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(16, 5, 99, .035);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.akx-app .akx-service:hover:not(.disabled) {
  transform: translateY(-3px);
  border-color: var(--akx-accent);
  box-shadow: 0 13px 28px rgba(16, 5, 99, .09);
}

.akx-app .akx-service.is-selected {
  border-color: var(--akx-accent);
  background: linear-gradient(145deg, #fff, #fbf8ef);
  box-shadow: 0 0 0 3px rgba(171, 127, 16, .14), 0 12px 30px rgba(16, 5, 99, .08);
}

.akx-service.disabled {
  opacity: .55;
  cursor: not-allowed;
}

.akx-service input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.akx-service-title {
  margin-bottom: 5px;
  color: var(--akx-text);
  font-size: 1.05rem;
  font-weight: 850;
}

.akx-service strong {
  margin-top: auto;
  padding-top: 14px;
  color: var(--akx-primary);
  font-size: 1.04rem;
}

.akx-date-field {
  position: relative;
}

.akx-date-field input {
  cursor: pointer;
}

.akx-date-picker {
  width: 100%;
  max-width: 410px;
  margin: -9px 0 20px;
  padding: 16px;
  border: 1px solid var(--akx-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(16, 5, 99, .14);
}

.akx-date-header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  text-align: center;
}

.akx-app .akx-date-nav {
  min-height: 40px;
  padding: 4px !important;
  border-color: var(--akx-border) !important;
  background: #fff !important;
  color: var(--akx-primary) !important;
  font-size: 1.35rem !important;
  box-shadow: none;
}

.akx-date-weekdays,
.akx-date-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  text-align: center;
}

.akx-date-weekdays {
  margin-bottom: 6px;
  color: var(--akx-muted);
  font-size: .8rem;
}

.akx-app .akx-date-days button {
  min-height: 40px;
  padding: 4px !important;
  border-color: transparent !important;
  background: #fff !important;
  color: var(--akx-text) !important;
  box-shadow: none;
}

.akx-app .akx-date-days button:hover:not(:disabled) {
  border-color: var(--akx-accent) !important;
}

.akx-app .akx-date-days button.selected {
  background: var(--akx-primary) !important;
  color: #fff !important;
}

.akx-app .akx-date-days button:disabled {
  background: #f6f5f8 !important;
  color: #aaa !important;
  opacity: 1;
}

.akx-review {
  margin: 10px 0 22px;
  overflow: hidden;
  border: 1px solid var(--akx-border);
  border-radius: 15px;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 8px 24px rgba(16, 5, 99, .04);
}

.akx-review div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--akx-border);
}

.akx-review div:last-child {
  border-bottom: 0;
}

.akx-review span {
  color: var(--akx-muted);
}

.akx-inline {
  display: flex;
  gap: 9px;
}

.akx-inline input {
  margin: 0 !important;
}

.akx-pay {
  width: 100%;
  background: var(--akx-accent) !important;
  color: #17130a !important;
}

.akx-hp {
  position: absolute !important;
  right: -10000px !important;
  width: 1px !important;
}

.akx-skeleton {
  height: 165px;
  border-radius: 16px;
  background: linear-gradient(90deg, #eeecf2, #faf9fc, #eeecf2);
  background-size: 200%;
  animation: akx-shimmer 1.2s infinite;
}

.akx-result {
  margin-top: 20px;
  padding: 17px;
  border: 1px solid var(--akx-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 5, 99, .05);
}

.akx-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  visibility: hidden;
  background: rgba(247, 247, 250, .82);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  cursor: progress;
  transition: opacity .22s ease, visibility .22s ease;
}

.akx-app.is-loading .akx-loading-overlay {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.akx-app.is-loading > :not(.akx-loading-overlay) {
  opacity: .55;
  user-select: none;
}

.akx-loader {
  position: relative;
  width: 68px;
  height: 68px;
  margin-bottom: 17px;
  border: 5px solid #e5e2ef;
  border-top-color: var(--akx-primary);
  border-right-color: var(--akx-accent);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(16, 5, 99, .13);
  animation: akx-spin .82s linear infinite;
}

.akx-loader::after {
  position: absolute;
  inset: 11px;
  border: 3px solid rgba(171, 127, 16, .22);
  border-bottom-color: var(--akx-accent);
  border-radius: 50%;
  content: "";
  animation: akx-spin .62s linear infinite reverse;
}

.akx-loading-overlay strong {
  color: var(--akx-primary);
  font-size: 1.05rem;
  font-weight: 850;
}

.akx-loading-overlay small {
  margin-top: 3px;
  color: var(--akx-muted);
  font-size: .82rem;
}

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

@keyframes akx-shimmer {
  to { background-position: -200%; }
}

@keyframes akx-step-in {
  from { transform: translateY(7px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 600px) {
  .akx-app {
    width: calc(100% - 16px);
    margin: 10px auto;
    padding: 19px 16px;
    border-radius: 16px;
  }

  .akx-grid,
  .akx-service-grid {
    grid-template-columns: 1fr;
  }

  .akx-date-picker {
    width: 100%;
  }

  .akx-review div {
    flex-direction: column;
    gap: 2px;
  }

  .akx-actions button {
    flex: 1;
    padding-inline: 12px !important;
  }

  .akx-inline {
    flex-direction: column;
  }
}

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