/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/

.faq-masonry {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    width: 100%;
}

.faq-item {
    background: #222;
    color: white;
    padding: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    width: calc(25% - 11.25px); /* 25% minus the gap adjustment */
}

.faq-item-content {
    width: 100%;
    text-align: center;
}

.faq-item h3 {
    font-size: 20px !important;
    color: white;
    margin: 0;
    text-align: center;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 24px !important;
}

.faq-item.destaque h3 {
    color: #ffd883;
}

.faq-item:hover {
    background: #444;
}

/* Responsive adjustments */
@media screen and (max-width: 1200px) {
    .faq-item {
        width: calc(33.33% - 10px);
    }
}

@media screen and (max-width: 768px) {
    .faq-item {
        width: calc(50% - 7.5px);
    }
}

@media screen and (max-width: 480px) {
    .faq-item {
        width: 100%;
    }
}

/* Modal Styling */
.faq-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    max-width: 900px;
    max-height: 90vh;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    z-index: 9999999;
    overflow: hidden;
}

/* Overlay */
.faq-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999998;
}

/* Ensure modals are above everything */
#wpbody-content {
    position: relative;
    z-index: 1;
}

/* Remove the duplicate z-index declarations that were causing issues */
.faq-modal {
    position: fixed !important;
}

.faq-modal-overlay {
    position: fixed !important;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .faq-modal {
        width: calc(100% - 20px);
        max-width: none;
        margin-left: 0px;
        margin-right: 10px;
        height: calc(100vh - 20px);
        max-height: none;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .faq-content {
        max-height: calc(100vh - 140px); /* Adjusted for mobile */
    }
}

.faq-modal.active + .faq-modal-overlay {
    display: block;
}

.faq-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    overflow: hidden;
    padding: 20px;
}

.faq-modal-content h2 {
    margin-top: 0;
    padding: 0;
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* Ensure modal content is scrollable */
.faq-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 20px;
    -webkit-overflow-scrolling: touch;
    background: white;
    max-height: calc(90vh - 100px); /* Account for header and padding */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.faq-content::-webkit-scrollbar {
    width: 6px;
}

/* Track */
.faq-content::-webkit-scrollbar-track {
    background: transparent;
}

/* Handle */
.faq-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

/* Handle on hover */
.faq-content::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Prevent scrolling when modal is open */
body.modal-open {
    overflow: hidden !important;
    position: relative;
    height: 100%;
}

/* Ensure the body stays in place when modal is open */
body.modal-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

.faq-close {
    position: absolute;
    top: 0px;
    right: -8px;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 0 15px;
    line-height: 1;
    transition: color 0.3s;
}

.faq-close:hover {
    color: #000;
}

/* Curso Form Styles */
.cursos-form {
    max-width: 800px;
    margin: 0 auto;
}

.cursos-totals {
    background: #ffd883;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    justify-content: space-around;
    font-size: 1.1em;
    font-weight: bold;
    color: black;
}

.service-option {
    font-size: inherit; /* This will match the font size of the list */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dotted #555;
}

.service-option label {
    display: flex;
    align-items: center;
}

.service-text {
    margin-left: 8px;
}

.service-price {
    color: #ffd883;
    margin-left: 5px;
}

.total-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.curso-category {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.category-header {
    background: #434446;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-header h3 {
    margin: 0;
    color: white;
}

.toggle-icon {
    color: white;
}

.category-content {
    display: none;
    padding: 15px;
}

.category-content.active {
    display: block;
}

.curso-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.curso-item:last-child {
    border-bottom: none;
}

.curso-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.curso-checkbox {
    min-height: 44px;
    align-items: center;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    touch-action: manipulation;
}

.curso-checkbox input[type="checkbox"] {
    margin-right: 10px;
}

.info-icon {
    cursor: pointer;
    margin-left: auto;
    width: 20px;
    height: 20px;
    background: #ffd883;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    color: black;
    font-weight: bold;
    font-size: 14px;
}

.curso-info {
    background: #717171;
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    color: white;
}

.curso-info .curso-resumo {
    line-height: 1.3;
}

.options-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.option-group {
    flex: 1;
}

.languages {
    text-align: right;
}

.curso-price {
    margin-top: 10px;
    font-weight: bold;
    color: white;
}

.summary-section {
    margin-top: 30px;
    background: #434446;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #222;
    color: white;
}

.summary-section h3 {
    text-align: center;
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #555;
    color: white;
}

.cursos-detalhes {
    margin: 15px 0;
}

.curso-detalhe-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted #555;
}

.curso-detalhe-item .curso-nome {
    font-weight: bold;
    color: #ffd883;
}

.curso-detalhe-item .curso-opcoes {
    font-weight: normal;
}

.instalacao-detalhes {
    margin: 15px 0;
}

.instalacao-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted #555;
}

.instalacao-item:last-child {
    border-bottom: none;
}

.instalacao-cliente {
    border-top: 1px solid #555;
    padding-top: 15px;
}

.instalacao-elearning {
    color: #ffd883;
    font-weight: bold;
}

.no-cursos-message {
    text-align: center;
    font-style: italic;
    color: #aaa;
}

.form-submit {
    margin-top: 20px;
    text-align: center;
}

.form-submit button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    color: black;
}

.card {
    background: white;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    padding: 15px;
    margin-top: 20px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .cursos-totals {
        flex-direction: column;
        gap: 15px;
    }
    .total-item {
        justify-content: space-between;
    }
    .options-row {
        flex-direction: column;
    }
    .option-group {
        margin-bottom: 15px;
    }
}

.language-note {
    margin-top: 15px;
    color: #ffd883;
    font-style: italic;
}

.language-note p {
    color: #ffd883;
    font-style: italic;
}

/* Lead Modal Styles */
.lead-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 30px;
    z-index: 9999999;
}

.lead-modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    color: #333 !important;
    font-weight: bold;
}

.lead-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999998;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lead-form input {
    padding: 10px;
    border: 2px solid #333 !important;
    border-radius: 4px;
    font-size: 16px;
    color: #333 !important;
    background-color: #fff !important;
}

.lead-form input:focus {
    outline: none;
    border-color: #ffd883 !important;
    color: #333 !important;
}

.lead-form input::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

.lead-form .buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.lead-form .buttons a {
    color: #333 !important;
}

.lead-form .buttons a span {
    color: #333 !important;
}

.lead-form .buttons a span.start,
.lead-form .buttons a span.hover {
    color: #333 !important;
}

.lead-form .nectar-button.see-through-extra-color-gradient-1 {
    color: #333 !important;
}

.lead-form .nectar-button.see-through-extra-color-gradient-1 * {
    color: #333 !important;
}

.nectar-button.see-through-extra-color-gradient-1[data-hover-text-color-override="#fff"] span.hover {
    color: #333 !important;
}

.lead-form .message {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.lead-form .message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lead-form .message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.lead-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 0 10px;
    line-height: 1;
    transition: color 0.3s;
}

.lead-close:hover {
    color: #000;
}

@media (max-width: 768px) {
    .lead-modal {
        width: 95%;
        padding: 20px;
    }
}

.lead-form .buttons a.nectar-button.see-through-extra-color-gradient-1 span.start,
.lead-form .buttons a.nectar-button.see-through-extra-color-gradient-1 span.hover {
    color: #333 !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    -webkit-text-fill-color: #333 !important;
    opacity: 1 !important;
    font-weight: bold !important;
    visibility: visible !important;
}

.lead-form .buttons a.nectar-button.see-through-extra-color-gradient-1:hover span {
    color: #333 !important;
    opacity: 1 !important;
}

.lead-modal-overlay {
    opacity: 0.7 !important;
}

/* Force modal to be hidden when needed */
.modal-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Venda Modal Styles */
.venda-modal {
    max-width: 600px;  /* Slightly wider than lead modal */
    max-height: 90vh;  /* Limit height to 90% of viewport height */
    overflow-y: auto;  /* Add vertical scrolling */
}

.venda-modal textarea {
    padding: 10px;
    border: 2px solid #333 !important;
    border-radius: 4px;
    font-size: 16px;
    color: #333 !important;
    background-color: #fff !important;
    resize: vertical;
    min-height: 80px;
    width: 100%;
    box-sizing: border-box;
}

.venda-modal textarea:focus {
    outline: none;
    border-color: #ffd883 !important;
    color: #333 !important;
}

.venda-modal textarea::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.venda-modal::-webkit-scrollbar {
    width: 6px;
}

/* Track */
.venda-modal::-webkit-scrollbar-track {
    background: transparent;
}

/* Handle */
.venda-modal::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

/* Handle on hover */
.venda-modal::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Message styles in both modals */
.lead-form .message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.lead-form .message.success {
    background-color: #e7f4e4;
    color: #2c662d;
    border: 1px solid #c9e6ca;
}

.lead-form .message.error {
    background-color: #f8e7e7;
    color: #b30000;
    border: 1px solid #e5c3c3;
}

.curso-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    margin-right: 5px;
    font-size: 16px;
    vertical-align: middle;
}

.curso-badge.hot-topic {
    color: #ff6b6b;
    margin-left: 10px;
}

.curso-badge.mais-vendido {
    background-color: #ffe066; /* Highlight yellow */
    color: #333;
    font-weight: bold;
    border-radius: 5px;
    padding: 2px 8px;
    margin-left: 8px;
    font-size: 0.95em;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.contacto-modal textarea {
    min-height: 120px;
    border: 2px solid #333 !important;
    font-size: 16px;
    color: #333 !important;
    background-color: #fff !important;
}

.contacto-modal .lead-form {
    gap: 20px;
}

/* Contact Modal Two-Column Layout */
.contacto-modal {
    max-width: 900px !important;
    width: 90% !important;
}

.contacto-modal-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.contacto-form-column {
    flex: 1;
    min-width: 0;
}

.contacto-info-column {
    flex: 1;
    min-width: 0;
}

.contacto-info {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.contacto-section {
    margin-bottom: 25px;
}

.contacto-section:last-child {
    margin-bottom: 0;
}

.contacto-section h4 {
    color: #333 !important;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
    border-bottom: 2px solid #ffd883;
    padding-bottom: 5px;
}

.contacto-section p {
    color: #555 !important;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 8px 0;
}

.contacto-section p:last-child {
    margin-bottom: 0;
}

.contacto-section a {
    color: #ffd883 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacto-section a:hover {
    color: #ffcc33 !important;
    text-decoration: underline;
}

/* Override inherited modal styles for contact modal */
.contacto-modal h2 {
    color: #333 !important;
}

.contacto-modal .contacto-modal-content {
    color: #333 !important;
}

/* Ensure flexbox works properly */
.contacto-modal .contacto-modal-content {
    display: flex !important;
    flex-direction: row !important;
    gap: 40px !important;
    align-items: flex-start !important;
}

/* Override lead-form flex styles for contact modal */
.contacto-modal .lead-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

/* Ensure columns maintain their width */
.contacto-modal .contacto-form-column,
.contacto-modal .contacto-info-column {
    flex: 1 1 50% !important;
    min-width: 0 !important;
    max-width: 50% !important;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .contacto-modal {
        max-width: 95% !important;
        width: 95% !important;
        margin: 20px auto !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    .contacto-modal-content {
        flex-direction: column !important;
        gap: 25px !important;
    }
    
    /* Reset column widths on mobile */
    .contacto-modal .contacto-form-column,
    .contacto-modal .contacto-info-column {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
    
    .contacto-info {
        padding: 20px;
    }
    
    .contacto-section h4 {
        font-size: 16px;
    }
    
    .contacto-section p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .contacto-modal {
        margin: 10px auto !important;
        padding: 15px !important;
    }
    
    .contacto-modal-content {
        gap: 20px !important;
    }
    
    .contacto-info {
        padding: 15px;
    }
    
    .contacto-section {
        margin-bottom: 20px;
    }
    
    .contacto-section h4 {
        font-size: 15px;
    }
    
    .contacto-section p {
        font-size: 12px;
    }
}

/* Contact Modal Two-Column Layout - More Specific Selectors */
.lead-modal.contacto-modal {
    max-width: 900px !important;
    width: 90% !important;
}

.lead-modal.contacto-modal .contacto-modal-content {
    display: flex !important;
    flex-direction: row !important;
    gap: 40px !important;
    align-items: flex-start !important;
    color: #333 !important;
}

.lead-modal.contacto-modal .contacto-form-column {
    flex: 1 1 50% !important;
    min-width: 0 !important;
    max-width: 50% !important;
}

.lead-modal.contacto-modal .contacto-info-column {
    flex: 1 1 50% !important;
    min-width: 0 !important;
    max-width: 50% !important;
}

.lead-modal.contacto-modal .contacto-info {
    background-color: #f8f9fa !important;
    padding: 25px !important;
    border-radius: 8px !important;
    border: 1px solid #e9ecef !important;
}

.lead-modal.contacto-modal .contacto-section {
    margin-bottom: 25px !important;
}

.lead-modal.contacto-modal .contacto-section:last-child {
    margin-bottom: 0 !important;
}

.lead-modal.contacto-modal .contacto-section h4 {
    color: #333 !important;
    font-size: 18px !important;
    font-weight: bold !important;
    margin: 0 0 10px 0 !important;
    border-bottom: 2px solid #ffd883 !important;
    padding-bottom: 5px !important;
}

.lead-modal.contacto-modal .contacto-section p {
    color: #555 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0 0 8px 0 !important;
}

.lead-modal.contacto-modal .contacto-section p:last-child {
    margin-bottom: 0 !important;
}

.lead-modal.contacto-modal .contacto-section a {
    color: #ffd883 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.lead-modal.contacto-modal .contacto-section a:hover {
    color: #ffcc33 !important;
    text-decoration: underline !important;
}

/* Override inherited modal styles for contact modal */
.lead-modal.contacto-modal h2 {
    color: #333 !important;
}

/* Override lead-form flex styles for contact modal */
.lead-modal.contacto-modal .lead-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

/* Mobile Responsive Design - More Specific */
@media (max-width: 768px) {
    .lead-modal.contacto-modal {
        max-width: 95% !important;
        width: 95% !important;
        margin: 20px auto !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    .lead-modal.contacto-modal .contacto-modal-content {
        flex-direction: column !important;
        gap: 25px !important;
    }
    
    /* Reset column widths on mobile */
    .lead-modal.contacto-modal .contacto-form-column,
    .lead-modal.contacto-modal .contacto-info-column {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
    
    .lead-modal.contacto-modal .contacto-info {
        padding: 20px !important;
    }
    
    .lead-modal.contacto-modal .contacto-section h4 {
        font-size: 16px !important;
    }
    
    .lead-modal.contacto-modal .contacto-section p {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .lead-modal.contacto-modal {
        margin: 10px auto !important;
        padding: 15px !important;
    }
    
    .lead-modal.contacto-modal .contacto-modal-content {
        gap: 20px !important;
    }
    
    .lead-modal.contacto-modal .contacto-info {
        padding: 15px !important;
    }
    
    .lead-modal.contacto-modal .contacto-section {
        margin-bottom: 20px !important;
    }
    
    .lead-modal.contacto-modal .contacto-section h4 {
        font-size: 15px !important;
    }
    
    .lead-modal.contacto-modal .contacto-section p {
        font-size: 12px !important;
    }
}

/* Contact Modal Ultra-specific responsive styles - Override any conflicting theme styles */

/* Ensure contact modal works on all devices */
@media screen and (max-width: 768px) {
    body div#contacto-modal.lead-modal.contacto-modal,
    html body div#contacto-modal.lead-modal.contacto-modal {
        max-width: 95vw !important;
        width: 95vw !important;
        margin: 20px auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        position: fixed !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    body div#contacto-modal.lead-modal.contacto-modal .contacto-modal-content,
    html body div#contacto-modal.lead-modal.contacto-modal .contacto-modal-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
        width: 100% !important;
    }
    
    body div#contacto-modal.lead-modal.contacto-modal .contacto-form-column,
    body div#contacto-modal.lead-modal.contacto-modal .contacto-info-column,
    html body div#contacto-modal.lead-modal.contacto-modal .contacto-form-column,
    html body div#contacto-modal.lead-modal.contacto-modal .contacto-info-column {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
    }
}

@media screen and (max-width: 480px) {
    body div#contacto-modal.lead-modal.contacto-modal,
    html body div#contacto-modal.lead-modal.contacto-modal {
        max-width: 98vw !important;
        width: 98vw !important;
        margin: 10px auto !important;
    }
    
    body div#contacto-modal.lead-modal.contacto-modal .contacto-modal-content,
    html body div#contacto-modal.lead-modal.contacto-modal .contacto-modal-content {
        gap: 20px !important;
    }
    
    body div#contacto-modal.lead-modal.contacto-modal .contacto-info,
    html body div#contacto-modal.lead-modal.contacto-modal .contacto-info {
        padding: 15px !important;
    }
}

/* Force stacking on any screen smaller than 768px */
@media screen and (max-width: 767px) {
    body #contacto-modal.lead-modal.contacto-modal .contacto-modal-content {
        flex-direction: column !important;
    }
}

/* Ultra-aggressive responsive override for contact modal */
@media screen and (max-width: 768px) {
    html body div#contacto-modal.lead-modal.contacto-modal[style*="max-width"] .contacto-modal-content[style*="flex-direction"] {
        flex-direction: column !important;
        gap: 25px !important;
    }
    
    html body div#contacto-modal.lead-modal.contacto-modal[style*="max-width"] .contacto-form-column[style*="max-width"],
    html body div#contacto-modal.lead-modal.contacto-modal[style*="max-width"] .contacto-info-column[style*="max-width"] {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Even more specific override for mobile */
@media screen and (max-width: 767px) {
    [id="contacto-modal"][style] .contacto-modal-content[style] {
        flex-direction: column !important;
    }
    
    [id="contacto-modal"][style] .contacto-form-column[style],
    [id="contacto-modal"][style] .contacto-info-column[style] {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Mobile touch target improvements */
@media (max-width: 768px) {
    /* Ensure touch targets are at least 44px */
    .category-header {
        min-height: 44px;
        display: flex;
        align-items: center;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        cursor: pointer;
    }
    
    .info-icon {
        min-width: 32px !important;
        min-height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        cursor: pointer;
        touch-action: manipulation;
    }
    
    input[type="radio"] {
        min-width: 20px;
        min-height: 20px;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        cursor: pointer;
    }
    
    /* Debug styles - remove after testing */
    .category-header:active {
        background-color: rgba(255, 216, 131, 0.3) !important;
    }
    
    .info-icon:active {
        background-color: rgba(255, 0, 0, 0.2) !important;
    }
    
    .curso-checkbox:active {
        background-color: rgba(0, 255, 0, 0.1) !important;
    }
}

/* Mobile course badge adjustments - very specific targeting */
@media (max-width: 768px) {
    /* Reset checkbox to row layout with title and hot topic inline */
    .curso-checkbox {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        min-height: 44px;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        cursor: pointer;
        touch-action: manipulation;
    }
    
    .curso-checkbox input[type="checkbox"] {
        order: 0;
        margin-right: 10px;
        flex-shrink: 0;
        min-width: 20px;
        min-height: 20px;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        cursor: pointer;
    }
    
    .curso-checkbox .curso-title {
        order: 1;
        flex: 0 1 auto; /* Don't grow to fill space */
        display: inline !important;
    }
    
    /* Hot topic emoji stays inline with title, immediately after it */
    .curso-item .curso-checkbox .curso-badge.hot-topic {
        order: 1;
        display: inline !important;
        margin-left: 5px !important;
        flex-shrink: 0;
    }
    
    /* Mais vendido badge goes to new line */
    .curso-item .curso-checkbox .curso-badge.mais-vendido {
        order: 2;
        flex-basis: 100% !important;
        width: auto !important;
        max-width: fit-content !important;
        display: inline-block !important;
        margin-top: 3px !important;
        margin-left: 30px !important; /* Align with title text (checkbox width + margin) */
    }
    
    /* Make info button smaller on mobile - override the previous rule */
    .info-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }
}

/* General mobile improvements */
@media (max-width: 768px) {
    * {
        /* Prevent zoom on double-tap */
        touch-action: manipulation;
    }
    
    /* Improve button touch targets */
    button, .nectar-button {
        min-height: 44px;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    /* Remove outline focus on mobile */
    button:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: none;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Ensure desktop behavior is preserved */
@media (min-width: 769px) {
    .curso-checkbox {
        display: block; /* Reset to default for desktop */
    }
    
    .curso-checkbox .curso-title {
        display: inline; /* Reset to default for desktop */
    }
}



