/* ============================
   NeonCRM Global Theme (Blue + Gold)
   - White background, black text
   - Blue accents (#003366), Gold accents (#d4af37)
   - Buttons glow gold on hover
   - Banner text at top of page
   ============================ */

/* --- Color tokens --- */
:root {
  --clr-bg: #ffffff;
  --clr-text: #000000;
  --clr-blue: #003366;   /* Primary accent */
  --clr-gold: #d4af37;   /* Hover accent */
  --clr-muted: #e0e0e0;  /* Subtle borders */
}

/* ===== Top Banner Text ===== */
body::before {
  content: "Mariner Sands Foundation - Application Form";
  display: block;
  background-color: var(--clr-blue);
  color: #ffffff;
  text-align: center;
  font-weight: bold;
  padding: 30px;
  font-size: 4.5rem;
  border-bottom: 5px solid var(--clr-gold);
}

/* ===== Global Page Styling ===== */
html, body {
  background-color: var(--clr-bg) !important;
  color: var(--clr-text) !important;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Form/Page Containers ===== */
.neoncrm,
.neon-page,
.neon-form,
.form-container,
.content-container {
  background-color: var(--clr-bg) !important;
  border: 1px solid var(--clr-muted);
  padding: 20px;
  border-radius: 8px;
}

/* ===== Headings ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--clr-blue) !important;
  font-weight: 700;
  border-bottom: 2px solid var(--clr-gold);
  padding-bottom: 5px;
  margin-bottom: 15px;
}

/* ===== Links (with underline animation) ===== */
a, .link {
  color: var(--clr-blue) !important;
  text-decoration: none;
  position: relative;
}
a:hover, .link:hover {
  color: var(--clr-gold) !important;
  text-decoration: none;
}
a::after, .link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--clr-gold);
  transition: width 0.3s ease;
}
a:hover::after, .link:hover::after {
  width: 100%;
}

/* ===== Labels ===== */
label {
  color: var(--clr-text) !important;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

/* ===== Inputs & Controls ===== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid var(--clr-blue) !important;
  border-radius: 4px;
  padding: 8px 10px;
  width: 100%;
  box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--clr-gold) !important;
  outline: none;
  box-shadow: 0 0 5px var(--clr-gold);
}

::placeholder {
  color: #555555;
  opacity: 1;
}

/* ===== Help / Error messages ===== */
.help-block,
.form-help,
.field-instruction {
  color: #333333;
}
.error,
.validation-error,
.field-error {
  color: #c62828 !important;
}

/* ===== Tables ===== */
table {
  border-collapse: collapse;
  width: 100%;
}
table th {
  background-color: var(--clr-blue) !important;
  color: #ffffff !important;
  padding: 10px;
  text-align: left;
}
table td {
  border: 1px solid var(--clr-muted);
  padding: 10px;
}
table tr:nth-child(even) {
  background-color: #f9f9f9;
}
table tr:hover {
  background-color: #fff8e1; /* soft gold tint */
}

/* ===== Buttons ===== */
button,
.btn,
input[type="submit"],
input[type="button"],
.button,
.neoncrm button,
.neoncrm .btn,
.neoncrm input[type="submit"],
.neoncrm input[type="button"] {
  background-color: var(--clr-blue) !important;
  color: #ffffff !important;
  border: 2px solid var(--clr-blue) !important;
  border-radius: 6px;
  padding: 12px 24px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Hover Effect – Gold glow */
button:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.button:hover,
.neoncrm button:hover,
.neoncrm .btn:hover,
.neoncrm input[type="submit"]:hover,
.neoncrm input[type="button"]:hover {
  background-color: var(--clr-gold) !important;
  border-color: var(--clr-gold) !important;
  color: #000000 !important;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 12px rgba(212,175,55,0.55); /* Gold glow */
}

/* Active/Pressed effect */
button:active,
.btn:active,
input[type="submit"]:active,
input[type="button"]:active,
.button:active {
  transform: translateY(0) scale(1.0);
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* Disabled state */
button:disabled,
.btn:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled,
.button:disabled {
  background-color: #9aa7b1 !important;
  border-color: #9aa7b1 !important;
  color: #f0f0f0 !important;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== Form actions at bottom ===== */
.form-actions,
.actions,
.submit,
.neoncrm .form-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Panels / Alerts ===== */
.alert,
.notice,
.message {
  border-left: 4px solid var(--clr-blue);
  background: #f5faff;
  padding: 12px 16px;
  border-radius: 6px;
}

/* ===== Divider ===== */
hr {
  border: 0;
  border-top: 2px solid var(--clr-gold);
  margin: 20px 0;
}

/* ===== Global Transitions ===== */
a, input, textarea, select, table tr {
  transition: all 0.25s ease-in-out;
}
