* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 1em;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  min-height: 100vh;
  background-image: url('images/fondo-opaco.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  text-rendering: optimizeSpeed;

}

.navbar {
  width: auto;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.7);
  ;
  display: flex;
  align-items: center;
  align-self: stretch;
  justify-content: space-between; 
  padding: 0;
  margin: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  overflow: hidden; 
}

.icon-img,
.icon-2-img {
  max-height: 50px;      
  height: auto;          
  object-fit: contain;
}

.icon-2-img {
  padding-right: 2px;
}

header,
main {
  padding: 20px;
}

header {
  color: black;
  margin-bottom: 0;
}

header h1,
header p {
  /* text-shadow: 1px 1px 3px rgba(0, 0, 0, 1); */
}

main {
  width: 90%;
  max-width: 600px;
  flex: 1;
  padding-bottom: 60px;
  padding-top: 0;
}

h1 {
  font-size: 1.4em;
}

.campaign-header-text {
  margin-top: -10px;
}

.form-row {
  margin-bottom: 20px;
}

input[type="file"] {
  display: none;
}

select,
button,
input[type="text"] {
  width: 100%;
  padding: clamp(8px, 1.5vw, 14px);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
}

select {
  appearance: none;
  /* Remove default appearance */
  -webkit-appearance: none;
  /* Remove default appearance for Safari */
  -moz-appearance: none;
  /* Remove default appearance for Firefox */
  outline: none;
}

button {
  background-color: #e02234;
  border-color: transparent;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

button:disabled {
  background-color: #ec7a85;
  color: #fff;
}

select:disabled,
button:disabled {
  cursor: not-allowed;
}

.banner {
  display: none;
  margin-bottom: 30px;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 500;
  text-align: center;
}

.banner.banner-success {
  display: block;
  background-color: #d1f7c4;
}

.banner.banner-error {
  display: block;
  background-color: #e59cab;
}

.banner.banner-warning {
  display: block;
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
}

.banner>.banner-text {
  display: inline-block;
  margin-right: 30px;
}

.banner>.dismiss-banner-button {
  position: fixed;
  right: 40px;
  cursor: pointer;
}

.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  width: auto;
  max-width: 90%;
  padding: 15px;
  color: white;
  text-align: center;
  min-height: 20px;
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: transform 0.5s ease, opacity 0.5s ease;
  border-radius: 8px;
}

.toast.toast-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1
}

.toast.toast-success {
  background-color: #89be08;
}

.toast.toast-error {
  background-color: #cb3957;
}

.hidden {
  display: none !important;
}

.spinner {
  width: 1em;
  height: 1em;
  border: 5px solid #FFF;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

/* Modal*/

.policy-container {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  margin-top: -10px;
  margin-bottom: 20px;
  font-size: clamp(0.7rem, 1.5vw, 1rem);
}

.policy-container button {
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  white-space: nowrap;
}

.policy-container label {
  white-space: nowrap;
}

.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: flex-start;
}

.modal-content {
  overflow-y: scroll; 
  font-size: smaller;
  background-color: white !important;
  padding: 20px 40px 20px 20px;
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  max-height: 60vh;  
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  position: relative;
}

.close-modal {
  width: auto !important;
  top: 5px;
  right: 10px;
  position: absolute;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  font-weight: bold;
  line-height: 1;
}

.modal-content h2 {
  text-align: center;
  padding: 1rem;
}

.modal-content p {
  text-align: justify;
  padding-bottom: 20px;
}

#terms-button {
  width: auto !important;
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  font-weight: normal;
  text-decoration: underline;
  color: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

#terms-button:hover {
  color: #C1002F;
}

#attach-file {
  color: black;
}

#attach-file-icon {
  font-size: 1.2em;
}

#attach-file-icon,
#attach-file-name,
#attach-file-success-status-icon,
#attach-file-error-status-icon {
  font-weight: normal;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 1000; 
}

.logos-img {
  padding-top: 20px;
  width: 100%;
  max-width: 1200px; 
  height: auto;
  object-fit: contain;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 360px) { 
  
  .navbar {
    padding: 0 5px; 
  }

  .icon-img {
    max-height: 40px; 
    height: auto;
  }

  .icon-2-img {
    height: 35px;
    padding-right: 8px; 
  }
  .logos-img {
    max-width: 90%;  
    height: 90%;
  }
}

@media (max-width: 480px) {

  .icon-2-img {
    max-height: 52px;  
    
  }

  main {
    padding-bottom: 180px;
  }

  .footer img {
    max-width: 100%;
  }

  .footer {
    padding: 8px 10px;
    overflow: visible;
    gap: 5px;
  }

}

@media (max-width: 800px) {

  main {
    padding-bottom: 180px;
  }

  .footer img {
    max-width: 100%;
  }
}

@media (min-width: 1200px) {
  main {
    padding-bottom: 250px; 
  }
}










