/* Custom Premium Modal Styles - Designed to match Subastas y Comercio brand aesthetics */

:root {
    --va-navy: #192843;
    --va-teal: #03AB90;
    --va-orange-bright: #FF5D00;
    --va-navy-gris: #686868;
    --va-white: #F5F5F5;
}

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(25, 40, 67, 0.5); /* Brand navy transparent backdrop */
    backdrop-filter: blur(10px); /* Modern, elegant glassmorphism blur */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-modal-overlay.active {
    opacity: 1;
}

.custom-modal-box {
    background: #ffffff;
    border-radius: 16px; /* Matches .va-contact-form-box border-radius */
    border: 1px solid rgba(25, 40, 67, 0.08); /* Soft brand navy border */
    padding: 36px 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 48px -12px rgba(25, 40, 67, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Poppins-Medium', 'Poppins', 'Inter', sans-serif;
}

.custom-modal-overlay.active .custom-modal-box {
    transform: scale(1) translateY(0);
}

.custom-modal-icon-container {
    width: 68px;
    height: 68px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    animation: scaleInIcon 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Success Theme */
.custom-modal-box.modal-success .custom-modal-icon-container {
    background: var(--va-teal);
    color: #ffffff;
    box-shadow: 0 8px 16px -4px rgba(3, 171, 144, 0.4);
}

.custom-modal-box.modal-success .custom-modal-btn {
    background: var(--va-teal);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(3, 171, 144, 0.2);
}

.custom-modal-box.modal-success .custom-modal-btn:hover {
    background: #059980; /* Exact hover green from colors.css */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(3, 171, 144, 0.35);
}

/* Error Theme */
.custom-modal-box.modal-error .custom-modal-icon-container {
    background: var(--va-orange-bright);
    color: #ffffff;
    box-shadow: 0 8px 16px -4px rgba(255, 93, 0, 0.4);
}

.custom-modal-box.modal-error .custom-modal-btn {
    background: var(--va-orange-bright);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 93, 0, 0.2);
}

.custom-modal-box.modal-error .custom-modal-btn:hover {
    background: #e05a2b; /* Exact hover orange from vende_aqui.css */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 93, 0, 0.35);
}

.custom-modal-title {
    font-family: 'Poppins-SemiBold', 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--va-navy); /* Brand Navy primary color */
    margin-bottom: 12px;
}

.custom-modal-message {
    font-family: 'Poppins-Medium', 'Poppins', sans-serif;
    font-size: 15px;
    color: var(--va-navy-gris); /* Brand gray/navy secondary text */
    line-height: 1.6;
    margin-bottom: 28px;
}

.custom-modal-btn {
    font-family: 'Poppins-SemiBold', 'Poppins', sans-serif;
    border: none;
    border-radius: 8px; /* Matches .va-btn-submit border-radius */
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.custom-modal-btn:active {
    transform: translateY(0);
}

@keyframes scaleInIcon {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
