/* public-style.css */
/* Add public-facing styles here if needed. */

/* Base modal styles for the popup - ensure it behaves as an overlay */
.trustx-modal {
    display: none; /* Hidden by default, JavaScript will change to 'flex' to show */
    position: fixed; /* Stay in place */
    z-index: 999999; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if content is too large */
    background-color: rgba(0, 0, 0, 0.7); /* Black w/ opacity */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    -webkit-animation-name: trustxAnimateTop;
    -webkit-animation-duration: 0.4s;
    animation-name: trustxAnimateTop;
    animation-duration: 0.4s;
}

/* Modal Content Box */
.trustx-modal-content {
    background-color: #fefefe;
    margin: auto; /* For older browsers / fallback positioning */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Responsive width */
    max-width: 500px; /* Max width for larger screens */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    border-radius: 8px;
    position: relative; /* Needed for absolute positioning of close button */
}

/* Animations for modal entry */
@-webkit-keyframes trustxAnimateTop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

@keyframes trustxAnimateTop {
  from {top:-300px; opacity:0}
  to {top:0; opacity:1}
}

/* Close Button Styling (consistent with admin-style, but for public) */
.trustx-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    background-color: #a0a0a0; /* Neutral gray for close button */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
    line-height: 1; /* Center 'x' vertically */
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.trustx-close-button:hover {
    background-color: #707070; /* Darker gray on hover */
    transform: scale(1.05);
}

/* Modal Title */
.trustx-modal-title {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    text-align: center; /* Center modal titles */
}

/* Modal Footer (for buttons like OK/Cancel) */
.trustx-modal-footer {
    padding-top: 15px;
    margin-top: 20px;
    border-top: 1px solid #eee;
    text-align: right; /* Align buttons to the right */
}

/* Basic Button Styles (to ensure buttons within modals are styled if admin-style.css isn't loaded) */
.trustx-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px; /* Slightly smaller than admin buttons */
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-decoration: none;
    color: #ffffff;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.trustx-button-primary {
    background-color: #6a0dad; /* Deep purple */
}

.trustx-button-primary:hover {
    background-color: #4a0080;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.trustx-button-secondary {
    background-color: #95a5a6; /* Gray */
}

.trustx-button-secondary:hover {
    background-color: #7f8c8d;
}

/* Specific button styles for modal footer (Cancel/OK) */
.trustx-modal-footer .trustx-button {
    margin-left: 10px;
}

/* Notice styles within modals (e.g., for phone validation message) */
.trustx-notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 1em;
    line-height: 1.6;
    border-left: 6px solid;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.trustx-notice-error {
    background-color: #ffe0e0;
    color: #dc3545;
    border-color: #dc3545;
}


/* BEGIN - NEW Popup Specific Styles (originally from admin-style.css) */
/* These styles make the popup look like the mock-up */
.trustx-smart-block-popup {
    /* No additional styling here, as it inherits from .trustx-modal */
}

.trustx-smart-block-modal-content {
    max-width: 600px; /* Wider for better presentation of buttons */
    padding: 30px; /* More padding */
    border-left: 8px solid #4CAF50; /* A more diplomatic, calming green border */
    text-align: center;
    background: linear-gradient(145deg, #ffffff, #f0f8f0); /* Soft white to light green gradient */
    border-radius: 12px; /* More rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05); /* Deeper, more premium shadow */
    overflow: hidden; /* Ensure gradient stays within borders */
}

.trustx-smart-block-modal-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.1) 0%, transparent 70%); /* Subtle radial gradient effect */
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.trustx-smart-block-modal-content .trustx-modal-title {
    color: #333333; /* Darker, more neutral title color */
    font-size: 2.5em; /* Even larger, more impactful title */
    font-weight: 800; /* Extra bold */
    margin-bottom: 10px; /* Reduced margin */
    border-bottom: none; /* No border for a cleaner look */
    letter-spacing: -0.5px; /* Tighter letter spacing */
    position: relative; /* For z-index over pseudo-element */
    z-index: 1;
}

.trustx-smart-block-modal-content .trustx-popup-general-message {
    font-size: 1.2em; /* Larger, more readable message */
    color: #555555; /* Soft dark gray for body text */
    line-height: 1.6;
    margin-bottom: 35px; /* More space before buttons */
    position: relative; /* For z-index over pseudo-element */
    z-index: 1;
}

.trustx-smart-block-modal-content .trustx-popup-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Space between buttons */
    margin-bottom: 20px; /* Reduced margin */
    position: relative; /* For z-index over pseudo-element */
    z-index: 1;
}

.trustx-popup-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 35px; /* Even larger, more prominent buttons */
    border-radius: 10px; /* More rounded for a modern feel */
    font-size: 1.2em; /* Larger font size */
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    min-width: 200px; /* Ensure buttons are a decent size */
    box-shadow: 0 6px 20px rgba(0,0,0,0.2); /* Deeper shadow for buttons */
    transition: all 0.3s cubic-bezier(.25,.8,.25,1); /* Smoother, more defined transition */
    transform: translateY(0); /* Ensure no initial transform */
    border: none; /* Remove any default border */
}

.trustx-popup-button .dashicons {
    font-size: 1.8em; /* Larger icons */
    margin-right: 12px; /* More space between icon and text */
    vertical-align: middle;
}

.trustx-popup-button-call {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%); /* Green gradient for call button */
}

.trustx-popup-button-call:hover {
    background: linear-gradient(135deg, #388E3C 0%, #2E7D32 100%); /* Darker green gradient on hover */
    transform: translateY(-5px); /* More pronounced lift */
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.trustx-popup-button-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #1DA851 100%); /* WhatsApp green gradient */
}

.trustx-popup-button-whatsapp:hover {
    background: linear-gradient(135deg, #1DA851 0%, #15793F 100%); /* Darker WhatsApp green gradient on hover */
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.trustx-popup-disclaimer {
    font-size: 0.9em;
    color: #888;
    margin-top: 15px; /* Reduced margin */
    position: relative; /* For z-index over pseudo-element */
    z-index: 1;
}

/* Responsive adjustments for popup */
@media (max-width: 480px) {
    .trustx-smart-block-modal-content {
        padding: 20px;
    }
    .trustx-smart-block-modal-content .trustx-modal-title {
        font-size: 2em;
    }
    .trustx-smart-block-modal-content .trustx-popup-general-message {
        font-size: 1em;
    }
    .trustx-popup-button {
        width: 100%;
        min-width: unset;
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .trustx-popup-actions {
        flex-direction: column;
    }
}
/* END - NEW Popup Specific Styles */