.main {
  margin-top: 100px;
}

 body.no-scroll {
    overflow: hidden;
    }

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8); /* Capa blanca translúcida */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #cce0ff;
  border-top: 6px solid #007bff; /* Azul más fuerte */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.checkout-page {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: top;
  gap: 50px;
}

.container-resum-compra {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: #f7f7f7;
  padding: 20px 25px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  align-items: flex-start;
  max-width: 600px;
  margin-bottom: 30px;
}

.container-resum-compra h3 {
  text-align: center;
  align-self: center;
  font-size: 30px;
}

.producte-comprar {
  display: flex;
  gap: 20px;
  padding: 20px 25px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.producte-comprar div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.producte-comprar div:first-child p {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 20px;
  width: 100%;
  text-align: center;
  font-weight: bold;
}

.producte-comprar img {
  max-width: 120px;
  max-height: 120px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.titol-producte {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 4px;
}

#preu-producte {
  font-size: 16px;
  color: #1a202c;
  font-weight: 500;
}

.info-producte {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  gap: 25px;
}





#alta-soci-form.form-style {
    width: 400px;
   
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  }
  
  #card-element {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 1rem;
    background-color: white;
  }
  
.pay-btn {
    background-color: #383732;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  #google-pay-button {
    background-color: white;
    color: black;
    border: 1px solid black;
  }

  .fa-google-pay {
    font-size: 25px;

  }
  
 
  
  #error-message {
    color: red;
    margin-top: 1rem;
  }

  .input-element {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    width: 100%;
    font-size: 16px;
  }

  .input-element::placeholder {
    color:#a0aec0;
    font-size: 16px
    };
  

  .tarjeta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 15px;
  }

  .tarjeta div {
    display: flex;
    gap: 10px;
    width: 100%;
  }

  .tarjeta div label {
    width: 100%;
  }

  .tarjeta label > p {
    padding: 5px 0px;
  }

 
  .error-container {
    background-color: #f8d7da;
    color: #721c24;
    font-family: Arial, sans-serif;
    text-align: center;
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #f5c6cb;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
  .error-container h3 {
    margin-bottom: 10px;
    font-size: 22px;
  }
  .error-container p {
    margin-top: 0;
    font-size: 16px;
  }

  #resultat-compra {
    position: fixed;
     top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
       background: #fff;
      padding: 40px 30px;
      border-radius: 20px;
      text-align: center;
      box-shadow: 0 6px 20px rgba(0,0,0,0.1);
      max-width: 400px;
      width: 90%;
      z-index: 11;
  }

  #resultat-compra > .icon {
    font-size: 60px;
      color: #22c55e;
      margin-bottom: 20px;
  }

  #resultat-compra h1{
      font-size: 22px;
      margin-bottom: 15px;
      color: #166534;
  }

   #resultat-compra p {
      font-size: 16px;
      color: #374151;
      margin-bottom: 30px;
    }

    #resultat-compra a {
      display: inline-block;
      padding: 12px 24px;
      background: #22c55e;
      color: #fff;
      text-decoration: none;
      border-radius: 12px;
      font-weight: 600;
      transition: background 0.3s ease;
    }

    #resultat-compra a:hover {
      background: #16a34a;
    }




#resultat-compra.error > .icon {
  font-size: 60px;
  color: #ef4444; /* rojo principal */
  margin-bottom: 20px;
}

#resultat-compra.error h1 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #991b1b; /* rojo oscuro */
}

  #resultat-compra.error a {
  background: #ef4444; /* rojo hover */
}

  #resultat-compra.error a:hover {
  background: #dc2626; /* rojo hover */
}

    .blur {
      width: 100%;
      height: 100vH;
      position: relative;
      z-index: 1;
    backdrop-filter: blur(10px); /* difumina lo que hay detrás */
    -webkit-backdrop-filter: blur(10px); /* soporte Safari */
    }

    .hidden {
      display: none;
    }



  @media (max-width:1210px) {
    #payment-form.form-style {
      width: 600px;
    }
  }

  @media (max-width: 570px) {
    .producte-comprar {
      flex-direction: column;
    }

    .producte-comprar > div:first-child {
      align-self: center;
    }
  }


   @media (max-width: 480px) { 
    .main-alta-soci  .form-style {
    width: 300px;
  }
  }

  @media (max-width: 380px) { 
    .main-alta-soci  .form-style {
    width: 300px;
    }

    .titol-producte {
      font-size: 16px;
    }

    .container-resum-compra h3 {
      font-size: 25px;
    }

  }
