/* public/css/style.css */

/* 
   Gradient background:
   - Left: sapphire (#0F52BA)
   - Right: dark gray (#2a2a2a)
   - Main text color: silver (#C0C0C0)
*/
body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(to right, #0F52BA, #2a2a2a);
  color: #C0C0C0; /* silver text */
}

/* Header pinned at top, 60px high */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10000; /* on top of everything */
}

/* Footer pinned at bottom, 60px high */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 60px;
  background-color: #C0C0C0; /* silver */
  display: flex;
  align-items: center;
  justify-content: center;
  /* If you want silver text on silver background, pick a contrasting color or darker shade for text. */
  color: #333; 
  z-index: 10000;
}

/* 
   Because header & footer are fixed, 
   the main content must have padding to avoid 
   going under them.
*/
.content {
  /* top: 60px for header, bottom: 60px for footer */
  /* Increased left/right padding to 60px (bigger than header's 20px) */
  padding: 80px 60px 80px 60px; 
  max-width: 1200px;
  margin: 0 auto;
  /* The user wanted 2/3 the previous big text size, 
     but now we also have a gradient background, 
     so let's pick something readable. 
     Adjust to taste. */
  font-size: 1.333rem; 
  line-height: 1.5;
}

/* Headings slightly larger, still silver text (or a lighter color for contrast) */
.content h2 {
  font-size: 2rem;
  color: #fff; /* White text stands out more on gradient background */
  margin-top: 0;
}

/* Logo area inside header */
.logo-area {
  display: flex;
  align-items: center;
}

.logo {
  height: 40px;
}

/* Horizontal nav (desktop) */
nav {
  position: relative;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  white-space: nowrap; /* no wrap on desktop */
}

nav ul li {
  margin-left: 20px;
}

nav a {
  color: #C0C0C0; /* silver */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: #fff; /* or #0F52BA if you prefer */
}

nav a.active {
  color: #0F52BA; 
  font-weight: 700;
}

/* Hamburger toggle (hidden on large screens) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  margin: 4px 0;
  background-color: #C0C0C0;
  transition: 0.3s;
}

/* Basic button style (for forms, etc.) */
button,
.btn {
  background-color: #0F52BA;
  color: #FFFFFF;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s;
}

button:hover,
.btn:hover {
  background-color: #0c4398;
}

/* Form styling with right padding to avoid overlap */
form {
  background-color: rgba(255, 255, 255, 0.1); /* slight translucent white */
  padding: 20px 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
  max-width: 500px;
  margin-top: 20px;
}

form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #fff; /* White label text for contrast */
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333; /* Dark text inside input */
  background-color: #f9f9f9;
}

.signature-block {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.signature-block img.signature-logo {
  height: 30px;
  opacity: 0.8;
}


/* 
   ============= RESPONSIVE / MOBILE ============= 
   At max-width: 1050px, show burger, hide horizontal nav
*/
@media (max-width: 1050px) {
  .menu-toggle {
    display: flex; /* show burger */
  }

  /* Hide horizontal nav by default */
  nav ul {
    position: fixed;
    /* Pin below header (60px) and above footer (60px) */
    top: 60px;
    right: 0;
    bottom: 60px;
    background-color: #333;
    flex-direction: column;
    width: 200px;
    margin: 0;
    padding: 0;
    transform: translateX(200%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
    overflow-y: auto; /* if menu is taller than space, scroll */
  }

  nav ul.show {
    transform: translateX(0);
  }

  nav ul li {
    margin: 0;
    border-bottom: 1px solid #444;
  }

  nav ul li a {
    display: block;
    padding: 15px;
  }
}

.error-message {
  background-color: #ffebee;
  color: #c62828;
  border-left: 4px solid #c62828;
  padding: 10px 15px;
  margin: 15px 0;
  border-radius: 0 4px 4px 0;
  font-weight: 500;
  display: block; /* Ensure it's displayed as a block */
  width: 100%; /* Full width */
  box-sizing: border-box; /* Include padding in width */
}

/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 80px; /* Increased margin from bottom to be above the footer */
  left: 0;
  right: 0;
  margin: 0 20px; /* Add horizontal margins */
  background-color: #e8f4ff;
  color: #333;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
}

.cookie-consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.cookie-title {
  font-size: 24px;
  font-weight: 600;
  color: #0F52BA; /* AplosLingo sapphire color */
  margin-bottom: 10px;
}

.cookie-text {
  margin-bottom: 20px;
  line-height: 1.5;
}

.cookie-policy-link {
  color: #0F52BA;
  text-decoration: underline;
  font-weight: 500;
}

.cookie-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 15px;
}

.cookie-accept {
  background-color: #e9834c; /* Similar to the image but different shade */
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-accept:hover {
  background-color: #d57539;
}

.cookie-reject {
  background-color: #f2f2f2;
  color: #333;
  border: 1px solid #ccc;
  padding: 12px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cookie-reject:hover {
  background-color: #e6e6e6;
}

/* Settings Button */
.consent-settings-btn {
  position: fixed;
  bottom: 80px; /* Increased to be above footer */
  right: 20px;
  background-color: #0F52BA;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  z-index: 998;
  display: none; /* Initially hidden, shown after user makes a choice */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.consent-settings-btn:hover {
  background-color: #0c4398;
}

/* For the privacy policy page */
.privacy-section {
  margin-bottom: 30px;
}

.privacy-section h3 {
  color: white;
  background-color: #0F52BA;
  padding: 10px 15px;
  border-radius: 5px;
  margin-top: 25px;
  margin-bottom: 15px;
}

.privacy-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.privacy-list li {
  margin-bottom: 8px;
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.1);
}

.privacy-table th,
.privacy-table td {
  border: 1px solid #444;
  padding: 12px;
  text-align: left;
}

.privacy-table th {
  background-color: rgba(15, 82, 186, 0.3);
  color: white;
  font-weight: 600;
}

.privacy-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05);
}
