.rk-booking,
.rk-booking * {
  box-sizing: border-box;
}

.rk-booking {
  color: #1c1917;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rk-hero,
.rk-panel,
.rk-slots-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid #e7e5e4;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.055);
}

.rk-hero {
  padding: 26px;
  margin-bottom: 18px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-end;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
}

.rk-kicker {
  margin: 0 0 8px;
  color: #047857;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rk-title {
  margin: 20px;
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.rk-subtitle {
  margin: 12px 0 0;
  max-width: 720px;
  color: #57534e;
  line-height: 1.55;
}

.rk-hours {
  min-width: 170px;
  padding: 16px 18px;
  color: #fff;
  background: #064e3b;
  border-radius: 20px;
}

.rk-hours-label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  opacity: 0.88;
}

.rk-hours-value {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 800;
}

.rk-panel {
  padding: 20px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
}

.rk-field-label {
  display: block;
  margin-bottom: 9px;
  color: #292524;
  font-weight: 800;
}

.rk-date {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d6d3d1;
  border-radius: 16px;
  font-size: 16px;
  outline: none;
  background: #fff;
}

.rk-date:focus {
  border-color: #047857;
  box-shadow: 0 0 0 4px #d1fae5;
}

.rk-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.rk-chip {
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
  color: #44403c;
  background: #f5f5f4;
  cursor: pointer;
  font-weight: 800;
}

.rk-chip:hover {
  background: #e7e5e4;
}

.rk-chip.active {
  color: #fff;
  background: #047857;
}

.rk-court-count {
  grid-column: 1 / -1;
}

.rk-message {
  display: none;
  margin-bottom: 18px;
  padding: 15px 17px;
  border-radius: 18px;
}

.rk-message.success,
.rk-message.error,
.rk-message.info {
  display: block;
}

.rk-message.success {
  border: 1px solid #bbf7d0;
  color: #064e3b;
  background: #ecfdf5;
}

.rk-message.error {
  border: 1px solid #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.rk-message.info {
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  background: #eff6ff;
}

.rk-slots-card {
  padding: 20px;
}

.rk-slots-top {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.rk-slots-title {
  margin: 0;
  font-size: 22px;
}

.rk-free-count {
  padding: 7px 11px;
  border-radius: 999px;
  color: #57534e;
  background: #f5f5f4;
  font-size: 14px;
  font-weight: 700;
}

.rk-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.rk-slot {
  min-height: 74px;
  padding: 12px 10px;
  border-radius: 17px;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  transition: transform .14s ease, background .14s ease, color .14s ease, box-shadow .14s ease;
}

.rk-slot-time {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.rk-slot-range {
  display: block;
  margin-top: 7px;
  color: inherit;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
  opacity: .78;
}

.rk-slot.available {
  border: 1px solid #047857;
  color: #064e3b;
  background: #ecfdf5;
  cursor: pointer;
}

.rk-slot.available:hover {
  color: #fff;
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(4, 120, 87, .18);
}

.rk-modal-backdrop[hidden] {
  display: none !important;
}

.rk-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.52);
}

.rk-modal {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,.32);
}

.rk-modal-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rk-modal-title {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.rk-modal-subtitle {
  margin: 6px 0 0;
  color: #57534e;
}

.rk-close {
  border: 0;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  background: #f5f5f4;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.rk-summary {
  margin-bottom: 15px;
  padding: 15px;
  border-radius: 18px;
  background: #f5f5f4;
  line-height: 1.55;
}

.rk-input-label {
  display: block;
  margin-bottom: 12px;
  font-weight: 800;
}

.rk-input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 13px 14px;
  border: 1px solid #d6d3d1;
  border-radius: 16px;
  font-size: 16px;
  outline: none;
  background: #fff;
}

.rk-input:focus {
  border-color: #047857;
  box-shadow: 0 0 0 4px #d1fae5;
}

.rk-textarea {
  min-height: 96px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.45;
}

.rk-submit {
  width: 100%;
  margin-top: 8px;
  padding: 15px 18px;
  border: 0;
  border-radius: 18px;
  color: white;
  background: #047857;
  cursor: pointer;
  font-weight: 900;
  font-size: 16px;
}

.rk-submit:hover {
  background: #065f46;
}

.rk-submit:disabled {
  cursor: wait;
  opacity: .75;
}

@media (max-width: 960px) {
  .rk-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .rk-hero {
    display: block;
  }
  .rk-hours {
    margin-top: 18px;
  }
  .rk-panel {
    grid-template-columns: 1fr;
  }
  .rk-court-count {
    grid-column: auto;
  }
  .rk-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .rk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
