.kry-request-shell {
  box-sizing: border-box;
  width: min(860px, calc(100% - 32px));
  margin: 46px auto 88px;
  color: #172033;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.kry-request-shell *,
.kry-request-shell *::before,
.kry-request-shell *::after {
  box-sizing: border-box;
}

.kry-request-intro {
  margin-bottom: 26px;
}

.kry-request-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 7px 11px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.07);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.kry-request-intro h1 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.kry-request-intro p {
  margin: 0;
  max-width: 760px;
  color: #475467;
  font-size: 17px;
  line-height: 1.7;
}

.kry-request-form {
  position: relative;
  padding: 34px;
  overflow: visible;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.08), 0 3px 12px rgba(15, 23, 42, 0.04);
}

.kry-request-form::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 58%, #0f172a 100%);
}

.kry-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px 20px;
}

.kry-request-form label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.kry-request-form label > span:first-child {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.kry-request-form input,
.kry-request-form select,
.kry-picker-control {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-weight: 500;
  line-height: 1.25;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.02);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease, transform .15s ease;
}

.kry-request-form input::placeholder {
  color: #98a2b3;
  font-weight: 400;
}

.kry-request-form input:hover,
.kry-request-form select:hover,
.kry-picker-control:hover {
  border-color: #b8c2d0;
}

.kry-request-form input:focus,
.kry-request-form select:focus,
.kry-picker-control:focus {
  border-color: #2563eb;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .11);
}

.kry-calendar {
  position: relative;
}

.kry-date-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.kry-date-display [data-kry-date-label] {
  overflow: hidden;
  color: #98a2b3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kry-date-display.has-value [data-kry-date-label] {
  color: #0f172a;
}

.kry-picker-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: #475467;
}

.kry-picker-icon svg {
  width: 20px;
  height: 20px;
}

.kry-calendar-popover {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 10px);
  left: 0;
  width: min(340px, 92vw);
  padding: 16px;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16), 0 6px 18px rgba(15, 23, 42, 0.06);
}

.kry-calendar-popover[hidden] {
  display: none !important;
}

.kry-calendar-header {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.kry-calendar-header strong {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.kry-calendar-nav {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.kry-calendar-nav:hover:not(:disabled) {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.kry-calendar-nav:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.kry-calendar-weekdays,
.kry-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.kry-calendar-weekdays {
  margin-bottom: 6px;
}

.kry-calendar-weekdays span {
  padding: 4px 0;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.kry-calendar-spacer {
  min-height: 38px;
}

.kry-calendar-day {
  min-width: 0;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #344054;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.kry-calendar-day:hover:not(:disabled) {
  background: #eff6ff;
  color: #1d4ed8;
}

.kry-calendar-day.is-selected {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 7px 16px rgba(37, 99, 235, 0.24);
}

.kry-calendar-day:disabled {
  cursor: not-allowed;
  color: #d0d5dd;
}

.kry-time-picker {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(96px, 1fr) minmax(104px, 1fr);
  gap: 8px;
}

.kry-time-picker input,
.kry-time-picker select {
  min-width: 0;
}

.kry-time-picker input[data-kry-time-minute] {
  text-align: center;
}

.kry-form-full {
  margin-top: 20px;
}

.kry-consent {
  grid-template-columns: 20px 1fr !important;
  align-items: start;
  margin: 24px 0;
  padding: 17px 18px;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #f9fafb;
  color: #475467 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.6;
}

.kry-consent input {
  width: 18px;
  min-height: 18px;
  margin: 3px 0 0;
}

.kry-consent a {
  color: #1d4ed8;
  font-weight: 700;
}

.kry-request-submit {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.kry-request-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

.kry-request-submit:disabled {
  cursor: not-allowed;
  opacity: .68;
  transform: none;
  box-shadow: none;
}

.kry-request-feedback {
  margin: 16px 0 0;
  color: #b42318;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.kry-request-feedback.is-success {
  color: #067647;
}

.kry-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.kry-field-hint {
  margin-top: -1px;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.kry-request-form input[aria-invalid="true"],
.kry-request-form select[aria-invalid="true"],
.kry-picker-control[aria-invalid="true"],
.kry-time-picker[aria-invalid="true"] {
  border-color: #d92d20;
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.08);
}

.kry-time-picker[aria-invalid="true"] select,
.kry-time-picker[aria-invalid="true"] input {
  border-color: #d92d20;
}

@media (max-width: 720px) {
  .kry-request-shell {
    width: min(100% - 24px, 860px);
    margin-top: 22px;
    margin-bottom: 54px;
  }

  .kry-request-intro h1 {
    font-size: clamp(30px, 8vw, 40px);
  }

  .kry-request-intro p {
    font-size: 16px;
  }

  .kry-request-form {
    padding: 24px 17px 20px;
    border-radius: 20px;
  }

  .kry-form-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .kry-calendar-popover {
    right: 0;
    left: auto;
    width: min(340px, calc(100vw - 42px));
  }

  .kry-time-picker {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .kry-time-picker {
    grid-template-columns: 1fr 1fr;
  }

  .kry-time-picker select[data-kry-time-period] {
    grid-column: 1 / -1;
  }
}
