/* =========================================================
   CSS VARIABLES (THEME)
   ========================================================= */
:root {
  /* Brand colors */
  --color-green: #0b9e17;
  --color-dark: #312f38;
  --color-accent: #FCC542;

  /* UI colors */
  --color-bg: #f5f7f4;
  --color-bg-soft: #eef3ee;
  --color-text: #2b2b2b;
  --color-muted: #6c757d;

  /* Effects */
  --radius-card: 1rem;
  --radius-input: 0.5rem;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.08);
  --transition-fast: 0.15s ease;
}


/* =========================================================
   BASE / BACKGROUND
   ========================================================= */
body {
  min-height: 100vh;
  color: var(--color-text);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600' viewBox='0 0 800 600'%3E%3Cg fill='none' stroke='%230b9e17' stroke-opacity='0.06'%3E%3Cpath d='M50 500 C150 350 250 350 350 500'/%3E%3Cpath d='M350 500 C450 300 550 300 650 500'/%3E%3Cpath d='M200 520 C250 420 300 420 350 520'/%3E%3Cpath d='M450 520 C500 420 550 420 600 520'/%3E%3C/g%3E%3C/svg%3E") repeat-x bottom,
    linear-gradient(180deg,
      var(--color-bg) 0%,
      var(--color-bg-soft) 100%);
  background-attachment: fixed;
}


/* =========================================================
   TYPOGRAPHY & LABELS
   ========================================================= */
.form-label {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

.form-label small {
  font-weight: 400;
  color: var(--color-muted);
}

input[type="date"] {
    cursor: pointer;
}

/* =========================================================
   CARDS & CONTAINERS
   ========================================================= */
.card {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  background-color: #fff;
}


/* =========================================================
   FORM CONTROLS
   ========================================================= */
.form-control,
.form-select {
  border-radius: var(--radius-input);
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-green);
  box-shadow: 0 0 0 0.2rem rgba(11, 158, 23, 0.15);
}

@keyframes confettiFall {
  to {
    transform: translateY(110vh) rotate(180deg);
    opacity: 0;
  }
}


/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-success {
  background-color: var(--color-green);
  border-color: var(--color-green);
}

.btn-success:hover {
  background-color: #0a8914;
  border-color: #0a8914;
}

.btn-outline-success {
  color: var(--color-green);
  border-color: var(--color-green);
}

.btn-outline-success:hover {
  background-color: var(--color-green);
  color: #fff;
}

.btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  background-color: var(--color-dark) !important;
  min-height: 140px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}


/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background-color: var(--color-dark);
  color: #fff;
}

.footer {
  font-size: 0.95rem;
}

.footer-logo {
  max-height: 120px;
}

.partner-logo {
  max-height: 80px;
}

.footer-link {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-link:hover {
  color: #ffe08a;
  text-decoration: underline;
}


/* =========================================================
   SOCIAL ICONS
   ========================================================= */
.social-icon {
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.social-icon svg {
  display: block;
}


/* =========================================================
   UTILITIES
   ========================================================= */
.radio-group {
  padding: 0.5rem 0;
}

/* =========================================================
   STICKY SUBMIT (MOBILE)
   ========================================================= */


@media (max-width: 768px) {
  .form-submit-wrapper {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
    margin-top: 1rem;
    z-index: 10;
  }

  .form-submit-inner {
    padding: 0 1rem;
  }
}

/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-animate {
  animation: fadeUp 0.8s ease-out both;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .form-animate {
    animation: none;
  }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .footer {
    text-align: center;
  }

  .navbar {
    min-height: 110px;
  }
}

/* =========================================================
   MOBILE: FULL-WIDTH SUBMIT BUTTON
   ========================================================= */
@media (max-width: 768px) {
  #submit-registration {
    width: 100%;
    justify-content: center;
  }

  /* Optional: reduce prominence of test button on mobile */
  #fill-test-data {
    width: 100%;
  }

  .form-submit-inner {
    flex-direction: column;
  }
}