/**
 * Xtellaris Newsletter Modal Styles
 */

/* ── Trigger button/Link if used standalone ───────────────── */
.xt-newsletter-trigger {
    cursor: pointer;
}

/* ── Modal Structure ───────────────────────────────────────── */
.xt-newsletter-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.xt-newsletter-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.xt-newsletter-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.xt-newsletter-modal__container {
    position: relative;
    width: 90%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 40px;
    padding: 60px 40px 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.xt-newsletter-modal.is-active .xt-newsletter-modal__container {
    transform: translateY(0) scale(1);
}

.xt-newsletter-modal__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0c0c0c;
    transition: all 0.3s ease;
}

.xt-newsletter-modal__close:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: rotate(90deg);
}

/* ── Form Styles ───────────────────────────────────────────── */
.xt-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.xt-newsletter-form__field {
    position: relative;
    display: flex;
    align-items: center;
}

.xt-newsletter-form__icon {
    position: absolute;
    left: 18px;
    color: rgba(0, 0, 0, 0.4);
    width: 22px;
    height: 22px;
    pointer-events: none;
    z-index: 2;
}

.xt-newsletter-form__input {
    width: 100%;
    padding: 18px 24px 18px 52px !important; /* Aseguramos espacio para el icono */
    background: #ffffff;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px; /* Un poco más cuadrado como en la imagen original */
    font-size: 16px;
    font-weight: 500;
    color: #0c0c0c;
    transition: all 0.3s ease;
}

.xt-newsletter-form__input:focus {
    outline: none;
    border-color: #0091ff;
    box-shadow: 0 0 0 4px rgba(0, 145, 255, 0.08);
    background: #fff;
}

.xt-newsletter-form__input::placeholder {
    color: rgba(0, 0, 0, 0.25);
    font-weight: 400;
}

.xt-newsletter-form__checkbox-label {
    display: flex;
    gap: 12px;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    align-items: flex-start;
}

.xt-newsletter-form__checkbox {
    margin-top: 2px;
}

.xt-newsletter-form__submit {
    margin-top: 10px;
    padding: 18px;
    background: #0091ff;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 145, 255, 0.2);
}

.xt-newsletter-form__submit:hover {
    background: #007ae6;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 145, 255, 0.3);
}

.xt-newsletter-form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.xt-newsletter-form__response {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    display: none;
}

.xt-newsletter-form__response.is-success {
    display: block;
    color: #10b981;
}

.xt-newsletter-form__response.is-error {
    display: block;
    color: #ef4444;
}

/* Specific to the image: darkened border for focus/active field */
.xt-newsletter-form__field.is-focused .xt-newsletter-form__input {
    border-color: #000;
}
