@import '../css/fonts.css';

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background: #1016c6;
    /* background-image: url(../image/fondo_desktop.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; */
    font-family: 'SamsungSSBodyRegular';
    /* padding: 20px; */
}

.container_banner {
    width: 100%;
    /* max-width: 1440px; */
    margin: 0 auto;
    /* padding: 0px 20px; */

    .banner {
        width: 100%;
        height: auto;

        img {
            width: 100%;
            height: auto;
        }

        img:last-child {
            display: none;
        }
    }
}

.register-description {
    max-width: 943px;
    text-align: center;
    color: #ffffff;
    font-size: 26px;
    line-height: 1.5;
    margin: 40px auto;
    font-family: 'SamsungSSBodyBold';
}

@media (max-width: 768px) {
    .register-description {
        font-size: 22px;
        padding: 0px 20px;
    }
}

/* =========================
   WRAPPER GENERAL
========================= */

.register-wrapper {
    position: relative;
    width: 100%;
    max-width: 1440px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 50px 0px 250px;
}

/* =========================
   FORMULARIO
========================= */

.register-container {
    width: 100%;
    max-width: 680px;
    border: 2px solid #c9a0df;
    border-radius: 12px;
    padding: 50px 24px 40px;
    position: relative;
    background: #1d18c9;
    z-index: 2;
}

/* =========================
   FIGURA IZQUIERDA
========================= */
.figure-left {
    position: absolute;
    width: 430px;
    height: auto;
    left: -20px;
    top: 50px;
    z-index: 1;
    pointer-events: none;
}

/* =========================
   FIGURA DERECHA
========================= */

.figure-right {
    position: absolute;
    width: 430px;
    height: auto;
    right: 90px;
    bottom: -180px;
    z-index: 1;
    pointer-events: none;
}

.register-title {
    position: absolute;
    font-family: 'SamsungSSHeadBold';
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: #1d18c9;
    padding: 0 20px;
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    font-family: 'SamsungSSHeadBold';
}

.form-group input,
select {
    width: 100%;
    height: 56px;
    border: 1.5px solid #c9a0df;
    border-radius: 12px;
    background: transparent;
    padding: 0 18px;
    color: #ffffff;
    font-size: 18px;
    font-family: 'SamsungSSBodyRegular';
    outline: none;
}

/* ========= SELECT ========= */

select {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border-radius: 14px;
    /* border: 1px solid #8b7bff; */
    /* background: #2d1fe0; */
    color: #fff;
    font-size: 18px;
    outline: none;
    cursor: pointer;
    margin-bottom: 20px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='white' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 5.646a.5.5 0 0 1 .708 0L8 11.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

/* ========= OPTIONS ========= */

select option {
    background: #ffffff;
    color: #222;
    font-size: 16px;
}

/* ========= FOCUS ========= */

/* select:focus {
    border: 1px solid #c5bfff;
    box-shadow: 0 0 0 3px rgba(197, 191, 255, 0.2);
} */

/* ========= ERROR ========= */

select.input-error {
    border: 1px solid #ff4d4f;
}

select:invalid {
    color: #d0d0d0;
}

.form-group input::placeholder {
    color: #d7d3ff;
    font-family: 'SamsungSSBodyRegular';

}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;

    width: 22px;
    height: 22px;
    min-width: 22px;

    background: transparent;

    border: 2px solid #ffffff;
    border-radius: 6px;

    cursor: pointer;
    margin-top: 2px;

    transition: all .2s ease;

    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-group input[type="checkbox"]:checked {
    background: transparent;
    border-color: #ffffff;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: "✓";
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-group label {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.5;
    font-family: 'SamsungSSBodyRegular' s;

}

.checkbox-group a {
    color: #ffffff;
}

.input-error {
    border: 2px solid #ff6b6b !important;
}

.error-message {
    display: block;
    margin-top: 8px;

    color: #ffb3b3;
    font-size: 14px;
    line-height: 1.4;

    font-family: 'SamsungSSBodyRegular';
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.submit-btn {
    width: 270px;
    height: 62px;
    border: none;
    border-radius: 12px;
    background: #d5a7e8;
    color: #1d18c9;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

/* ESTADO DISABLED */
.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ESTADO ACTIVO */
.submit-btn.active {
    opacity: 1;
}

/* .submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
} */

@media (max-width: 1280px) {
    .register-wrapper {
        padding: 30px 20px;
    }

    .figure-left,
    .figure-right {
        width: 350px;
    }

    .figure-left {
        left: -50px;
        top: 50px;
    }

    .figure-right {
        right: 50px;
        bottom: -300px;
    }

}

@media (max-width: 1024px) {
    .register-wrapper {
        padding: 30px 20px;
    }

    .figure-left,
    .figure-right {
        width: 300px;
    }

    .figure-left {
        left: -150px;
        top: 50px;
    }

    .figure-right {
        right: 0px;
        bottom: -220px;
    }

}

@media (max-width: 768px) {

    /* body {
        background-image: url(../image/fondo_mobile.webp);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    } */
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .register-wrapper {
        padding: 30px 20px;
    }

    .register-container {
        padding: 45px 18px 30px;
    }

    .figure-left,
    .figure-right {
        display: none;
    }


    .register-title {
        font-family: 'SamsungSSBodyBold';
        font-size: 24px;
    }

    .form-group label,
    .checkbox-group label {
        font-size: 16px;
    }

    .form-group input {
        height: 52px;
        font-size: 16px;
    }

    .submit-btn {
        width: 100%;
        max-width: 260px;
        height: 56px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .container_banner {
        .banner {
            img {
                display: none;
            }

            img:last-child {
                display: block;
            }
        }
    }
}


/* =========================
   MODAL SUCCESS
========================= */

.success-modal {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100vh;

    background: rgba(0, 0, 0, 0.55);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;

    transition: all .3s ease;

    z-index: 999;
}

/* MODAL ACTIVO */
.success-modal.show {
    opacity: 1;
    visibility: visible;
}

/* CARD */
.success-modal-content {
    width: 90%;
    max-width: 420px;

    background: #ffffff;

    /* border: 2px solid #c9a0df; */
    border-radius: 20px;

    padding: 40px 24px;

    text-align: center;

    transform: translateY(30px);

    transition: all .3s ease;
}

/* ANIMACIÓN */
.success-modal.show .success-modal-content {
    transform: translateY(0);
}

/* TITULO */
.success-modal-content h3 {
    color: #000000;

    font-size: 32px;

    margin-bottom: 16px;

    font-family: 'SamsungSSBodyBold';
}

/* TEXTO */
.success-modal-content p {
    color: #000000;

    font-size: 25px;
    line-height: normal;
    margin-bottom: 32px;
    font-family: 'SamsungSSBodyRegular';

}

@media screen and (max-width: 780px) {
    .success-modal-content h3 {
        font-size: 28px;
    }

    .success-modal-content p {
        font-size: 18px;
    }
}

.closes {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 18px;
    color: #000000;
    cursor: pointer;
}

/* BOTÓN */
.success-btn {
    width: 250px;
    height: 56px;

    border: none;
    border-radius: 12px;

    background: #d5a7e8;

    color: #1d18c9;

    font-size: 18px;
    font-weight: bold;
    cursor: pointer;

    transition: .3s ease;
}

.download-btn {
    width: 250px;
    height: 56px;
    font-family: 'SamsungSSBodyBold';
    border: none;
    border-radius: 12px;

    background: #1d18c9;

    color: #ffffff;

    font-size: 18px;
    font-weight: bold;

    cursor: pointer;

    transition: .3s ease;
}

.success-btn:hover {
    transform: translateY(-2px);
    opacity: .9;
}