:root {
  --brand: #ff5d48;
  --brand-2: #e84a36;
  --ink: #222;
  --muted: #666464;
  --card: #f4f4f4;
  --coral: #ff5d48;
}

html { font-size: 16px; }

body {
  font-family: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, strong, b, .form-label, th { font-weight: 700; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }
a { color: var(--brand); }
a:hover { color: var(--brand-2); }
.brand-colour { color: var(--brand); }

.site-header { background: var(--coral); padding: 20px 0 10px; }
.site-logo { height: 70px; width: auto; }
.site-main { min-height: 60vh; }

/* Page background carried over from the legacy homepage (.mycontainer) */
.mycontainer {
  background: url(../images/Generic-colourBAK.webp) center center / cover no-repeat;
}
.site-main.mycontainer { padding-bottom: 60px; }
.site-main.mycontainer + .site-footer { margin-top: 0; }
@media (max-width: 1200px) {
  .mycontainer { background: url(../images/Generic-colourBAK_1200.webp) center center / cover no-repeat; }
}
@media (max-width: 600px) {
  .mycontainer { background: url(../images/Generic-colourBAK_600.webp) center center / cover no-repeat; }
}

/* Application form pages: legacy green background (bak2023.webp) behind a white card */
.form-bg {
  background: #0b2929 url(../images/bak2023.webp) right top / cover no-repeat;
  padding: 2rem 0 60px;
}
.form-bg + .site-footer { margin-top: 0; }
.form-bg > .container { background: #fff; }
.form-bg h2, .form-bg h3 { text-transform: uppercase; }
@media (min-width: 768px) {
  .form-bg { background-attachment: fixed; padding-top: 3.5rem; }
  .form-bg > .container { padding-left: 2rem; padding-right: 2rem; }
}

/* Homepage: coral ASK-MODELS banner with a white panel overlapping it (legacy index.asp) */
.home-hero { position: relative; display: flow-root; max-width: 1170px; margin: 0 auto; }
.home-banner {
  position: absolute; inset: 0 0 auto 0;
  aspect-ratio: 1600 / 591;
  background: var(--coral) url(../images/PIC_Header.png) top center / contain no-repeat;
}
.home-panel { position: relative; background: #fff; padding: 0 0 2.5rem; }
.home-copy { padding: 1.5rem 16px 0; }
.home-info { margin: 0 25px 25px; padding: 0; }
.home-image { padding-left: 30px; }
.home-image img { display: block; width: 100%; }
@media (min-width: 768px) {
  /* Panel starts ~2/3 of the way down the banner, as legacy (385px of 1170px) */
  .home-panel { margin-top: 32.9%; padding-left: 4rem; }
  .home-copy { padding: 0; }
  /* Image sits level with the left-hand text, clear of the banner */
  .home-image { margin-top: 0; }
}
.home-mobile-top { background: var(--coral); }
@media (max-width: 767.98px) {
  .home-panel { padding: 0 0 2rem; }
}

.tip-title { color: var(--coral); }
.tip-text { color: var(--muted); font-weight: 300; line-height: 1.2; font-size: 1.15rem; margin-bottom: 1rem; }
.btn-coral {
  background: var(--coral); color: #fff; border: 0; border-radius: 3px;
  padding: .7rem 1.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.btn-coral:hover, .btn-coral:focus { background: #e84a36; color: #fff; }

.btn-brand {
  background: var(--brand);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .8rem 1.9rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
}
.btn-brand:hover, .btn-brand:focus { background: var(--brand-2); color: #fff; }
.btn-outline-brand { border: 2px solid var(--brand); color: var(--brand); border-radius: 999px; font-weight: 700; padding: .6rem 1.4rem; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

.tip-card {
  background: var(--card);
  border-radius: 18px;
  padding: 20px;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.slash::before {
  content: "";
  display: inline-block;
  width: 29px; height: 47px;
  background: url(../images/slash.png) no-repeat;
  vertical-align: middle;
  margin-right: 14px;
}

.apply-steps { padding: 0; }
.apply-steps li { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .9rem; }
.apply-steps .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid #ccc; font-weight: 700;
}
.apply-steps .current { color: var(--ink); font-weight: 700; }
.apply-steps .current .num { border-color: var(--brand); background: var(--brand); color: #fff; }
.apply-steps .done .num { border-color: var(--brand); color: var(--brand); }
@media (max-width: 575px) { .apply-steps .label { display: none; } }

.form-control, .form-select { border-radius: 4px; padding: .6rem .75rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 .2rem rgba(255,93,72,.25); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.section-rule { border-top: 1px solid #e5e5e5; margin: 1.5rem 0; }

.terms ol { padding-left: 1.2rem; }
.terms li { margin-bottom: .6rem; }

.photo-drop { border: 2px dashed #ccc; border-radius: 12px; padding: 2rem; text-align: center; background: #fafafa; }
.photo-preview { max-width: 260px; border-radius: 10px; box-shadow: 0 8px 18px rgba(0,0,0,.15); }

.site-footer { background: #222; color: #ccc; padding: 40px 0; margin-top: 60px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--brand-2); }

/* Admin */
.admin-body { background: #f5f5f7; }
.admin-main { max-width: 1500px; }
.filter-panel { background: #fff; border-radius: 10px; padding: 1rem 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.model-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); text-decoration: none; color: inherit; display: block; transition: transform .1s; }
.model-card:hover { transform: translateY(-2px); color: inherit; }
.model-card img { width: 100%; aspect-ratio: 300 / 337; object-fit: cover; display: block; background: #eee; }
.model-card .meta { padding: .5rem .7rem; font-size: .85rem; line-height: 1.3; }
.model-card .name { font-weight: 700; display: block; }
.status-badge { font-size: .75rem; text-transform: capitalize; }
.status-draft { background: #999; } .status-submitted { background: #0d6efd; } .status-approved { background: #198754; }
.status-rejected { background: #dc3545; } .status-archived { background: #6c757d; }
.detail-photo { max-width: 100%; max-height: 520px; border-radius: 10px; box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.detail-grid dt { color: var(--muted); font-weight: 400; }
.detail-grid dd { font-weight: 400; }
