/* ============================================
   ESTILOS CONSOLIDADOS DOS MODAIS GERAX
   ============================================ */

/* Modal Content */
.modal-content {
    background-color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    padding: 20px;
    position: relative;
}

/* Close Button */
.close {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 2;
    background: #001c34;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.close:hover,
.close:focus {
    background: #0ea5e9;
    color: white;
    transform: scale(1.1);
    outline: none;
}

/* Modal Body */
.modal-body {
    padding: 2.5rem;
}

.modal-body .row {
    align-items: stretch;
}

/* Imagens */
.modal-body img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    min-height: 250px;
    margin-bottom: 1.5rem;
}

.modal-body .col-md-6:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Títulos */
.modal-body h4 {
    color: #001c34;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.modal-body h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #0ea5e9;
}

/* Parágrafos */
.modal-body p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Listas de Benefícios */
.modal-body ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.modal-body ul li {
    padding: 0 0 0.75rem 1.5rem;
    position: relative;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-body ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0ea5e9;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Container do Botão CTA */
.modal-cta {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin-top: 2.5rem !important;
    padding-top: 2rem !important;
    border-top: 2px solid #e0e0e0 !important;
}

/* Botão CTA */
.btn-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #001c34 0%, #0ea5e9 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 24px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    min-width: 140px !important;
    text-align: center !important;
    line-height: 1.4 !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    outline: none !important;
}

.btn-cta:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 40px rgba(14, 165, 233, 0.5) !important;
    background: linear-gradient(135deg, #083b63 0%, #34c3ff 100%) !important;
    text-decoration: none !important;
    color: #fff !important;
}

.btn-cta:active {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3) !important;
}

.btn-cta:focus {
    outline: 3px solid #0ea5e9 !important;
    outline-offset: 2px !important;
}

/* Modal Dialog */
.modal-dialog {
    max-width: 90%;
    width: 1140px;
    margin: 1.75rem auto;
}

.modal.fade .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Responsividade Tablet */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
        max-width: 95%;
        width: 100%;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-body h4 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .btn-cta {
        padding: 8px 20px !important;
        font-size: 0.9rem !important;
        min-width: 130px !important;
    }
    
    .modal-cta {
        margin-top: 2rem !important;
        padding-top: 1.5rem !important;
    }
}

/* Responsividade Mobile */
@media (max-width: 576px) {
    .modal-body {
        padding: 1rem;
    }
    
    .modal-body .row {
        flex-direction: column;
    }
    
    .modal-body .col-md-6 {
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    .modal-body h4 {
        font-size: 1.3rem;
    }
    
    .modal-body img {
        min-height: 200px;
    }
    
    .btn-cta {
        width: 100% !important;
        min-width: unset !important;
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }
    
    .modal-cta {
        margin-top: 1.5rem !important;
        padding-top: 1rem !important;
    }
}

/* ============================================
   OVERRIDE FINAL - BOOTSTRAP COMPATIBILITY
   ============================================ */

/* Force all modal styles to override Bootstrap */
.modal-content {
    background-color: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2) !important;
    padding: 20px !important;
}

.modal-body img {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    object-fit: contain !important;
    margin-bottom: 1.5rem !important;
}

/* Guarantee button styles */
.btn-cta,
a.btn-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #001c34 0%, #0ea5e9 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
    text-align: center !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    outline: none !important;
}

.btn-cta:hover,
a.btn-cta:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 40px rgba(14, 165, 233, 0.5) !important;
    background: linear-gradient(135deg, #083b63 0%, #34c3ff 100%) !important;
    text-decoration: none !important;
    color: #fff !important;
}

/* Modal close button override */
.modal .close {
    background: #001c34 !important;
    color: white !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    cursor: pointer !important;
}

.modal .close:hover {
    background: #0ea5e9 !important;
    color: white !important;
    transform: scale(1.1) !important;
}

/* Ensure modal dialog centered */
.modal-dialog.modal-dialog-centered {
    display: flex !important;
    align-items: center !important;
    min-height: calc(100% - 3.5rem) !important;
}
