/* ==========================================================================
   Public pages — a faithful copy of the official EDB event page
   (manage.edb.gov.sg/Industrydecarb2026): navy sticky navbar, photo hero,
   white content column and a registration panel that overlaps the hero.
   ========================================================================== */
:root {
  --edb-navy:#132b66; --edb-navy-deep:#060f23; --edb-navy-light:#1a3a80;
  --edb-bg:#f2f3f7; --edb-text:#333; --edb-muted:#555; --edb-grey:#8a8a8a;
  --edb-red:#e00b16; --edb-link:#132b66; --edb-border:#c6c4c4;
}

.edb-public {
  font-family:Metropolis, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size:16px; font-weight:400; color:var(--edb-text); background:var(--edb-bg);
  margin:0; padding:0; min-height:100vh; display:flex; flex-direction:column;
}
.edb-public * { box-sizing:border-box; }
.edb-public a { color:var(--edb-navy); }

/* ---------------------------------------------------------------- navbar */
.navbar { background:var(--edb-navy); position:sticky; top:0; z-index:100; padding:8px 0; }
/* Same box as .hero-container so the logo's left edge lines up with the hero heading. */
.navbar .container { max-width:1140px; width:100%; margin:0 auto; padding:0 20px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.navbar-brand { display:inline-flex; align-items:center; padding:5px 0; }
.navbar-brand img { height:32px; width:auto; display:block; }
.navbar-collapse { display:flex; align-items:center; gap:4px; }
.nav-link { color:#fff !important; font-weight:600; text-decoration:none; padding:8px 16px; border-radius:6px; font-size:16px; }
.nav-link:hover { background:rgba(255,255,255,.12); text-decoration:none; }
#register-nav { background:#fff; color:var(--edb-navy) !important; border-radius:4px; font-weight:700; margin-left:8px; padding:8px 18px; }
#register-nav:hover { background:#e0e4ef; }
.navbar-toggler { display:none; background:transparent; border:1px solid rgba(255,255,255,.7); border-radius:4px; padding:6px 8px; cursor:pointer; }
.navbar-toggler span { display:block; width:22px; height:2px; background:#fff; margin:4px 0; }
@media (max-width:767px){
  .navbar-toggler { display:block; }
  .navbar-collapse { display:none; width:100%; flex-direction:column; align-items:stretch; padding:8px 0 4px; }
  .navbar-collapse.show { display:flex; }
  .navbar-collapse .nav-link { padding:10px 8px; }
  #register-nav { margin:6px 0 0; text-align:center; }
}

/* ---------------------------------------------------------------- hero */
.hero-banner {
  position:relative; color:#fff; overflow:hidden; min-height:323px;
  background:linear-gradient(135deg, var(--edb-navy-deep) 0%, var(--edb-navy) 60%, var(--edb-navy-light) 100%);
  padding:60px 0;
}
.hero-banner::before {
  content:""; position:absolute; inset:0;
  background:url("../img/hero-masthead.jpg") center/cover no-repeat;
}
.hero-container { max-width:1140px; width:100%; margin:0 auto; padding:0 20px; position:relative; z-index:2; }
.hero-content { max-width:700px; padding-right:0; }
.hero-content h1 { font-size:40px; font-weight:700; line-height:1.35; margin:0 0 16px; color:#fff; }
.hero-meta { font-size:20px; margin-bottom:6px; line-height:1.4; }
.sponsor-bar { margin-top:20px; display:flex; align-items:center; flex-wrap:wrap; }
.sponsor-logo { height:60px; width:auto; display:inline-block; margin-right:8px; }
.only_for_mobile { display:block; }
@media (max-width:1024px){ .only_for_mobile { display:none; } }
@media (max-width:1366px){ .hero-content h1 { font-size:36px; } }
@media (max-width:1199px){ .hero-content h1 { font-size:32px; } }
@media (max-width:900px){ .hero-banner { padding:40px 0; } .hero-content h1 { font-size:24px; } .hero-meta { font-size:17px; } }
@media (max-width:575px){ .hero-banner { padding:30px 0; min-height:0; } .hero-content h1 { font-size:20px; } }
/* Client banner image (8 Oct 2026): shown whole, no overlay, no photo behind it. */
.hero-banner--image { padding:0; min-height:0; background:#F6F4EF; }
.hero-banner--image::before { display:none; }
.hero-image { display:block; width:100%; height:auto; }

/* ---------------------------------------------------------------- page layout
   Desktop: white content column on the left and a 380px registration panel on
   the right, both starting below the hero (matches the official EDB page —
   the panel top lines up with the "Event Overview" heading). ≤991px: stacks. */
.page-wrapper { max-width:1170px; margin:0 auto; width:100%; flex:0 0 auto; }
.content-area { display:flex; align-items:flex-start; gap:0; background:#fff; position:relative; }
.content-left { flex:1 1 auto; min-width:0; padding:40px; }
.content-right {
  flex:0 0 380px; width:380px; margin:20px 40px 40px 0; position:relative; z-index:20;
  background:#fff; border-radius:8px; box-shadow:0 4px 24px rgba(0,0,0,.18);
}
@media (max-width:1199px){ .content-right { flex-basis:360px; width:360px; margin-right:20px; } }
@media (max-width:991px){
  .content-area { flex-direction:column; gap:0; background:transparent; }
  .content-left { width:100%; background:#fff; padding:28px 20px; border-bottom:1px solid #e0e4ef; }
  .content-right { width:100%; flex-basis:auto; margin:20px auto 20px; }
  .page-wrapper { padding:0 12px; }
}
@media (max-width:575px){ .content-left { padding:20px 16px; } .page-wrapper { padding:0; } .content-right { border-radius:0; margin-top:0; } }

/* ---------------------------------------------------------------- content */
.content-left h2 {
  font-size:20px; font-weight:700; color:var(--edb-navy); margin:0 0 16px; padding-bottom:12px;
  border-bottom:2px solid var(--edb-navy);
}
.event-details-strip {
  background:var(--edb-bg); border-left:4px solid var(--edb-navy); padding:16px 20px; margin-bottom:28px;
  font-size:16px; line-height:26px;
}
.event-details-strip .detail-row { display:flex; align-items:flex-start; gap:10px; margin-bottom:8px; }
.event-details-strip .detail-row:last-child { margin-bottom:0; }
.event-details-strip .detail-row-tight { margin-bottom:2px; }
.event-details-strip .detail-row-gap { margin-top:16px; }
.event-details-strip .detail-list { margin:4px 0 0; padding-left:22px; }
.event-details-strip .detail-list li { margin-bottom:6px; }
.event-details-strip .detail-list li:last-child { margin-bottom:0; }
.two-col-text { font-size:16px; line-height:26px; color:var(--edb-text); margin-bottom:44px; }
.two-col-text p { margin:0 0 12px; }
.two-col-text ul { padding-left:24px; margin:0 0 16px; }
.two-col-text li { margin-bottom:0; }
.visit-accordion { margin:4px 0 16px; }
.visit-item {
  border:1px solid var(--edb-border); border-radius:8px; background:#fff; margin-bottom:10px; overflow:hidden;
  transition:box-shadow .2s, border-color .2s;
}
.visit-item:last-child { margin-bottom:0; }
.visit-item[open] { border-color:var(--edb-navy); box-shadow:0 4px 14px rgba(19,43,102,.08); }
.visit-summary {
  display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 18px; cursor:pointer;
  list-style:none; background:var(--edb-bg); border-left:4px solid var(--edb-navy);
}
.visit-summary::-webkit-details-marker { display:none; }
.visit-summary:hover { background:#eef1f8; }
.visit-summary:focus-visible { outline:2px solid var(--edb-navy); outline-offset:-2px; }
.visit-head { display:flex; flex-direction:column; gap:2px; min-width:0; }
.visit-title { font-size:16px; font-weight:700; color:var(--edb-navy); line-height:1.4; }
.visit-meta { font-size:14px; color:var(--edb-muted); line-height:1.4; }
.visit-toggle {
  flex:0 0 28px; width:28px; height:28px; border-radius:50%; background:var(--edb-navy); position:relative;
  transition:transform .25s ease;
}
.visit-toggle::before, .visit-toggle::after {
  content:""; position:absolute; top:50%; left:50%; width:12px; height:2px; background:#fff; transform:translate(-50%,-50%);
}
.visit-toggle::after { transform:translate(-50%,-50%) rotate(90deg); transition:transform .25s ease; }
.visit-item[open] .visit-toggle::after { transform:translate(-50%,-50%) rotate(0deg); }
.visit-body { padding:14px 18px 18px 22px; }
.visit-body p { margin:0; font-size:15px; line-height:25px; }
@media (max-width:575px){ .visit-summary { padding:12px 14px; } .visit-body { padding:12px 14px 16px 18px; } }
.two-col-text sub, .two-col-text sup { font-size:0.75em; line-height:0; }
.section-subheading { font-size:18px; font-weight:700; color:var(--edb-navy); margin:16px 0 10px; }
.a_hyperlinks { color:var(--edb-link); text-decoration:underline; }
.lead-up { font-size:16px; line-height:26px; margin:0; }
.disclaimer-text { margin-top:24px; font-size:14px; color:#888; line-height:1.6; }

/* ---------------------------------------------------------------- form panel */
.form-panel-header {
  background:var(--edb-navy); color:#fff; padding:20px 24px 16px; font-size:18px; font-weight:700;
  letter-spacing:.01em; border-radius:8px 8px 0 0; line-height:1.4;
}
.form-panel-body { padding:20px 24px 24px; }
@media (max-width:575px){ .form-panel-body { padding:16px; } .form-panel-header { border-radius:0; } }

.form-panel-body .form-group { margin:0 0 4px; }
.form-panel-body .field-label {
  display:block; font-size:16px; font-weight:700; color:var(--edb-text); margin:12px 0 4px; text-align:left;
}
.form-panel-body .required { color:var(--edb-red); font-size:14px; }
.form-panel-body .form-control {
  width:100%; height:auto; padding:8px 10px; font-size:15px; line-height:1.5; font-family:inherit; color:var(--edb-text);
  border:1px solid var(--edb-border); border-radius:4px; background:#fff; transition:border-color .2s;
  -webkit-appearance:none; appearance:none;
}
.form-panel-body select.form-control {
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 10px center; padding-right:30px;
}
.form-panel-body .form-control:focus { border-color:var(--edb-navy); outline:none; box-shadow:0 0 0 2px rgba(19,43,102,.1); }
.form-panel-body .form-control.error { border-color:var(--edb-red); }

.form-divider { border:0; margin:16px 0; }

.checkbox-group { display:flex; align-items:flex-start; gap:8px; margin-top:16px; }
.checkbox-group:first-of-type { margin-top:0; }
.checkbox-group input[type=checkbox] { margin:3px 0 0; flex-shrink:0; width:15px; height:15px; accent-color:var(--edb-navy); }
.checkbox-group label { font-size:13px; font-weight:400; line-height:22px; color:var(--edb-muted); margin:0; cursor:pointer; }
.checkbox-group a { color:var(--edb-navy); }

label.error, .form-panel-body .error-text { color:#F00; font-size:12px; font-weight:300; display:block; margin:2px 0 0; text-align:left; }
.interested_visit_Singapore_error { display:none; }   /* empty spacer on the EDB page — collapsed so the checkboxes sit evenly */
.privacy_checkbox_error, .visit_ack_error { color:var(--edb-red); font-size:12px; line-height:1.4; min-height:0; }
.form-alert { background:#fdecec; border:1px solid #f5c9c9; color:#8e2323; border-radius:4px; padding:10px 12px; font-size:13.5px; margin-bottom:6px; }
.form-alert-info { background:#fdf6e7; border-color:#f3dfb0; color:#8a5a12; }
.confirmation-note { font-size:13px; color:var(--edb-muted); margin:16px 0 0; line-height:1.5; font-style:italic; }

.submit-btn-wrap { margin-top:20px; }
.submit-btn-wrap button {
  display:block; width:100%; padding:12px; background:var(--edb-navy); color:#fff; font:inherit; font-size:16px; font-weight:700;
  border:2px solid var(--edb-navy); border-radius:6px; cursor:pointer; transition:background-color .3s, color .3s;
}
.submit-btn-wrap button:hover { background:#fff; color:var(--edb-navy); }
.submit-btn-wrap button[disabled] { opacity:.6; cursor:default; }

/* ---------------------------------------------------------------- footer */
footer { background:var(--edb-bg); padding:20px; text-align:center; font-size:13px; color:var(--edb-grey); }
footer p { margin:0; }
footer a { color:var(--edb-navy); text-decoration:none; }
footer a:hover { text-decoration:underline; }

/* ---------------------------------------------------------------- thank you */
.thanks-wrap { max-width:1170px; margin:0 auto; width:100%; padding:40px 16px 60px; flex:1 0 auto; }
.thanks-card { max-width:620px; margin:0 auto; background:#fff; border-radius:8px; box-shadow:0 4px 24px rgba(0,0,0,.12); padding:44px 34px; text-align:center; }
.thanks-icon {
  width:70px; height:70px; border-radius:50%; margin:0 auto 20px; background:#e8f6ef; color:#1e8e5a;
  display:flex; align-items:center; justify-content:center;
}
.thanks-card h1 { font-size:26px; color:var(--edb-navy); margin:0 0 12px; }
.thanks-card p { line-height:1.6; color:var(--edb-muted); }
.thanks-card h3 { font-size:16px; color:var(--edb-navy); margin:0 0 8px; }
.thanks-card ol { padding-left:20px; margin:0 0 8px; color:var(--edb-muted); line-height:1.6; }
.ref-box { background:var(--edb-bg); border:1px dashed #b9c1d6; border-radius:6px; padding:16px; margin:22px 0; }
.ref-box .ref-label { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--edb-muted); font-weight:700; }
.ref-box .ref-value { font-size:26px; font-weight:700; color:var(--edb-navy); letter-spacing:.04em; margin-top:4px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
