:root {
    --cela-navy-light: #364ebb;
    --cela-navy: #2E3E84;
    --cela-navy-dark: #25316a;
    --cela-orange: #F28C28;
    --cela-dark-orange: #e15e25;
    --cela-light-bg: #F4F6FA;
}

/* --- Two-tone angled background --- */
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--cela-light-bg);
}

#background-panel-top,
#background-panel-bottom {
  position: fixed;      /* stay put while you scroll */
  left: 0;
  width: 100%;
  z-index: 0;           /* behind the form panel */
  pointer-events: none; /* purely decorative */
}

h1 {
    color: var(--cela-dark-orange);
}

#background-panel-top {
  top: 0;
  height: 30%;
}
#background-panel-top::before {
  content: "";
  position: absolute;
  inset: -12vh 0 0 0;              /* overshoot so no gaps on tall screens */
  /* background-color: var(--cela-navy); */
  background: linear-gradient(
      to bottom,
      var(--cela-navy-dark) 25%,
      var(--cela-navy-light) 100%
  );
}

#background-panel-bottom {
  bottom: 0;
  height: 100vh;
}
#background-panel-bottom::before {
  content: "";
  position: absolute;
  inset: 0 0 -12vh 0;
  /* background: linear-gradient(
      to bottom,
      var(--cela-navy) 7%,
      var(--cela-light-bg) 100%
  ); */
}

#sub-h1 {
    color: var(--cela-navy);
}

/* --- Form container & card --- */
#application-form {
  position: relative;
  z-index: 1;           /* above the panels */
  padding: 2rem 1rem;   /* breathing room on small screens */
}

#form-panel {
  max-width: 920px;
  margin: 3rem auto;
  background: #fff;
  border-radius: 18px;                 /* rounded, no border */
  box-shadow: 0 18px 50px rgba(0,0,0,.10);
  padding: 2rem 1.75rem;
  border: none;
}

#submit-button {
    background-color: #2E3E84 !important;
    border-radius: 1.5rem;
    color: white;
    font-weight: bold;
    padding: 12px 30px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-origin: center bottom;
}

#save-draft {
    background-color: #6c757d !important;
    border-radius: 1.5rem;
    color: white;
    font-weight: bold;
    padding: 12px 30px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-origin: center bottom;
}

/* Hover scaling and shadow */
#submit-button:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Waving effect */
#submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center bottom;
    pointer-events: none;
}

#submit-button:hover::before {
    animation: wave 0.8s infinite alternate ease-in-out;
}

@keyframes wave {
    0% { transform: rotate(0deg) translateX(0%); }
    25% { transform: rotate(3deg) translateX(2%); }
    50% { transform: rotate(-3deg) translateX(-2%); }
    75% { transform: rotate(2deg) translateX(1%); }
    100% { transform: rotate(-2deg) translateX(-1%); }
}

/* Headings inside the form card */
#form-panel h1 {
    font-weight: 300
    margin-bottom: 0.25rem;
}

#form-panel h2 {
    font-weight: 500;
    font-size: 1.05rem;
    color: #000000;
}

/* Headings inside the form card */
#form-panel h1 {
  font-weight: 700;
  margin-bottom: .25rem;
}
#form-panel h2 {
  font-weight: 500;
  font-size: 1.05rem;
  color: #000000;
}

/* Responsive tweaks so angles look nice on phones/tablets */
@media (max-width: 992px) {
  #background-panel-top { height: 25vh; }
  #background-panel-top::before {
    /* clip-path: polygon(0 0, 80% 0, 60% 100%, 0% 100%); */
  }
  #background-panel-bottom { height: 100vh; }
  #background-panel-bottom::before {
    /* clip-path: polygon(100% 0, 28% 0, 44% 100%, 100% 100%); */
  }
  #form-panel { margin: 2rem auto; padding: 1.5rem 1.25rem; }
}

body {
    /* font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
    font-family: "Nunito", sans-serif;
    margin: 0;
    min-height: 100%;
    background: var(--cela-light-bg); /* soft canvas behind the panels */
}


h1.text-center.text-danger.mt-4 {
    font-size: 2rem;
}

.cursor{
    cursor: pointer;
}

.error{
    font-size: 12px !important;
}

.fileLink{
    color: rgb(5, 121, 223) !important;
}

.fileLink:hover{
    color: rgb(4, 93, 172) !important;
}

.scoreTitle{
    font-size: 12px !important;
}

.chairmanScore{
    background-color: transparent !important;
    border: none !important;
    width: 100px !important;
}

.card-table {
    width: 100%;
}

.card-table-header {
    color: rgba(13,27,62,0.7);
}

table, th, td {
    border: 1px solid rgba(13,27,62,0.7);
    border-collapse: collapse;
}
td, th {
    text-align: center;
}

#adjudication-btn {
    min-width: 9rem;
}

#nav-btn {
    min-width: 7rem;
}

#view-nav {
    margin: .5rem;
}

#data-table-rule {
    margin-top: 0;
}

#application-form {
    padding: 3em;
}

#application-form h3 {
    font-size: 1.2em;;
}

#radio-label {
    font-weight:400 !important;
    margin-bottom: 0rem !important;
}

#application-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 1rem;
}


#form-panel {
    padding: 5%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgb(0 0 0 / 22%);
}

@media screen and (min-width: 1200px) {
    #application-form {
        padding: 3em 20%;
    }
}

.fw-bold {
    font-weight: bold;
}
