/* Estilos generales */
body {
    font-family: 'Poppins', sans-serif;
    font-size: 20px; /* Tamaño de texto principal */
    font-weight: normal;
    line-height: 1.1;
    border: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.error-message {
    color: red;
    font-size: 12px;
}

/* Establecer un ancho máximo para el formulario */
.donation-form {
    max-width: 600px;
    margin: 0 auto; /* Centrar el formulario horizontalmente */
    padding: 20px;
    box-sizing: border-box;
    border-radius: 5px;
    width: 100%;
}

/* Estilo de los pasos del formulario */
.donation-form .progress-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 50%; /* Limitar el ancho del conjunto de círculos al 50% del formulario */
    margin: 0 auto 20px; /* Centrar y agregar espacio inferior */
    position: relative;
}

.donation-form .progress-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%; /* Ajuste para que la línea no sobresalga del primer círculo */
    right: 10%; /* Ajuste para que la línea no sobresalga del último círculo */
    height: 2px;
    background-color: #ccc;
    z-index: 0;
}

.donation-form .step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ccc;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px; /* Aplicar Poppins a 20 puntos */
    font-weight: bold;
    z-index: 1; /* Para asegurarse de que el círculo esté por encima de la línea */
}

.donation-form .step-circle.active {
    background-color: #1D75BB;
}

/* Espacio entre los círculos y los inputs */
.donation-form fieldset {
    margin-top: 20px;
    border: none;
}

/* Estilos para los inputs dentro de los fieldsets */
.donation-form fieldset input[type="text"],
.donation-form fieldset input[type="email"],
.donation-form fieldset input[type="tel"],
.donation-form fieldset input[type="number"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    font-size: 20px; /* Aplicar Poppins a 20 puntos */
    font-family: 'Poppins', sans-serif;
    border: 1px solid #666;
    border-radius: 1px;
    box-sizing: border-box;
}

/* Estilo para los placeholders */
.donation-form input::placeholder {
    color: #666;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
}

/* Estilos para los botones de los pasos */
.donation-form button {
    display: block;
    width: 100%; /* Ocupar todo el ancho del contenedor */
    padding: 20px;
    margin-top: 10px;
    background-color: #1D75BB;
    color: white;
    border: none;
    font-size: 20px; /* Aplicar Poppins a 20 puntos */
    font-weight: bold; /* Usar negrita para los botones */
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 1px;
    text-align: center;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Hover effect para los botones */
.donation-form button:hover {
    background-color: #1D75BB;
}

/* Centrar los botones al medio */
.donation-form button {
    margin: 0 auto;
}

/* ESTILO MENSAJES PASOS */
.donation-form .head_text {
    text-align: center;
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: normal;
}

.donation-form .message {
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    font-weight: normal;
    text-align: justify;
    margin: 0 15px;
    line-height: 1.5;
}

.donation-form .info-link {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
}

.donation-form #info-link:hover,
.donation-form #info-link:active {
    color: #1D75BB;
}

.donation-form .text-small-link {
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    font-weight: normal;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease-in;
}

.donation-form .text-small-link:hover {
    text-decoration: underline;
    color: #1D75BB;
}

/* PAYMENT AMOUNT */
.donation-form .amount-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0;
    margin: 0;
}

.donation-form .amount-options input[type="radio"] {
    position: absolute;
    visibility: hidden;
}

.donation-form .amount-options label {
    border: 1px solid #666;
    border-radius: 0px;
    background-color: #fff;
    display: block;
    padding: 28px 20px;
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    transition: 0.2s all;
    color: #666;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    width: 25%; /* Cada opción ocupa aproximadamente el 23% */
    margin: 5px 0;
}

.donation-form .amount-options input[type="radio"]:checked + label {
    color: #1D75BB !important;
    background-color: white;
    border-width: 3px;
    border-color: #1D75BB;
    box-sizing: border-box;
    font-weight: bold;
}

/* Campo personalizado de importe inicialmente oculto */
.donation-form .custom-amount {
    display: none; /* Oculto por defecto */
    margin-top: 10px;
    padding: 10px;
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    width: calc(100% - 22px);
    border: 2px solid #666;
    border-radius: 5px;
}

/* CUSTOMER TYPE */
.donation-form .contact-type {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    border: none;
}

.donation-form .contact-type input[type="radio"] {
    display: none; /* Ocultamos el radio button original */
}

.donation-form .contact-type label {
    color: black;
    display: inline-block;
    width: 50%;
    padding: 20px;
    margin: 0;
    text-align: center;
    background-color: #ffffff;
    border: 2px solid #666;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    box-sizing: border-box;
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: normal;
}

.donation-form .contact-type label:hover {
    background-color: #ffffff;
    border-color: #1D75BB;
}

.donation-form .contact-type input[type="radio"]:checked + label:not(.text-small) {
    background-color: #1D75BB;
    color: white;
    border-color: #1D75BB;
    font-weight: bold;
}

/* PERSONAL DATA */
.donation-form .personal-data {
    margin: 0;
    padding: 0;
    border: none;
}

.donation-form .personal-data input[type="text"],
.donation-form .personal-data input[type="email"],
.donation-form .personal-data input[type="tel"] {
    width: 100%;
    padding: 10px 10px;
    margin: 0;
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    border: 1px solid #666;
    border-radius: 0;
    height: auto;
    text-align: left;
}

.donation-form .personal-data input::placeholder {
    color: #666;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
}

.donation-form .personal-data input:focus {
    outline: none;
    border-color: #1D75BB;
}

/* CAMPOS FISCALES */
.donation-form .dni-field input[type="text"],
.donation-form .organization-fields input[type="text"] {
    width: 100%;
    padding: 20px 20px;
    margin: 0;
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    border: 1px solid #666;
    border-radius: 0;
    height: auto;
}

/* Estilo para los placeholders */
.donation-form fieldset input::placeholder {
    color: #666;
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
}

/* Estilo al enfocar los inputs */
.donation-form fieldset input:focus {
    outline: none;
    border-color: #1D75BB;
    box-shadow: 0 0 5px rgba(29, 117, 187, 0.5);
}

/* PAYMENT METHOD */
.donation-form .payment-method input[type="radio"] {
    position: absolute;
    visibility: hidden;
}

.donation-form .payment-method {
    display: block;
    padding: 0;
    margin: 0;
    border: none;
}

.donation-form .payment-method label {
    border: 1px solid #666;
    border-radius: 0;
    background-color: #fff;
    display: block;
    padding: 20px 20px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    transition: 0.2s all;
    color: #666;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    line-height: 1;
}

.donation-form .payment-method label:hover {
    color: #1D75BB;
    background-color: #fff;
    border-width: 3px;
    border-color: #1D75BB;
    transition: all 200ms ease-in;
}

.donation-form .payment-method input[type="radio"]:checked + label {
    color: #1D75BB !important;
    background-color: white;
    border-width: 3px;
    border-color: #1D75BB;
    box-sizing: border-box;
    font-weight: bold;
}

.donation-form .bizum-details p,
.donation-form .bank-details p {
    font-weight: normal;
}

.donation-form .bank-details input[type="text"] {
    width: 100%;
    padding: 20px 20px;
    margin: 0;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    border: 2px solid #666;
    border-radius: 0;
}

.donation-form .bank-details input::placeholder {
    color: #666;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
}

.donation-form .bank-details input:focus {
    outline: none;
    border-color: #1D75BB;
    box-shadow: 0 0 5px rgba(29, 117, 187, 0.5);
}

/* Estilo para los textos pequeños */
.donation-form .text-small {
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
}

/* Enlaces de retroceso */
.donation-form .back-link {
    display: inline-block;
    margin-top: 10px;
    text-align: left;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
}

.donation-form .back-link:hover {
    text-decoration: underline;
    color: black;
}

/* Responsive */
@media (max-width: 767px) {
    body {
        font-size: 18px;
    }

    .donation-form {
        padding: 15px;
    }

    .donation-form fieldset input[type="text"],
    .donation-form fieldset input[type="email"],
    .donation-form fieldset input[type="tel"],
    .donation-form fieldset input[type="number"],
    .donation-form button {
        width: 100%;
        padding: 15px;
        margin-bottom: 10px;
        box-sizing: border-box;
    }

    .donation-form .progress-container {
        width: 100%;
        justify-content: space-between;
        padding: 0 10px;
    }

    .donation-form .step-circle {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .donation-form .amount-options {
        flex-direction: column;
        align-items: stretch;
    }

    .donation-form .amount-options label {
        width: 100%;
        margin: 0;
    }

    .donation-form .progress-container::before {
        left: 5%;
        right: 5%;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    body {
        font-size: 20px;
    }

    .donation-form {
        max-width: 600px;
        padding: 20px;
    }

    .donation-form .progress-container {
        width: 70%;
    }

    .donation-form .step-circle {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .donation-form .amount-options {
        flex-direction: row;
        justify-content: space-between;
    }

    .donation-form .amount-options label {
        width: 23%;
    }
}

@media (min-width: 1200px) {
    body {
        font-size: 22px;
    }

    .donation-form {
        max-width: 600px;
        padding: 30px;
    }

    .donation-form .progress-container {
        width: 60%;
    }
}
