/* Sobrescrever variável do Bootstrap para mudar background de #040404 para #000 */
[data-bs-theme="dark"] {
    --bs-body-bg: #000 !important;
    --bs-body-bg-rgb: 0, 0, 0 !important;
}

body[data-bs-theme="dark"] {
    --bs-body-bg: #000 !important;
    --bs-body-bg-rgb: 0, 0, 0 !important;
}

.svg-icons-cadastro{
    fill: rgb(12, 175, 113) !important;
    width: 1.0rem;
    height: 1.0rem;
}
.iti{
    width: 100%;
}

.iti .iti__country-container{
    border-bottom-left-radius: 0!important;
    border-top-left-radius: 0!important;
}
.iti .iti__dropdown-content{
    border-bottom-left-radius: 0!important;
    border-top-left-radius: 0!important;
}

.iti .iti__country-container .iti__selected-country{
    border-bottom-left-radius: 0!important;
    border-top-left-radius: 0!important;
}

.iti__country-list{
    background-color: #1D1B20;
}

.btn-back{
    position: fixed;
}

.btn-back .btn svg{
    height: 35px;
    width: 35px;
    fill: transparent;
    stroke: #03DDC2;
}
.btn-back .btn:hover svg, .btn-back .btn:focus svg{
    height: 35px;
    width: 35px;
    fill: #03DDC2;
    stroke: #000;
}

.input-group-text{
    background-color: transparent;
    border: none;
}

.input-group {
    flex-wrap: unset;
}

.input-group-text svg{
    fill: #03DDC2;
    stroke: #03DDC2;
}

.input-group input{
    border-radius: 25px;
    border-top-left-radius: 25px!important;
    border-bottom-left-radius: 25px!important;
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    -ms-border-radius: 25px;
    -o-border-radius: 25px;

}

    .image-exercise {
        width: 100%;
        padding-top: 100%; /* 1:1 Aspect Ratio */
        position: relative;
        overflow: hidden;
        border-radius: 10px; /* Optional: to make corners rounded */
        opacity: 0.8;
        transition: opacity 0.2s ease;
    }
    .image-exercise:hover {
        opacity: 1;
    }
    .image-exercise img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ensures the image covers the container */
    }

.reveal-pass {
    width: 42px;
}

/* Estilos para exibição de informações do plano */
#planPriceDisplay .card {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#planDescriptionText {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.6 !important;
    text-align: left !important;
    max-width: 100%;
    display: block;
}

#planStudentsText {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.6 !important;
    text-align: left !important;
    max-width: 100%;
    display: block;
}

#planPriceText {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ajuste para o selectpicker mostrar descrição completa */
.bootstrap-select .dropdown-menu li a {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.5 !important;
    padding: 8px 12px !important;
}

.bootstrap-select .dropdown-menu li a small {
    display: block;
    margin-top: 4px;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Melhorar contraste quando opção está selecionada/hover */
.bootstrap-select .dropdown-menu li.selected a,
.bootstrap-select .dropdown-menu li.active a,
.bootstrap-select .dropdown-menu li a:hover {
    background-color: rgba(3, 221, 196, 0.2) !important;
    color: #000 !important;
}

/* Texto da descrição quando selecionado - preto para melhor legibilidade */
.bootstrap-select .dropdown-menu li.selected a small,
.bootstrap-select .dropdown-menu li.active a small,
.bootstrap-select .dropdown-menu li a:hover small {
    color: #000 !important;
    opacity: 1 !important;
}

.bootstrap-select .dropdown-menu li.selected a small.text-muted,
.bootstrap-select .dropdown-menu li.active a small.text-muted {
    color: #000 !important;
    opacity: 1 !important;
}

/* Título em destaque quando selecionado */
.bootstrap-select .dropdown-menu li.selected a strong,
.bootstrap-select .dropdown-menu li.active a strong,
.bootstrap-select .dropdown-menu li a:hover strong {
    color: #000 !important;
    font-weight: 700 !important;
}

/* Ajustar cor do texto principal quando selecionado */
.bootstrap-select .dropdown-menu li.selected a,
.bootstrap-select .dropdown-menu li.active a {
    color: #000 !important;
}

/* Estilos para página de cadastro com planos */
.cadastre-page-container {
    max-width: 1400px;
}

.plans-section {
    margin-top: 2rem;
    padding: 2rem 0;
    width: 100%;
    overflow: hidden;
    background: transparent !important;
}

.plans-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(3, 221, 196, 0.5) transparent;
    width: 100% !important;
    margin: 0 !important;
    background: transparent !important;
}


.plan-item {
    flex: 0 0 auto !important;
    min-width: 300px !important;
    width: 300px !important;
    max-width: 300px !important;
    display: block !important;
    float: none !important;
}

.cadastre-page-container .plans-section .plans-row {
    display: flex !important;
    flex-wrap: nowrap !important;
}

.coupon-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3cfea5 0%, #03ddc4 100%);
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(3, 221, 196, 0.3);
}

.plan-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
    background: transparent !important;
}

.plan-card:hover {
    transform: translateY(-5px);
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #3cfea5 0%, #03ddc4 100%);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(3, 221, 196, 0.4);
}

.plan-card .card-body {
    position: relative;
}

.register-section {
    margin-top: 4rem;
    padding: 3rem 0;
    background: rgba(3, 221, 196, 0.05);
    border-radius: 20px;
    margin-bottom: 2rem;
}

.register-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.register-form {
    max-width: 600px;
    margin: 0 auto;
}

.coupon-input-wrapper {
    background: rgba(3, 221, 196, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(3, 221, 196, 0.3);
}

.coupon-input-wrapper .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.coupon-input {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(3, 221, 196, 0.5);
    color: #03ddc2;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 2px;
}

.coupon-input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: #03ddc2;
    box-shadow: 0 0 15px rgba(3, 221, 196, 0.3);
    color: #03ddc2;
}

.photo-upload-section {
    text-align: center;
}

.photo-upload-wrapper {
    max-width: 200px;
}

.form-actions {
    margin-top: 2rem;
}

.btn-cadastre {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-cadastre:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(3, 221, 196, 0.4);
}

/* Responsividade */
@media (max-width: 768px) {
    .plans-section {
        padding: 1rem 0;
    }
    
    .register-section {
        margin-top: 2rem;
        padding: 2rem 1rem;
    }
    
    .register-container {
        padding: 0 1rem;
    }
    
    .coupon-badge {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .discount-badge {
        top: 10px;
        right: 10px;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Estilos para o modal de pagamento */
#paymentModalCadastre .modal-content {
    max-height: 90vh;
}

#paymentModalCadastre .modal-body {
    overflow-y: auto;
    max-height: 75vh;
}

/* Estilos para campos lado a lado no modal de pagamento */
#paymentModalCadastre .row {
    margin-left: 0;
    margin-right: 0;
}

#paymentModalCadastre .row > [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

#paymentModalCadastre .form-group {
    margin-bottom: 1rem;
}

/* Responsividade para campos lado a lado */
@media (max-width: 767px) {
    #paymentModalCadastre .row > [class*="col-md-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

#loader-modal-cadastre {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos para cards de planos em linha */
.plans-row-wrapper {
    width: 100% !important;
    padding: 1rem 0 2rem 0 !important;
    overflow: visible !important;
    position: relative !important;
    min-height: fit-content !important;
    background: transparent !important;
    isolation: isolate !important;
}

.mb-4.form-full-width {
    background: transparent !important;
}

.mb-4.form-full-width .plans-row-wrapper {
    background: transparent !important;
}

.plans-row {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 1rem !important;
    padding: 1rem 0 2rem 0 !important;
    width: 100% !important;
    overflow: visible !important;
    align-items: start !important;
    background: transparent !important;
    position: relative !important;
    row-gap: 1rem !important;
    column-gap: 1rem !important;
    grid-auto-rows: min-content !important;
}

.plan-card-item {
    width: 100% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: visible !important;
    will-change: transform !important;
    backface-visibility: hidden !important;
    margin-bottom: 5px !important;
    align-self: start !important;
    background: transparent !important;
    z-index: 1 !important;
    height: 300px !important;
    max-height: none !important;
}

.plan-card-item:hover {
    z-index: 2 !important;
}

.plan-card-content {
    background: rgba(29, 27, 32, 0.6) !important;
    border: 2px solid rgba(3, 221, 196, 0.3) !important;
    border-radius: 15px !important;
    padding: 1rem !important;
    height: 100% !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    will-change: transform !important;
    backface-visibility: hidden !important;
    transform: translateZ(0) !important;
}

.plan-card-item:hover .plan-card-content {
    border-color: rgba(3, 221, 196, 0.6) !important;
    transform: translateY(-5px) translateZ(0) !important;
    box-shadow: 0 8px 20px rgba(3, 221, 196, 0.2) !important;
    background: rgba(29, 27, 32, 0.8) !important;
}

.plan-card-item {
    margin-bottom: 10px !important;
}


.plan-card-item.selected .plan-card-content {
    border-color: #e8f0ef;
    background: rgba(3, 221, 196, 0.15);
}

.plan-card-item.selected::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    color: #03DDC2;
    font-size: 1.5rem;
    z-index: 10;
    animation: checkmarkPop 0.3s ease;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    position: relative;
}

.plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #03DDC2;
    margin: 0;
    flex: 1;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.plan-badge {
    background: rgba(3, 221, 196, 0.2);
    color: #03DDC2;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    margin-right: 15px;
}

.plan-badge.free-badge {
    background: linear-gradient(135deg, #3cfea5 0%, #03ddc4 100%);
    color: #000;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin: 0.25rem 0;
}

.plan-price .currency {
    font-size: 0.9rem;
    font-weight: 600;
    color: #03DDC2;
}

.plan-price .price-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #03DDC2;
    line-height: 1.2;
}

.plan-price .price-period {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.plan-total-price {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: -0.15rem;
}

.plan-description {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin: 0.25rem 0;
    flex: 1;
}

.plan-students {
    font-size: 0.8rem;
    color: #03DDC2;
    display: flex;
    align-items: center;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(3, 221, 196, 0.2);
    margin-top: auto;
}

.plan-students i {
    opacity: 0.8;
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3cfea5 0%, #03ddc4 100%);
    color: #000;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.5rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(3, 221, 196, 0.4);
    animation: badgePop 0.3s ease;
    vertical-align: middle;
    line-height: 1.2;
}

@keyframes badgePop {
    0% {
        transform: scale(0) rotate(-10deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Layout responsivo do formulário */
.form-row-2cols {
    display: block;
}

.form-full-width {
    width: 100%;
}

@media (min-width: 992px) {
    .form-row-2cols {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
        margin-bottom: 1rem;
    }

    .form-full-width {
        grid-column: 1 / -1 !important;
    }
}

/* Ajustes adicionais para formulário mais largo */
@media (min-width: 1200px) {
    .form-row-2cols {
        gap: 0.5rem !important;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .plan-card-item {
        min-width: 220px;
        max-width: 240px;
    }

    .plan-card-content {
        padding: 1rem;
    }

    .plans-row {
        gap: 0.75rem;
    }

    .discount-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}