:root {
  /* Janapriya Upscale brand palette (from logo) */
  --navy: #2A3887;
  --navy-deep: #262262;
  --blue: #29A9DF;
  --blue-tint: #E2F1FC;
  --red: #E91E3D;
  --grey: #64748b;
  --border: #d9e2ec;
  --grad: linear-gradient(135deg, #2A3887, #29A9DF);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f4f8fc;
  color: #1e2a4a;
  min-height: 100vh;
}
header.site {
  background: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid transparent;
  border-image: var(--grad) 1;
  box-shadow: 0 1px 6px rgba(38, 34, 98, .08);
}
header.site .brand { display: flex; align-items: center; gap: 12px; }
header.site .brand img { height: 36px; display: block; }
header.site .brand .tag {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  border-left: 2px solid var(--border);
  padding-left: 12px;
}
header.site a { color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 700; }
header.site a:hover { color: var(--blue); }
main { max-width: 560px; margin: 0 auto; padding: 24px 16px 48px; }
main.wide { max-width: 1080px; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(38, 34, 98, .05);
}
h1 { font-size: 22px; margin-bottom: 6px; color: var(--navy-deep); }
h2 { font-size: 17px; margin-bottom: 12px; color: var(--navy-deep); }
p.sub { color: var(--grey); font-size: 14px; margin-bottom: 18px; line-height: 1.55; }

label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 4px; color: var(--navy-deep); }
input[type=text], input[type=tel], input[type=email], input[type=password],
input[type=number], textarea, select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 15px;
  font-family: inherit;
  background: #fbfdff;
}
input:focus, textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); background: #fff; }

.btn {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 16px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(42, 56, 135, .25);
}
.btn:hover { filter: brightness(1.08); }
.btn.full { width: 100%; text-align: center; }
.btn.secondary {
  background: #fff; color: var(--navy); border: 1.5px solid var(--navy);
  box-shadow: none;
}
.btn.secondary:hover { background: var(--blue-tint); }
.btn.small { padding: 6px 12px; font-size: 13px; margin-top: 0; }
.btn.danger { background: var(--red); }

.error {
  background: #fdecef;
  color: var(--red);
  border: 1px solid #f5c2cc;
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 14px;
}
.msg {
  background: var(--blue-tint);
  color: var(--navy);
  border: 1px solid #bcd9f0;
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 14px;
}

/* parking option cards */
.option {
  display: flex;
  flex-direction: row-reverse;  /* image markup is first child → renders on the right */
  align-items: stretch;
  border: 2px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  cursor: pointer;
  background: #fff;
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.option:hover { border-color: var(--blue); box-shadow: 0 4px 14px rgba(41, 169, 223, .15); }
.option:has(input:checked) {
  border-color: var(--navy);
  background: var(--blue-tint);
  box-shadow: 0 4px 14px rgba(41, 169, 223, .25);
}
.option .optimg {
  flex: 0 0 44%;
  max-width: 230px;
  display: flex;
  align-items: center;
  border-left: 1px solid var(--border);
  background: linear-gradient(180deg, #eef4fa, #d7e3ee);
}
.option .optimg img { width: 100%; display: block; aspect-ratio: 480 / 280; }
.option .optbody { flex: 1; min-width: 0; padding: 14px 14px 16px 16px; }
.option .opthead { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.option input { margin-right: 8px; accent-color: var(--navy); transform: scale(1.15); vertical-align: -1px; }
.option .title { font-weight: 800; font-size: 15.5px; color: var(--navy-deep); line-height: 1.35; }
.option .price { font-weight: 800; color: var(--navy); font-size: 14.5px; }
.option .price.free { color: #1d7a3c; }
.option .desc { color: var(--grey); font-size: 13px; margin-top: 6px; line-height: 1.5; }
.option .avail { font-size: 12.5px; color: var(--blue); margin-top: 6px; font-weight: 700; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
}
.badge.submitted { background: var(--blue-tint); color: var(--navy); }
.badge.pending_payment { background: #fff6e6; color: #8a5a00; }
.badge.paid { background: #e3f5e9; color: #1d7a3c; }
.badge.confirmed { background: #e3f5e9; color: #1d7a3c; }
.badge.available { background: #e3f5e9; color: #1d7a3c; }
.badge.blocked { background: #fdecef; color: var(--red); }
.badge.assigned { background: var(--blue-tint); color: var(--navy); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--grey); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
tr:hover td { background: #f7fbfe; }

nav.admin { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; }
nav.admin a {
  padding: 8px 14px; border-radius: 9px; text-decoration: none;
  color: var(--navy); font-size: 14px; font-weight: 700;
}
nav.admin a.active, nav.admin a:hover { background: var(--grad); color: #fff; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px;
  border-top: 3px solid var(--blue);
}
.stat .num { font-size: 26px; font-weight: 800; color: var(--navy); }
.stat .lbl { font-size: 13px; color: var(--grey); }

.inline-form { display: inline; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) {
  .grid2 { grid-template-columns: 1fr; }
  header.site .brand .tag { display: none; }
}
/* sold-out parking option */
.option.soldout { cursor: not-allowed; opacity: .9; background: #f7f8fa; }
.option.soldout:hover { border-color: var(--border); box-shadow: none; }
.option.soldout .optimg { filter: grayscale(.85) opacity(.8); }
.option.soldout .title { color: var(--grey); }
.option .avail.full { color: var(--red); }
.soldout-note {
  background: #fff6e6; color: #8a5a00; border: 1px solid #f3d99b;
  border-radius: 8px; padding: 8px 11px; font-size: 12.5px; line-height: 1.5; margin: 0 0 8px;
}
.soldout-action { margin: -8px 0 16px; padding: 0 2px; }
.interest-done { color: #1d7a3c; font-weight: 700; font-size: 13px; margin-right: 8px; }
.linklike {
  background: none; border: none; color: var(--grey); text-decoration: underline;
  cursor: pointer; font: inherit; font-size: 12.5px; padding: 0;
}
.linklike:hover { color: var(--red); }

/* units hub */
.unit-card {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px;
  background: #fff;
}
.unit-card .uinfo .uname { font-weight: 800; color: var(--navy-deep); font-size: 15px; }
.unit-card .uinfo .umeta { color: var(--grey); font-size: 13px; margin-top: 3px; }
.unit-card .uinfo .uchoice { font-size: 13px; margin-top: 7px; }
.unit-card .uaction { flex: 0 0 auto; text-align: right; }
@media (max-width: 520px) {
  .unit-card { flex-direction: column; align-items: stretch; }
  .unit-card .uaction { text-align: left; }
}

footer { text-align: center; color: var(--grey); font-size: 12.5px; padding: 18px; }
