/* Body */
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #002244, #009F9F);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: linear-gradient(135deg, #002244, #009F9F);
  display: flex;
  align-items: center;
  z-index: 1000;
}
.header-container { max-width: 1200px; margin: auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.logo a { color: #fff; font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.nav a { color: #fff; margin-left: 18px; text-decoration: none; font-size: 0.95rem; }

/* Header Login Button */
.btn-login {
  background-color:  #009F9F;;      /* white background */
  color: #002244;              /* dark text to be visible */
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-login:hover {
  opacity: 0.85;
}

/* Language Selector */
.language-switch {
  position: fixed;
  top: 15px;
  right: 15px;
  background: white;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 2000;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Floating Images */
.digital-bg img {
  position: absolute;
  width: 150px;
  opacity: 0.25;
  animation: floatHorizontal 25s linear infinite;
  z-index: 0;
}
.digital-bg img:nth-child(2) { animation-delay: 5s; width: 200px; }
.digital-bg img:nth-child(3) { animation-delay: 10s; width: 120px; }
@keyframes floatHorizontal {
  0% { transform: translateX(-200px) rotate(0deg); }
  50% { transform: translateX(calc(100vw + 200px)) rotate(10deg); }
  100% { transform: translateX(-200px) rotate(0deg); }
}

/* Marquee */
.marquee-container {
  position: fixed;
  top: 70px;
  width: 100%;
  background: linear-gradient(90deg, #002244, #009F9F);
  color: #fff;
  font-weight: bold;
  padding: 8px 0;
  z-index: 999;
}

/* Page Center */
:root {
  --header-height: 70px;
  --footer-height: 160px;
  --card-max-width: 1100px;
}

.page-center {
  display: flex;
  justify-content: center;
  align-items: flex-start;

  min-height: calc(100vh - var(--header-height) - var(--footer-height));

  margin-top: var(--header-height);
  margin-bottom: var(--footer-height);

  padding: 32px 16px;
  position: relative;
  z-index: 1;
}


/* Login Card */
.card {
  width: 100%;
  max-width: var(--card-max-width);
  position: relative;
}


.header {
  background: linear-gradient(135deg,#002244,#009F9F);
  padding: 18px;
  color: white;
  border-radius: 14px;
  text-align: center;
  margin-bottom: 20px;
}
.header h1 { margin:0; font-size:1.35rem; font-weight:700; }
/* .form-group { display:flex; flex-direction:column; margin-bottom:15px; } */
label { font-size:12px; font-weight:600; margin-bottom:4px; }
input { padding:8px 10px; font-size:14px; border-radius:6px; border:1px solid #ccc; }
.btn { padding:10px 16px; color:white; border:none; border-radius:10px; cursor:pointer; font-size:0.9rem; width:100%; background:#002244; transition:all 0.2s ease-in-out; }
.btn:hover { opacity:0.85; }
.link { font-size:0.85rem; text-align:center; margin-top:10px; }
.link a { color:#009F9F; text-decoration:none; }

/* Footer */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100px;              /* slightly taller */
  background: #002244;
  color: #ffffff;

  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* content stays higher */
  align-items: center;

  z-index: 1000;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.35);
  padding-top: 20px;          /* content lifted up */
  padding-bottom: 50px;       /* keeps color to bottom */
}

.footer-bottom {
  width: 100%;
  max-width: 1200px;
  text-align: left;
  margin-top: 20px;
  padding-left: 20px;
  font-size: 0.85rem;
  color: #bbb;
}


.footer-container { max-width: 1200px; margin: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; }
.footer-col h4 { margin-bottom: 12px; font-size: 1rem; }
.footer-col h5 {
  margin: 6px 0 0;
  font-weight: 400;
  font-size: 0.9rem;
  color: #ccc;
}

.footer-col a { display: block; color: #ccc; text-decoration: none; margin-bottom: 6px; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }


.btn-signup {
  background-color:  #009F9F;;      /* white background */
  color: #002244;              /* dark text to be visible */
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-signup:hover {
  opacity: 0.85;
}

/* GDPR Modal Overlay */
#gdprModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Visible state */
#gdprModal.show {
  display: flex;
}

/* Modal box */
#gdprModalContent {
  background: #ffffff;
  max-width: 520px;
  width: 90%;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  animation: modalFadeIn 0.25s ease;
}

/* Close button */
#gdprModalContent button {
  margin-top: 18px;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  background: #009f9f;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

#gdprModalContent button:hover {
  opacity: 0.9;
}

/* Animation */
@keyframes modalFadeIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== FORM GRID LAYOUT ===== */
/* ===== FORM GRID (4 COLUMNS) ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 20px;
  align-items: start;
}

/* ===== QR / PDF SIDE COLUMN ===== */
.qr-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

#qrCanvas {
  background: #fff;
  padding: 5px;
  border-radius: 2px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

#pdfPreviewContainer {
  width: 100%;
  max-width: 340px;
}


/* ===== FORM GROUP ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

/* ===== LABEL ===== */
.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

/* ===== INPUTS ===== */
.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* ===== COLOR INPUT NORMALIZATION ===== */
input[type="color"] {
  height: 44px;
  padding: 4px;
  border-radius: 8px;
  cursor: pointer;
}

/* ===== ERROR MESSAGES (HIDDEN BY DEFAULT) ===== */
.error {
  display: none;
  font-size: 0.75rem;
  color: #d32f2f;
  margin-top: 2px;
}

/* ===== PAGE WIDTH FIX ===== */
.card {
  width: 100%;
  max-width: 1400px;
  position: relative;
}


/* ===== LAYOUT WRAPPER ===== */
.layout {
  display: grid;
  grid-template-columns: 3fr 1.4fr;
  gap: 32px;
  align-items: start;
}

/* ===== FORM GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 20px;
}

/* ===== FORM GROUP ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===== QR / PDF COLUMN ===== */
.qr-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}

/* QR */
#qrCanvas {
  background: #fff;
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

/* PDF */
#pdfPreviewContainer {
  width: 100%;
  max-width: 340px;
  height: 235px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}


/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .qr-section {
    margin-top: 24px;
  }
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}


/* Make action buttons align nicely */
.actions {
    display: flex;
    flex-wrap: wrap;       /* wrap to next line on small screens */
    gap: 8px;              /* spacing between buttons */
    justify-content: center; /* center buttons horizontally */
    margin-top: 10px;      /* space from QR/PDF section */
}

.actions .btn {
    flex: 1 1 120px;       /* buttons take at least 120px, grow if space allows */
    padding: 8px 12px;
    font-size: 0.9rem;
    min-width: 100px;      /* prevent too small buttons */
}

/* Make all form labels white for better visibility */
label {
    color: #ffffff;
}
/* Make buttons next to upload fit nicely */
.logo-actions .btn {
    flex: none;            /* prevent growing */
    padding: 6px 10px;     /* smaller buttons to fit */
    font-size: 0.8rem;     /* smaller text */
}
#pdfPreviewContainer {
  width: 100%;
  height: 180px;
  margin-top: 10px;
  background: #f4f4f4;
  border-radius: 6px;
  overflow: hidden;
}

#pdfPreview {
  width: 100%;
  height: 100%;
  border: 0;
}

/* LOGIN PAGE - aligned with register page */
main.page-center.login-page {
  display: flex;
  justify-content: center;           /* horizontal center */
  align-items: flex-start;           /* start near top like register page */
  min-height: calc(100vh - 80px);
  padding: 15px 10px;
  box-sizing: border-box;
}

main.page-center.login-page .card {
  width: 100%;
  max-width: 320px;                  /* same as register card */
  padding: 12px;                      /* match register card padding */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  background: rgba(0,0,0,0.5);
  border-radius: 6px;
}

main.page-center.login-page form {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}

main.page-center.login-page .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;                 /* same as register */
}

main.page-center.login-page .form-group label {
  margin-bottom: 2px;
  font-weight: 600;
  font-size: 0.75rem;                 /* same as register */
  color: #fff;
}

main.page-center.login-page .form-group input {
  padding: 5px;                        /* same as register */
  font-size: 0.75rem;                  /* same as register */
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}

main.page-center.login-page .header h1 {
  font-size: 1rem;                     /* same as register */
  margin-bottom: 10px;
  text-align: center;
}

/* Login button - same color & size as register */
main.page-center.login-page button#loginBtn {
  font-size: 0.8rem;
  padding: 6px 0;
  width: 100%;
  background: #009F9F;                 /* same blue as register button */
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 8px;
}

/* Links styling */
main.page-center.login-page .card .link {
  color: #fff;
  text-align: center;
  margin-top: 6px;
  font-size: 0.75rem;                  /* same as register */
}

main.page-center.login-page .card .link a {
  color: #fff;
  text-decoration: underline;
}


main.page-center.login-page .card .link a {
  color: #fff;
  text-decoration: underline;
}


/* REGISTER PAGE SPECIFIC STYLES */
main.page-center.register-page {
  display: flex;
  justify-content: center;       /* horizontal center */
  align-items: center;           /* vertically center card */
  min-height: calc(100vh - 80px); /* full height minus header */
  padding: 10px 20px;
  box-sizing: border-box;
}

/* Card layout */
main.page-center.register-page .card {
  width: 100%;
  max-width: 340px;              /* smaller width for better fit */
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  background: rgba(0,0,0,0.5);   /* optional: subtle background for contrast */
  border-radius: 6px;
}

/* Make form scrollable if content exceeds card height */
main.page-center.register-page form {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 160px); /* adjust dynamically to fit viewport */
  overflow-y: auto;
}

/* Form groups (label + input) */
main.page-center.register-page .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;           /* reduced margin for compact layout */
}

/* Adjust input and label spacing */
main.page-center.register-page .form-group label {
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 0.85rem;           /* smaller label size */
  color: #fff;
}

main.page-center.register-page .form-group input {
  padding: 6px;
  font-size: 0.85rem;            /* smaller input text */
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}

/* GDPR checkbox group */
.page-center.register-page .checkbox-group {
  display: flex;
  flex-direction: column;       /* stack checkbox+label and link */
  font-size: 0.8rem;            /* slightly smaller font */
  margin-bottom: 8px;
}

/* Checkbox + label inline */
.page-center.register-page .checkbox-group .checkbox-label {
  display: flex;
  align-items: flex-start;       /* align checkbox top with label text */
  gap: 5px;
}

/* Checkbox styling */
.page-center.register-page .checkbox-group input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  margin-top: 2px;               /* align top with label */
}

/* Label styling */
.page-center.register-page .checkbox-group label {
  line-height: 1.1;
  margin: 0;
}

/* Privacy Policy link on a new line */
.page-center.register-page .checkbox-group a {
  margin-left: 19px;             /* align with label text */
  margin-top: 2px;
  text-decoration: underline;
  color: #fff;
  font-size: 0.8rem;
}

/* Register button styling */
main.page-center.register-page button.btn {
  padding: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 10px;
  background: #0F4C81;           /* same as login button */
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

/* Card header styling */
main.page-center.register-page .header h1 {
  font-size: 1rem;
  margin-bottom: 10px;
  text-align: center;
}

/* Scrollbar for smaller screens */
main.page-center.register-page form::-webkit-scrollbar {
  width: 6px;
}

main.page-center.register-page form::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.3);
  border-radius: 3px;
}
.page-center.register-page .link {
  color: #fff; /* makes text white */
  text-align: center;
  margin-top: 8px;
  font-size: 0.8rem;
}

.page-center.register-page .link a {
  color: #fff;       /* keeps link white too */
  text-decoration: underline;
}

.about-section {
  margin-top: 1rem; /* smaller spacing from Welcome section */
  margin-bottom: 2rem; /* keep spacing from Key Features */
}
