/* ============================
   MODAL MINIMALISTA (scroll fix)
   ============================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.25);
    display: none;
    justify-content: center;
    align-items: flex-start;
    backdrop-filter: blur(4px);
    z-index: 9999;
    overflow-y: auto;
    padding: 40px 0;
}

.modal-overlay.open {
    display: flex;
}

.modal-container {
    background: #ffffff;
    width: 95%;
    max-width: 600px;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    font-family: system-ui, sans-serif;
    margin: auto;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #777;
}

.modal-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 5px;
}

.modal-subtitle {
    color: #666;
    margin-bottom: 25px;
}

/* FORMULARIO */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

label {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    color: #333;
}

input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    background: #fafafa;
}

textarea {
    height: 90px;
    resize: none;
}

/* BOTONES ARRIBA */
.step-buttons-top {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.step-buttons-top .btn-next,
.step-buttons-top .btn-prev {
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.step-buttons-top .btn-next {
    background: #000;
    color: #fff;
}

.step-buttons-top .btn-prev {
    background: #e5e5e5;
    color: #333;
}

/* BOTÓN FINAL */
.btn-submit {
    margin-top: 20px;
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    background: #007aff;
    color: #fff;
}


/* MENSAJE DE ÉXITO */
.success-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 25px 35px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.success-message.show {
    opacity: 1;
    pointer-events: auto;
}

.success-check {
    font-size: 40px;
    color: #2ecc71;
    margin-bottom: 10px;
    animation: pop 0.4s ease;
}

@keyframes pop {
    0% { transform: scale(0.2); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-message p {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}


.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.captcha-text {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 4px;
    background: #f0f0f0;
    padding: 8px 15px;
    border-radius: 6px;
    user-select: none;
}

.captcha-refresh {
    background: #ddd;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
}

.captcha-refresh:hover {
    background: #ccc;
}
