/* ===============================
   CALLBACK MODAL – TRUE POPUP
   =============================== */

/* Kill ALL transitions & transforms */
.callback-modal,
.callback-modal * {
    transition: none !important;
    animation: none !important;
}

/* Disable slide animation */
.callback-modal.modal-slide {
    animation: none !important;
    transition: none !important;
}

/* Force centered popup */
.callback-modal.modal-popup,
.callback-modal.modal-slide {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

/* Modal container */
.callback-modal .modal-inner-wrap {
    max-width: 420px;
    width: 90%;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    margin: 0;
    overflow: visible;
    transform: none !important;
}

/* Remove Magento full-height behavior */
.callback-modal .modal-content {
    height: auto !important;
    overflow: visible;
}

/* ===============================
   FORM STYLING
   =============================== */

#callback-popup input {
    width: 100%;
    margin-bottom: 20px;
}

.callback-info,
.callback-product {
    font-size: 14px;
    margin-bottom: 15px;
}

/* ===============================
   SUCCESS & ERROR
   =============================== */

.callback-success {
    color: #1a7f37; /* green */
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    padding: 25px 10px;
}

.callback-error {
    color: #c62828; /* red */
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
}

/* ===============================
   INPUT FIX (ALL FIELDS)
   =============================== */

/* OVERRIDE MAGENTO INPUT THEME */
.callback-modal input[type="text"],
.callback-modal input[type="email"],
.callback-modal input[type="number"],
.callback-modal input[type="tel"] {
    height: 50px;
    padding: 0 10px;
    font-size: 15px;
    background: #fff;
}

.callback-modal .actions .action.primary {
    max-width: 260px;
    padding: 10px 16px;
    font-size: 14px;
}

/* Allow overlay click to close modal */
.modals-overlay {
    pointer-events: auto !important;
}

/* Prevent modal content from blocking overlay click */
.modal-popup {
    pointer-events: none;
}

.modal-popup .modal-inner-wrap {
    pointer-events: auto;
}
