/* sybil-jotform.css - Jotform Exact Match - Mobile First - Jan 30 2026 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* ===============================
   CSS VARIABLES (Jotform Exact)
   =============================== */
:root {
  --jf-blue: rgb(46, 105, 255);
  --jf-gray-bg: rgb(229, 231, 235);
  --jf-gray-border: rgb(229, 231, 242);
  --jf-text: rgb(44, 51, 69);
  --jf-text-dark: rgb(31, 41, 55);
  --jf-white: rgb(255, 255, 255);
  --jf-page-bg: rgb(248, 249, 250);
  --jf-shadow-card: rgba(87, 100, 126, 0.21) 0px 4px 4px 0px;
  --jf-shadow-btn: rgba(0, 0, 0, 0.1) 0px 1px 2px 0px;
}

/* ===============================
   BASE (Mobile First)
   =============================== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--jf-text);
  background-color: var(--jf-page-bg);
  margin: 0;
  padding: 20px 12px;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
}

/* Tablet and up */
@media (min-width: 640px) {
  body {
    padding: 40px 20px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  body {
    padding: 72px 20px;
  }
}

/* ===============================
   CARD (Jotform Exact)
   =============================== */
.sybil-card {
  max-width: 752px;
  margin: 0 auto;
  background-color: var(--jf-white);
  padding: 24px 16px;
  border-radius: 3px;
  box-shadow: var(--jf-shadow-card);
}

/* Tablet and up */
@media (min-width: 640px) {
  .sybil-card {
    padding: 32px 40px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .sybil-card {
    padding: 40px 56px;
  }
}

/* ===============================
   TYPOGRAPHY (Jotform Exact)
   =============================== */
h1 {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: var(--jf-text);
  margin: 0 0 8px;
  word-break: break-word;
}

/* Tablet and up */
@media (min-width: 640px) {
  h1 {
    font-size: 24px;
    line-height: 32px;
  }
}

p {
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  color: var(--jf-text);
  margin: 15px 0;
  word-break: break-word;
}

label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 24px;
  color: var(--jf-text);
  margin-top: 16px;
  margin-bottom: 6px;
  word-break: break-word;
}

.hint {
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: rgb(107, 114, 128);
  margin-top: 6px;
}

.status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--jf-text);
  white-space: pre-wrap;
}

.divider {
  margin: 20px 0;
  height: 1px;
  background-color: rgb(229, 231, 235);
  border: none;
}

/* ===============================
   INPUTS (Jotform Style)
   =============================== */
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  height: 48px;
  border: 1px solid rgb(204, 204, 204);
  border-radius: 4px;
  padding: 0 12px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--jf-text);
  background-color: var(--jf-white);
  outline: none;
  -webkit-font-smoothing: antialiased;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  border-color: var(--jf-blue);
  box-shadow: 0 0 0 2px rgba(46, 105, 255, 0.1);
}

input[type="file"] {
  width: 100%;
  margin-top: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
}

/* ===============================
   SEARCH (Input + Icon Button)
   =============================== */
.search-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 6px;
}

.search-row input[type="text"] {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

button.search-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--jf-blue);
  border-left: none;
  cursor: pointer;
  background-color: var(--jf-blue);
  color: var(--jf-white);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

button.search-icon:hover {
  background-color: rgb(37, 84, 204);
}

button.search-icon:active {
  background-color: rgb(29, 66, 163);
}

button.search-icon:disabled {
  background-color: rgb(156, 163, 175);
  border-color: rgb(156, 163, 175);
  cursor: not-allowed;
  opacity: 0.6;
}

/* ===============================
   BUTTONS (Jotform Exact)
   =============================== */
button {
  height: 48px;
  min-width: 128px;
  border-radius: 4px;
  border: 1px solid transparent;
  padding: 0 12px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Primary Button (Next / Submit / Select) */
button.primary {
  background-color: var(--jf-blue);
  border-color: var(--jf-blue);
  color: var(--jf-white);
}

button.primary:hover {
  background-color: rgb(37, 84, 204);
  border-color: rgb(37, 84, 204);
}

button.primary:active {
  background-color: rgb(29, 66, 163);
  border-color: rgb(29, 66, 163);
}

/* Back Button (Gray) */
button.back {
  background-color: var(--jf-gray-bg);
  border-color: var(--jf-gray-border);
  color: var(--jf-text-dark);
  font-weight: 600;
  border-radius: 12px;
  box-shadow: var(--jf-shadow-btn);
}

button.back:hover {
  background-color: rgb(209, 213, 219);
}

button.back:active {
  background-color: rgb(196, 200, 207);
}

/* Secondary Button (used in success box) */
button.secondary {
  background-color: var(--jf-white);
  border: 1px solid var(--jf-gray-border);
  color: var(--jf-text-dark);
  font-weight: 600;
}

button.secondary:hover {
  background-color: rgb(249, 250, 251);
}

/* Full Width */
button.full {
  width: 100%;
}

/* Disabled State */
button:disabled {
  background-color: rgb(156, 163, 175) !important;
  border-color: rgb(156, 163, 175) !important;
  color: var(--jf-white) !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}

/* ===============================
   SUCCESS BOX (Jotform Style)
   =============================== */
.success {
  display: none;
  margin-top: 20px;
  padding: 16px;
  border-radius: 4px;
  background-color: rgb(239, 246, 255);
  border: 1px solid rgb(191, 219, 254);
}

.success h2 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: var(--jf-text);
}

.success p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 24px;
  color: var(--jf-text);
}

/* ===============================
   PHARMACY RESULTS (Scroll Area)
   =============================== */
.results.scrollbox {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  margin-top: 12px;
  border-radius: 4px;
  background-color: var(--jf-white);
}

/* Tablet and up */
@media (min-width: 640px) {
  .results.scrollbox {
    max-height: 400px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .results.scrollbox {
    max-height: 500px;
  }
}

/* Scrollbar */
.results.scrollbox::-webkit-scrollbar {
  width: 8px;
}

.results.scrollbox::-webkit-scrollbar-track {
  background: rgb(243, 244, 246);
  border-radius: 4px;
}

.results.scrollbox::-webkit-scrollbar-thumb {
  background: rgb(156, 163, 175);
  border-radius: 4px;
}

.results.scrollbox::-webkit-scrollbar-thumb:hover {
  background: rgb(107, 114, 128);
}

.results.scrollbox {
  scrollbar-width: thin;
  scrollbar-color: rgb(156, 163, 175) rgb(243, 244, 246);
}

/* Pharmacy Cards */
.card {
  border: 1px solid rgb(229, 231, 235);
  border-radius: 4px;
  padding: 16px;
  margin: 12px 0;
  background-color: var(--jf-white);
}

.title {
  font-weight: 700;
  font-size: 15px;
  line-height: 24px;
  color: var(--jf-text);
  margin-bottom: 6px;
}

.muted {
  color: rgb(107, 114, 128);
  font-size: 14px;
  line-height: 20px;
  margin: 4px 0;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background-color: rgb(238, 242, 255);
  color: rgb(79, 70, 229);
  margin-top: 8px;
}

/* ===============================
   RESPONSIVE (Mobile First)
   =============================== */

/* Small phones */
@media (max-width: 374px) {
  body {
    padding: 16px 8px;
  }

  .sybil-card {
    padding: 20px 12px;
  }

  h1 {
    font-size: 18px;
    line-height: 26px;
  }

  button {
    min-width: 100px;
    font-size: 15px;
  }
}

/* Large phones */
@media (min-width: 375px) and (max-width: 639px) {
  .sybil-card {
    padding: 24px 16px;
  }
}

/* Tablets */
@media (min-width: 640px) and (max-width: 1023px) {
  .row {
    flex-wrap: nowrap;
  }
}