/* Something Borrowed - booking portal, FAQ, ring styles, footer links.
   Functional UI uses rem sizing (not design units) so controls stay usable at every width. */

/* ---------- Booking panel ---------- */
.book-box { display: block; padding: clamp(28px, 4vw, 72px) clamp(20px, 4vw, 80px); min-height: 0; }
.bk { max-width: 1240px; margin: 0 auto; color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 1rem; line-height: 1.45; }
.bk-head { text-align: center; max-width: 760px; margin: 0 auto clamp(28px, 3vw, 44px); }
.bk-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.2; margin: 0 0 12px; }
.bk-sub { margin: 0; color: #4A4744; font-size: 1.0625rem; }

.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.bk-step { margin-bottom: 30px; }
.bk-label { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.375rem; line-height: 1.2; margin: 0 0 14px; color: var(--ink); }
.bk-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ink); font-family: var(--sans); font-weight: 400; font-size: .8125rem; flex: 0 0 28px; }

/* Controls */
.bk-select-wrap { position: relative; }
.bk-select, .bk-field input, .bk-field textarea {
  width: 100%; background: #fff; border: 1px solid #D8D2C8; border-radius: 0; color: var(--ink);
  font: inherit; font-size: 1rem; padding: 14px 16px; -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s;
}
.bk-select { padding-right: 44px; cursor: pointer; }
.bk-select-wrap::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.bk-select:focus, .bk-field input:focus, .bk-field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(149, 113, 39, .18); }
.bk-field input[aria-invalid="true"], .bk-field textarea[aria-invalid="true"], .bk-select[aria-invalid="true"] { border-color: #A33A2E; }
.bk-store-info { margin: 12px 2px 0; font-size: .9375rem; color: #4A4744; line-height: 1.5; }
.bk-store-info strong { font-weight: 400; color: var(--ink); }
.bk-store-info a { color: inherit; }

/* Calendar */
.bk-cal { background: #fff; border: 1px solid #D8D2C8; padding: 16px 16px 12px; }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bk-cal-month { margin: 0; font-family: var(--serif); font-size: 1.125rem; }
.bk-cal-nav { width: 40px; height: 40px; border: 1px solid transparent; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); border-radius: 50%; }
.bk-cal-nav:hover { border-color: #D8D2C8; }
.bk-cal-nav:disabled { opacity: .25; cursor: default; border-color: transparent; }
.bk-cal-week, .bk-cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bk-cal-week span { text-align: center; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: #8A857D; padding: 6px 0; }
.bk-day { position: relative; aspect-ratio: 1 / 1; border: 1px solid transparent; background: transparent; font: inherit; font-size: .9375rem; color: var(--ink); cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s; }
.bk-day:hover:not(:disabled) { border-color: var(--ink); }
.bk-day:disabled { color: #C4BFB6; cursor: default; }
.bk-day.is-empty { visibility: hidden; }
.bk-day.is-selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.bk-day.is-full { color: #C4BFB6; text-decoration: line-through; }
.bk-day.is-today::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: currentColor; transform: translateX(-50%); }
.bk-day.is-partial::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); transform: translateX(-50%); }
.bk-day.is-selected.is-partial::after { background: #fff; }
.bk-cal-hint { margin: 10px 0 0; font-size: .8125rem; color: #8A857D; min-height: 1.2em; }
.bk-cal.is-loading .bk-cal-days { opacity: .4; }

/* Slots */
.bk-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-slot { background: #fff; border: 1px solid #D8D2C8; padding: 14px 12px; text-align: left; cursor: pointer; font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 3px; transition: border-color .15s, background .15s; }
.bk-slot:hover:not(:disabled) { border-color: var(--ink); }
.bk-slot[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.bk-slot:disabled { color: #B5B0A8; cursor: default; background: #FAF8F4; }
.bk-slot-time { font-family: var(--serif); font-size: 1.25rem; line-height: 1.1; }
.bk-slot-sub { font-size: .8125rem; color: inherit; opacity: .75; }
.bk-slot:disabled .bk-slot-sub::after { content: " · unavailable"; }
.bk-slots-hint { margin: 10px 0 0; font-size: .8125rem; color: #8A857D; min-height: 1.2em; }

/* Fields */
.bk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.bk-field { display: flex; flex-direction: column; gap: 6px; }
.bk-field-full { grid-column: 1 / -1; }
.bk-field label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #4A4744; }
.bk-optional { text-transform: none; letter-spacing: 0; color: #8A857D; }
.bk-field textarea { resize: vertical; min-height: 84px; }
.bk-help { margin: 0; font-size: .8125rem; color: #8A857D; }
.bk-error { margin: 0; font-size: .8125rem; color: #A33A2E; }
.bk-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.bk-consents { margin: 22px 0 6px; display: grid; gap: 12px; }
.bk-check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .9375rem; line-height: 1.5; cursor: pointer; }
.bk-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.bk-check a { color: inherit; }
.bk-check.is-invalid span { color: #A33A2E; }

.bk-summary { margin: 18px 0 0; padding: 14px 16px; background: #fff; border: 1px solid #D8D2C8; font-size: .9375rem; line-height: 1.5; }
.bk-summary strong { font-weight: 400; font-family: var(--serif); font-size: 1.0625rem; }

.bk-submit, .bk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 28px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; font: inherit; font-weight: 400; font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.bk-submit { width: 100%; margin-top: 20px; }
.bk-submit:hover, .bk-btn-dark:hover { background: #000; }
.bk-submit:disabled { opacity: .55; cursor: progress; }
.bk-btn { background: #fff; color: var(--ink); }
.bk-btn:hover { background: var(--ink); color: #fff; }
.bk-btn-dark { background: var(--ink); color: #fff; }
.bk-status { margin: 12px 0 0; font-size: .9375rem; min-height: 1.4em; color: #A33A2E; }
.bk-status.is-ok { color: var(--gold); }
.bk-fineprint { margin: 14px 0 0; font-size: .8125rem; color: #8A857D; line-height: 1.5; }

/* Success */
.bk-success { max-width: 720px; margin: 0 auto; text-align: center; }
.bk-success:focus { outline: none; }
.bk-success-kicker { margin: 0 0 6px; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.bk-success-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0 0 22px; line-height: 1.2; }
.bk-success-details { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; text-align: left; margin: 0 auto 22px; max-width: 560px; background: #fff; border: 1px solid #D8D2C8; padding: 22px 26px; }
.bk-success-details dt { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #8A857D; padding-top: 3px; }
.bk-success-details dd { margin: 0; font-size: 1.0625rem; }
.bk-success-note { margin: 0 0 22px; color: #4A4744; }
.bk-success-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 30px; }
.bk-success-bring { text-align: left; max-width: 560px; margin: 0 auto; border-top: 1px solid #D8D2C8; padding-top: 22px; }
.bk-success-bring h4 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin: 0 0 10px; }
.bk-success-bring ul { margin: 0 0 10px; padding-left: 20px; }
.bk-success-bring li { margin-bottom: 6px; }
.bk-success-bring p { margin: 0; color: #4A4744; }

/* ---------- FAQ ---------- */
.faq { background: var(--cream); padding: clamp(48px, 5vw, 96px) clamp(20px, 5vw, 80px) clamp(28px, 3vw, 48px); }
.faq-inner { max-width: 860px; margin: 0 auto; }
.faq-heading { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.2; margin: 0 0 clamp(20px, 2vw, 32px); text-align: center; }
.faq-list { border-top: 1px solid #D8D2C8; }
.faq-item { border-bottom: 1px solid #D8D2C8; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 4px; font-family: var(--serif); font-size: clamp(1.125rem, 1.4vw, 1.375rem); line-height: 1.3; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.6rem; line-height: 1; color: var(--gold); flex: 0 0 auto; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 20px; padding: 0 4px; font-size: 1.0625rem; line-height: 1.55; color: #4A4744; max-width: 760px; }
.faq .terms-link { margin-top: clamp(28px, 3vw, 44px); }

/* ---------- Ring styles ---------- */
.styles { background: #fff; padding: clamp(48px, 5vw, 96px) 0; border-top: 1px solid #ECE7DF; }
.styles-inner { max-width: 1400px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 60px); }
.styles-head { text-align: center; max-width: 720px; margin: 0 auto clamp(24px, 3vw, 40px); }
.styles-heading { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.2; margin: 0 0 10px; }
.styles-sub { margin: 0; color: #4A4744; font-size: 1.0625rem; }
.styles-track-wrap { position: relative; }
.styles-track { list-style: none; margin: 0; padding: 4px 2px 12px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.styles-track::-webkit-scrollbar { display: none; }
.style-card { flex: 0 0 clamp(200px, 22vw, 300px); scroll-snap-align: start; }
.style-card a { display: block; text-decoration: none; color: var(--ink); border: 1px solid #ECE7DF; background: #fff; transition: border-color .15s, transform .2s; height: 100%; }
.style-card a:hover { border-color: var(--ink); transform: translateY(-2px); }
.style-img { display: block; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.style-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.style-name { display: block; padding: 14px 16px 2px; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.3; }
.style-cta { display: block; padding: 0 16px 16px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.styles-arrow { position: absolute; top: 40%; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #D8D2C8; background: #fff; color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center; z-index: 2; }
.styles-arrow:hover { border-color: var(--ink); }
.styles-arrow-prev { left: -22px; }
.styles-arrow-next { right: -22px; }
.styles-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; margin-top: clamp(20px, 2vw, 32px); }
.styles-link { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid #D8D2C8; padding-bottom: 2px; }
.styles-link:hover { border-bottom-color: var(--ink); }
.style-card.is-hidden { display: none; }
.styles.is-empty .styles-track-wrap { display: none; }

/* ---------- Footer links ---------- */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: clamp(24px, 2.5vw, 40px) 20px 0; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-links a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.footer-links a:hover { border-bottom-color: var(--ink); }
.footer-legal { max-width: 760px; margin: 18px auto 0; padding: 0 20px; text-align: center; font-size: .75rem; line-height: 1.6; color: #8A857D; }

/* ---------- Responsive ---------- */
@media (min-width: 1000px) {
  .styles-arrow { display: flex; }
}
@media (max-width: 900px) {
  .bk-grid { grid-template-columns: 1fr; gap: 8px; }
  .bk-fields { grid-template-columns: 1fr; }
  .bk-success-details { grid-template-columns: 1fr; gap: 4px 0; }
  .bk-success-details dt { padding-top: 10px; }
}
@media (max-width: 480px) {
  .bk-slots { grid-template-columns: 1fr; }
  .bk-label { font-size: 1.2rem; }
  .bk-cal { padding: 12px 8px 8px; }
  .bk-day { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-day, .bk-slot, .style-card a, .faq-item summary::after { transition: none; }
}
