/* Chisholm Trail Rides — booking pages. Cream paper, deep green, gold hairlines (from the confirmation card). */
:root {
  --green: #015e3d;
  --green-dark: #01452d;
  --indigo: #6808c2;
  --blue: #2b63a0;
  --cream: #f4f0e4;
  --paper: #fbf9f3;
  --gold: #b08d57;
  --ink: #2a2924;
  --muted: #6d6656;
  --line: #ded6c4;
  --danger: #9b2c1d;
  --ok: #015e3d;
  --radius: 10px;
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(251, 249, 243, 0.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { font-family: var(--display); font-size: 1.45rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: .01em; line-height: 1.1; }
.head-actions { display: flex; gap: 8px; align-items: center; }
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--green); background: var(--green); color: #fff; font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background .15s ease; }
.btn:hover { background: var(--green-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: rgba(1, 94, 61, .07); color: var(--green-dark); }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: .92rem; }
.btn[disabled], button.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; }

/* type */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.1rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.kicker { font: 600 .78rem/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin: 0 0 .6em; }
.lede { font-size: 1.15rem; color: #3b3a33; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

/* ornament rule, echoing the confirmation card */
.rule { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px auto; color: var(--gold); max-width: 260px; }
.rule::before, .rule::after { content: ''; flex: 1; border-top: 1px solid var(--gold); }
.rule span { font-size: .75rem; line-height: 1; }

/* hero */
.hero { position: relative; }
.hero-photo { width: 100%; height: clamp(220px, 38vw, 380px); object-fit: cover; object-position: 50% 60%; }
.hero-panel { position: relative; margin: -70px auto 0; max-width: 760px; background: var(--cream); border: 1px solid var(--line); outline: 1px solid var(--cream); outline-offset: 6px; padding: 30px 22px 26px; text-align: center; }
.hero-panel h1 { margin-bottom: .2em; }
.hero-plain { padding: 44px 0 10px; text-align: center; }

section { padding: 34px 0; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

/* cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { margin: 0; }
.card .price { font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: var(--green); }
.card .price small { font-family: var(--body); font-size: .9rem; font-weight: 400; color: var(--muted); }
.card ul { margin: 0; padding-left: 18px; color: #3b3a33; }
.card .actions { margin-top: auto; padding-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; }
.card.quiet { background: var(--cream); }
.tag { display: inline-block; font: 600 .74rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.notice { border-left: 3px solid var(--gold); background: var(--cream); padding: 14px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 14px 0; }
.notice.warn { border-color: var(--danger); background: #fbf1ee; }
.notice.good { border-color: var(--green); background: #eef5f1; }

/* booking flow */
.flow { display: grid; gap: 16px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.step h3 { font-size: 1.3rem; display: flex; align-items: baseline; gap: 10px; }
.step h3 .n { font-family: var(--body); font-size: .8rem; font-weight: 700; color: #fff; background: var(--green); border-radius: 999px; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.step[aria-disabled='true'] { opacity: .5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 .98rem/1.2 var(--body); cursor: pointer; }
.chip small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.chip[aria-pressed='true'] { background: var(--green); border-color: var(--green); color: #fff; }
.chip[aria-pressed='true'] small { color: #d9ece3; }
.chip:disabled { opacity: .4; cursor: not-allowed; }
.month { font: 700 .8rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.stepper button { width: 48px; height: 46px; border: 0; background: transparent; font-size: 1.4rem; color: var(--green); cursor: pointer; }
.stepper button:disabled { color: #bbb; cursor: not-allowed; }
.stepper output { min-width: 44px; text-align: center; font-weight: 700; font-size: 1.15rem; }

label { display: block; font-weight: 600; font-size: .95rem; margin: 0 0 4px; }
.field { margin: 0 0 14px; }
.row2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.row3 { display: grid; gap: 10px; grid-template-columns: 1fr 1fr 1fr; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cfc6b4; border-radius: 8px; background: #fff; color: var(--ink); font: 1rem/1.3 var(--body);
}
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--green); flex: none; }
.rider { border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 14px; }
.rider:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.err { color: var(--danger); font-size: .93rem; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.summary { width: 100%; border-collapse: collapse; margin: 6px 0 12px; }
.summary td { padding: 6px 0; border-bottom: 1px solid #efe9dc; }
.summary td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.summary tr.total td { font-weight: 700; font-size: 1.1rem; border-bottom: 0; padding-top: 10px; }

.pay-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--paper); }
.countdown { font-variant-numeric: tabular-nums; font-weight: 700; }
#paypal-buttons { min-height: 120px; }
.wallets { display: grid; gap: 10px; margin-bottom: 12px; }

/* the confirmation card */
.ride-card { max-width: 520px; margin: 0 auto; background: var(--cream); padding: 12px; }
.ride-card .inner { border: 1px solid #cfc6b4; padding: 30px 20px 26px; text-align: center; font-family: var(--display); color: var(--ink); }
.ride-card .title { font-size: 2.2rem; line-height: 1.1; font-weight: 500; }
.ride-card .exp { font-size: 1.35rem; font-weight: 600; }
.ride-card .when { font-size: 1.25rem; line-height: 1.5; margin-top: 6px; }
.ride-card .where { font-size: 1.15rem; font-style: italic; }
.ride-card img { margin-top: 12px; width: 100%; }

.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 40px; background: var(--cream); font-size: .95rem; }
.site-foot .wrap { display: grid; gap: 10px; }
.site-foot a { color: var(--ink); }

.terms dt { font-weight: 700; margin-top: 14px; }
.terms dd { margin: 4px 0 0; }

.preview-banner { background: var(--indigo); color: #fff; text-align: center; padding: 8px 12px; font-weight: 600; font-size: .92rem; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } * { transition: none !important; } }

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .head-actions .btn.ghost { display: none; }
  .row2 { grid-template-columns: 1fr; }
  .hero-panel { margin: -48px 12px 0; padding: 24px 16px 20px; }
  section { padding: 26px 0; }
}

/* GoDaddy Payments card form (an iframe GoDaddy fills in) */
.gd-card { margin-bottom: 12px; min-height: 230px; }

/* Rider matching (June design restored): a calm note, never an error, and a quiet green confirmation. */
.grace { background: rgba(43,99,160,.08); color: #2b63a0; border: 1px solid rgba(43,99,160,.25); border-radius: 10px; padding: 12px 14px; font-size: .93rem; line-height: 1.55; margin: 8px 0 0; }
.matched { color: var(--green, #015e3d); font-weight: 600; font-size: .93rem; margin: 6px 0 0; }
