/* Royal Siberian Kittens — shared UI: inquiry modal + sticky button. */
:root {
  --rsk-primary: #2f6b3f;
  --rsk-primary-dark: #135229;
  --rsk-bg: #fbfae9;
  --rsk-surface: #ffffff;
  --rsk-line: #c0c9be;
  --rsk-ink: #1b1c12;
  --rsk-muted: #5b6157;
}

/* ---- Sticky Inquire button (desktop + mobile) ---------------------------- */
#rsk-sticky {
  position: fixed;
  z-index: 60;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: none;
  border-radius: 999px;
  background: var(--rsk-primary);
  color: #fff;
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(19, 82, 41, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
#rsk-sticky:hover {
  background: var(--rsk-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(19, 82, 41, 0.4);
}
#rsk-sticky .material-symbols-outlined {
  font-size: 22px;
  line-height: 1;
}

/* On phones make it a full-width sticky bar at the bottom for easy thumb reach */
@media (max-width: 640px) {
  #rsk-sticky {
    left: 16px;
    right: 16px;
    bottom: 16px;
    justify-content: center;
    padding: 16px;
    font-size: 16px;
    border-radius: 16px;
  }
}

/* ---- Modal --------------------------------------------------------------- */
#rsk-inquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#rsk-inquiry-modal.rsk-open {
  display: flex;
}
.rsk-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(19, 38, 24, 0.55);
  backdrop-filter: blur(4px);
}
.rsk-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--rsk-surface);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: rsk-pop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "Source Serif 4", Georgia, serif;
}
@keyframes rsk-pop {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.rsk-modal-x {
  position: absolute;
  top: 14px;
  right: 18px;
  border: none;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  color: var(--rsk-muted);
  cursor: pointer;
}
.rsk-modal-x:hover { color: var(--rsk-primary-dark); }

.rsk-modal-head { text-align: center; margin-bottom: 22px; }
.rsk-modal-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
}
.rsk-modal-head h2 {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  color: var(--rsk-primary);
  margin: 0 0 6px;
}
.rsk-modal-head p {
  font-size: 14px;
  color: var(--rsk-muted);
  margin: 0;
  line-height: 1.5;
}

#rsk-inquiry-form { display: block; }
.rsk-field { margin-bottom: 14px; }
.rsk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .rsk-grid { grid-template-columns: 1fr; }
  .rsk-modal-card { padding: 24px 20px; }
}
.rsk-field label {
  display: block;
  font-family: "Source Sans 3", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rsk-muted);
  margin-bottom: 6px;
}
.rsk-optional { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: 0.7; }
.rsk-field input,
.rsk-field select,
.rsk-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-family: "Source Serif 4", serif;
  font-size: 15px;
  color: var(--rsk-ink);
  background: #f5f4e3;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.rsk-field input:focus,
.rsk-field select:focus,
.rsk-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--rsk-primary);
}
.rsk-field textarea { resize: vertical; }

/* Read-only "Kitten of Interest" field */
.rsk-kitten-display {
  font-family: "Playfair Display", serif !important;
  font-weight: 600;
  color: var(--rsk-primary) !important;
  background: #eef6ef !important;
  border: 1px solid var(--rsk-primary) !important;
  cursor: default;
}

.rsk-submit {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  background: var(--rsk-primary);
  color: #fff;
  font-family: "Source Sans 3", sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  margin-top: 6px;
}
.rsk-submit:hover { background: var(--rsk-primary-dark); }
.rsk-submit:disabled { opacity: 0.7; cursor: progress; }

.rsk-formnote { margin: 12px 0 0; font-size: 13px; text-align: center; min-height: 1em; }
.rsk-formnote.rsk-error { color: #ba1a1a; }

.rsk-success {
  text-align: center;
  padding: 12px 4px 4px;
  animation: rsk-success-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes rsk-success-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rsk-success .rsk-modal-logo { width: 48px; height: 48px; margin-bottom: 6px; }
.rsk-success h2 {
  font-family: "Playfair Display", serif;
  font-size: 30px;
  color: var(--rsk-primary);
  margin: 6px 0 10px;
}
.rsk-success p {
  color: var(--rsk-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 auto 24px;
  max-width: 380px;
}
.rsk-success .rsk-submit { max-width: 200px; margin: 0 auto; }

/* Animated circular success badge */
.rsk-success-badge {
  width: 92px;
  height: 92px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #eef6ef 0%, #dcefdf 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: rsk-badge-pop 0.5s cubic-bezier(0.16, 1.4, 0.3, 1) both;
}
.rsk-success-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--rsk-primary);
  opacity: 0;
  animation: rsk-badge-ring 1.4s ease-out 0.3s infinite;
}
@keyframes rsk-badge-pop {
  0%   { transform: scale(0); }
  100% { transform: scale(1); }
}
@keyframes rsk-badge-ring {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.35); opacity: 0; }
}
.rsk-success-check {
  font-size: 56px !important;
  color: var(--rsk-primary);
  font-variation-settings: 'FILL' 1;
  animation: rsk-check-in 0.45s cubic-bezier(0.16, 1.4, 0.3, 1) 0.15s both;
}
@keyframes rsk-check-in {
  0%   { transform: scale(0) rotate(-25deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
