/*:::::::::::::::::::: DOWNLOADER CSS :::::::::::::::::::::*/

body {
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  padding: 2em;
  background-color: #f4f4f4;
  text-align: center;
}

.hero-downloader {
  height: 16vh;
  background: url('../IMAGES/mainIMAGES/imgBANNER/Downloading04') center center/cover no-repeat;
  background-size: cover;       /* Makes sure image covers entire section */
  background-position: center;  /* Centers the image */
  background-repeat: no-repeat; /* No repeating */
  color: white;                 /* Make sure text is visible */
  padding: 100px 0;             /* Add vertical spacing */
}


.hidden {
  display: none !important;
}

.show {
  display: block !important;
}

.download-image{
  display: block;
  width: 250px;
  height: auto;
}

.downloadDocuments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 40px;
  padding: 0 20px;
}

.confirmation{
  opacity: 0;
  pointer-events: none; /* Prevents interaction when hidden */
  transition: opacity 0.4s ease-in-out;
  margin-top: 20px;
  padding: 12px 16px;
  background-color: #e6ffed;
  border: 1px solid #4caf50;
  border-radius: 6px;
  color: #256029;
  font-weight: bold;
}

.confirmation.show {
  opacity: 1;
  pointer-events: auto; /* Allows interaction when shown */
}

/* Arrow animation */
.arrow {
  font-size: 2rem;
  text-align: center;
  margin-top: 20px;
  animation: blink 1s infinite;
}

/* Initially red */
#downloadsWrapper {
  background-color: #f5c4c4;
  border: 2px solid red;
  padding: 20px;
  border-radius: 10px;
  transition: background-color 1s ease, border-color 1s ease;
}

/* Turns green after email is verified */
.download-verified {
  border-color: #4caf50;
  background-color: #e6ffed;
  animation: backgroundFade 1.8s forwards;
}



@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes backgroundFade {
  0% {
    background-color: #f5c4c4;
    border-color: red;
  }
  100% {
    background-color: #e6ffed;
    border-color: #4caf50;
  }
}


.informer {
  max-width: 600px;
  margin: 30px auto;               /* Center horizontally and add vertical spacing */
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  padding: 30px;
  text-align: left;
  font-weight: 500;
  line-height: 1.6;
  color: #333;
}

.informer h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #002f81;
}

.informer p {
  margin-bottom: 12px;
}


.email-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  max-width: 500px;
}

.email-form input[type="email"] {
  flex: 1 1 60%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s ease;
}

.email-form input[type="email"]:focus {
  border: 1.5px solid #002f81;
}

.email-form button {
  padding: 12px 20px;
  font-size: 1rem;
  background-color: #002f81;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.email-form button:hover {
  background-color: #0f69f1;
  border: 1.5px solid  #002f81;
  color: #fff;
}

.download-item {
  margin: 20px 0;
  margin-bottom: 20px;
  background-color: #f9f9f9;
  border: 1px solid #b1b1b1;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.download-item:hover {
  /* When shown (via JS), animate it */
  opacity: 1;
  transform: translateY(0);
  animation: fadeIn 0.6s ease forwards;
}

.download-btn {
  background-color: #002f81;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.download-btn:hover {
  background-color: #0040a1;
}


.download-btn{
  margin: 10px;
  padding: 10px 20px;
  font-size: 1rem;
}



/* Download button image hover effect */
.btn-download img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.btn-download:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
  cursor: pointer;
}

.error-message {
  color: #b00020;
  background-color: #f8d7da;
  border: 1px solid #f5c2c7;
  padding: 10px 15px;
  border-radius: 6px;
  margin-top: 8px;
  font-weight: 600;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.officer{
  font-size: 2rem;
  color: #002f81;
  margin-top: 40px;
}   

/* ========================================================================== */


