/**
 * Candle Modal Styles
 */

/* Overlay de color de fondo */
.color-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    pointer-events: none;
    z-index: 10;
    transition: background-color 0.5s ease;
}

.color-overlay.active {
    pointer-events: auto;
}

/* Modal */
.candle-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.candle-modal.active {
    opacity: 1;
    visibility: visible;
}

.candle-modal__content {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 24px;
    padding: 0;
    max-width: 650px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    margin: 2rem auto;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.candle-modal.active .candle-modal__content {
    transform: translateY(0) scale(1);
}

.candle-modal__close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    position: relative;
    padding: 0;
    margin: 0;
}

.candle-modal__close:hover {
    color: #e0d0f0;
}

.candle-modal__header {
    background-color: #4B2067;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0;
    padding: 0.6rem 1.5rem;
    border-radius: 24px 24px 0 0;
}

.candle-modal__header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-family: KoHo, sans-serif;
    color: #fff;
    font-weight: 600;
    line-height: 1.2;
}

.candle-modal__text {
    font-family: KoHo, sans-serif;
    font-size: 0.95rem;
    color: #44287D;
    text-align: left;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 0 2.5rem;
}

.candle-modal__errors {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 1rem;
    margin: 0 2.5rem 1.5rem 2.5rem;
}

.candle-modal__errors p {
    color: #dc2626;
    font-size: 0.9rem;
    margin: 0;
    font-family: KoHo, sans-serif;
}

.candle-modal__field {
    margin-bottom: 1.25rem;
    padding: 0 1.5rem;
    max-width: 450px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.candle-modal__field label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4B2067;
    margin-bottom: 0.5rem;
}

.candle-modal__field input {
    width: 100%;
    padding: 12px 16px;
    font-family: 'KoHo', sans-serif;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    background-color: #F2E9F4;
}

.candle-modal__field input:focus {
    border-color: #6a4bc4;
    box-shadow: 0 0 0 3px rgba(106, 75, 196, 0.15);
}

.candle-modal__field input::placeholder {
    color: #44287D;
}

.candle-modal__submit {
    width: auto;
    min-width: 80px;
    max-width: 180px;
    padding: 0.4rem 1.6rem;
    font-family: 'KoHo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #4B2067 0%, #6a4bc4 100%);
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(75, 32, 103, 0.3);
    margin: 0.5rem auto 2.5rem auto;
    display: block;
    text-align: center;
    border-top-left-radius: 2em;
    border-top-right-radius: 0;
    border-bottom-right-radius: 2em;
    border-bottom-left-radius: 0;
}

.candle-modal__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(75, 32, 103, 0.4);
}

.candle-modal__submit:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 576px) {
    .candle-modal__content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .candle-modal__header h2 {
        font-size: 1.25rem;
    }

    .candle-modal__text {
        font-size: 0.9rem;
        padding: 0 1.25rem;
    }

    .candle-modal__errors {
        margin: 0 1.25rem 1.5rem 1.25rem;
    }

    .candle-modal__field {
        padding: 0 1rem;
    }

    .candle-modal__image {
        width: 60px;
    }
}