@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');

.wrapper {
    position: relative;
    max-width: 1000px; /* Aumenté el ancho máximo */
    width: 90%; /* Responsivo */
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin: 40px auto; /* Centrado automático */
    font-family: 'Baloo 2', cursive;
    bottom: 115px;
}

.wrapper h2 {
    position: relative;
    font-size: 40px;
    font-weight: 600;
    color: #2248b8;
    text-align: center;
    margin-bottom: 10px;
    font-family: 'Lobster', cursive;
}

.wrapper h2::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -5px;
    height: 4px;
    width: 60px;
    border-radius: 12px;
    background: #4070f4;
}

.wrapper h3 {
    color: #2248b8;
    font-size: 40px;
    font-weight: 600;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    text-align: center;
    font-family: 'Lobster', cursive;
}

.wrapper form {
    margin-top: 30px;
}

.wrapper form .input-box {
    margin: 20px 0;
}

.wrapper form .input-box:not(.button) {
    min-height: 52px;
}

form .input-box input[type="text"],
form .input-box input[type="email"],
form .input-box input[type="tel"],
form .input-box input[type="number"] {
    height: 52px;
    width: 100%;
    outline: none;
    padding: 0 15px;
    font-size: 18px;
    font-weight: 400;
    color: #333;
    border: 2px solid #E1E1E1;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Baloo 2', cursive;
}

form .input-box textarea {
    width: 100%;
    min-height: 120px;
    outline: none;
    padding: 15px;
    font-size: 18px;
    font-weight: 400;
    color: #333;
    border: 2px solid #E1E1E1;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Baloo 2', cursive;
    resize: vertical;
}

.input-box input:focus,
.input-box input:valid,
.input-box textarea:focus {
    border-color: #4070f4;
    box-shadow: 0 0 5px rgba(64, 112, 244, 0.3);
}

/* Estilos para radio buttons */
.input-box label {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
}

.radio-group {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #4070f4;
}

.radio-option label {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
}

/* Mejorar la presentación de los radio buttons nativos */
input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    margin-right: 8px !important;
    vertical-align: middle;
}

form .policy {
    display: flex;
    align-items: center;
}

form h3 {
    color: #707070;
    font-size: 14px;
    font-weight: 500;
    margin-left: 10px;
}

.input-box.button {
    margin-top: 40px;
}

.input-box.button input {
    height: 55px;
    width: 100%;
    color: #fff;
    letter-spacing: 1px;
    border: none;
    background: linear-gradient(135deg, #4070f4, #0e4bf1);
    cursor: pointer;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Baloo 2', cursive;
}

.input-box.button input:hover {
    background: linear-gradient(135deg, #0e4bf1, #4070f4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(64, 112, 244, 0.4);
}

form .text h3 {
    color: #333;
    width: 100%;
    text-align: center;
}

form .text h3 a {
    color: #4070f4;
    text-decoration: none;
}

form .text h3 a:hover {
    text-decoration: underline;
}

/* Responsividad */
@media (max-width: 768px) {
    .wrapper {
        width: 95%;
        padding: 30px 20px;
    }
    
    .wrapper h2 {
        font-size: 24px;
    }
    
    .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}