/*
 * template.css
 * ─────────────────────────────────────────────────────────────
 * Shared base stylesheet for all Robbins self-signup pages.
 * Updated to match the navy / gold design system.
 * ─────────────────────────────────────────────────────────────
 */

/* ════════════════════════════════════════
   DESIGN TOKENS (mirrored from selfsignup-redesign.css)
════════════════════════════════════════ */
:root {
  --navy:       #0d1b2e;
  --gold:       #ffc102;
  --gold-dark:  #e6ad00;
  --gold-text:  #152148;
  --white:      #ffffff;
  --light-gray: #f4f4f4;
  --mid-gray:   #888888;
  --text-dark:  #1a1a1a;
  --nav-h:      64px;
}

/* ════════════════════════════════════════
   STRUCTURAL / LAYOUT
════════════════════════════════════════ */
body{
	margin: 0;;
}

body.header_style_2 .header_top {
  background-size: unset;
}

.page_title { margin: 0; }

html, body, div#react, div#wrapper, div#fullpage {
  height: 100%;
  overflow: auto;
  font-family: 'DM Sans', sans-serif;
}

div#fullpage {
  display: flex;
  flex-direction: column;
}
div#fullpage header#header    { width: 100%; flex: 0; }
div#fullpage div.page_title   { width: 100%; flex: 0; }
div#fullpage div#main {
  display: flex;
  width: 100%;
  flex: 1;
  overflow: hidden;
  font-size: 13px;
  color: var(--text-dark);
  font-family: 'DM Sans', sans-serif;
}

/* ════════════════════════════════════════
   UTILITY CLASSES
════════════════════════════════════════ */
.right       { text-align: right; }
.center      { text-align: center; }
.top         { vertical-align: top; }
.fill        { width: 100%; }
.pad_top     { padding-top: 1em; }
.pad_bottom  { padding-bottom: 1em; }
.hscroll     { overflow-x: auto; overflow-y: hidden; }

/* ════════════════════════════════════════
   TABLE BASELINE
════════════════════════════════════════ */
table thead tr th {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  font-family: 'DM Sans', sans-serif;
  color: var(--navy);
}

table thead tr th {
  padding-top: 1em;
  vertical-align: bottom;
}

table tr th,
table tr td { padding-left: 0.5em; }

table tr th:first-child,
table tr td:first-child { padding-left: 0; }

table tr th:last-child,
table tr td:last-child { padding-right: 0; }

table tr td { padding-top: 0.5em; padding-bottom: 0.5em; }

tr.totals td { border-top: 1px solid #ddd; }

/* ════════════════════════════════════════
   MODAL OVERLAYS  (popup, pleasewait, messagebox, etc.)
════════════════════════════════════════ */
div#popup,
div#pleasewait,
div#messagebox,
div#confirmationbox,
div#reviewbox {
  position: absolute;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(13, 27, 46, 0.6);  /* --navy at 60% */
  display: flex;
  align-items: center;
}

div#popup          { z-index: 100000; }
div#pleasewait     { z-index: 200000; }
div#messagebox     { z-index: 300000; }
div#confirmationbox{ z-index: 400000; }
div#reviewbox      { z-index: 500000; }

/* Modal content boxes */
div#pleasewait div#pleasewait_contents,
div#messagebox div#messagebox_container,
div#confirmationbox div#confirmationbox_content,
div#reviewbox div#reviewbox_container {
  background-color: var(--white);
  border: none;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 28px 32px;
  margin: auto;
  text-align: center;
  color: var(--text-dark);
  font-family: 'DM Sans', sans-serif;
}

div#messagebox div#messagebox_container,
div#confirmationbox div#confirmationbox_content,
div#reviewbox div#reviewbox_container {
  text-align: left;
}

/* Pleasewait spinner background */
div#pleasewait div#pleasewait_contents img {
  background-color: var(--gold);
  border-radius: 6px;
}

/* Message / content scroll areas */
div#messagebox_content {
  overflow-y: auto;
  max-height: 70vh;
}

div#reviewbox_content {
  overflow-y: auto;
  overflow-x: hidden;
  width: auto;
  max-height: 85vh;
  padding-right: 1em;
  padding-bottom: 0.5em;
}

div#reviewbox_content::-webkit-scrollbar { width: 5px; }
div#reviewbox_content::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.15);
  border-radius: 5px;
}
div#reviewbox_content::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: var(--gold);
}

/* Review box helpers */
div#reviewbox_name.fieldset           { padding-top: 1em; font-weight: 700; }
div#reviewbox_name:nth-of-type(n + 2) { border-top: 1px solid #eee; }
#reviewbox_rate_date.fieldset         { font-weight: 700; }
table.reviewbox_table thead tr th     { padding-top: 1em; }

/* ════════════════════════════════════════
   GLOBAL BUTTON
════════════════════════════════════════ */
button {
  -webkit-appearance: button;
  appearance: button;
  cursor: pointer;
  background: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  border: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  padding: 0.5em 2em;
}

button[disabled],
button:disabled {
  background-color: var(--mid-gray);
  cursor: not-allowed;
  opacity: 0.5;
}

button + button { margin-left: 1em; }

/* ── Specific button variants ── */
.smart_button {
  background: var(--gold) !important;
  background-image: none !important;
  color: var(--gold-text) !important;
}
.smart_button:hover { background: var(--gold-dark) !important; }

.PrintBUtton {
  background-color: var(--gold);
  background-image: none;
  color: var(--gold-text);
}

button.fill.buy_now {
  background-color: var(--gold);
  color: var(--gold-text);
}

button.fill.apply_now {
  background-color: var(--navy);
  color: var(--white);
}

/* "Update" button in parker table */
td.right-action-column > button:nth-child(1) {
  background: var(--gold);
  color: var(--gold-text);
}

/* Delete parker */
#delete-parker {
  background: #dc2626;
  color: var(--white);
}
#delete-parker:hover { background: #b91c1c; }

/* Inline hint button (parkers message box) */
button#parkers-text-button {
  cursor: text;
  background-color: var(--gold);
  color: var(--gold-text);
}

/* ════════════════════════════════════════
   FORM FIELDSET / FIELD
════════════════════════════════════════ */
.fieldset {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: stretch;
}

.fieldset_review { margin-top: 2em; }

.field {
  padding-top: 0.25em;
  padding-bottom: 0.25em;
  width: 50%;
}

.field.fill { width: 100%; }

@media (max-width: 640px) {
  .field { width: 100%; }
}

/* Labels — column layout (label above input) */
.field label {
  display: block;
  max-width: unset;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  width: auto;
  text-align: left;
  padding-right: 0;
}

/* Required labels — navy with red asterisk (not pure red) */
div.fieldset div.field.required label {
  color: var(--navy);
}

.field input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 193, 2, 0.12);
}

input[type="file"] { display: inline-block !important; }

/* ════════════════════════════════════════
   PRINT / ACTION BUTTONS
════════════════════════════════════════ */
.print_button {
  text-align: center;
  margin-top: 3em;
}
.print_button_top {
  text-align: center;
  margin-top: 3em;
  display: none;
}
.print_button_top .PrintBUtton { margin-bottom: 5px; }

.return_home_button {
  text-align: center;
  margin-top: 3em;
  margin-bottom: 3em;
}

@media (max-width: 768px) {
  .print_button     { display: none; }
  .print_button_top { display: block; }
}

/* ════════════════════════════════════════
   MISC
════════════════════════════════════════ */
/* temporarily hides facility details on parking locator when viewing lot */
li.nav-item:nth-child(2) {
  /* visibility: hidden; */
}
