/* Britto Cursos - Inscrições — estilos isolados sob .bci-scope para não vazar para o restante do tema */

.bci-scope,
.bci-scope *,
.bci-scope *::before,
.bci-scope *::after {
    box-sizing: border-box;
}

.bci-scope {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.bci-scope h2,
.bci-scope h3,
.bci-scope h4,
.bci-scope h5,
.bci-scope h6,
.bci-scope p,
.bci-scope span,
.bci-scope small,
.bci-scope label,
.bci-scope a,
.bci-scope button,
.bci-scope input,
.bci-scope select,
.bci-scope .badge,
.bci-scope .alert {
    font-size: 15px;
    line-height: 1.5;
}

.bci-scope input,
.bci-scope select {
    font-weight: normal;
}

.bci-scope .text-info {
    color: #ff6600 !important;
}

.bci-scope .bg-info {
    background-color: #ff6600 !important;
}

.bci-scope .alert-info {
    background-color: #fff3e6 !important;
    border-color: #ff6600 !important;
    color: #cc5200 !important;
}

.bci-scope .container-main {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.bci-scope .course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    animation: bciFadeInUp 0.5s ease forwards;
}

.bci-scope .course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #d0d0d0;
}

.bci-scope .course-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.bci-scope .course-title,
.bci-scope .course-title span {
    height: 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-size: 19px;
    font-weight: bold;
    color: #dc0000;
    line-height: 1.3;
    padding: 5px 0;
}

.bci-scope .bci-course-title-detail {
    font-size: 19px;
}

.bci-scope .course-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bci-scope .course-details {
    margin-top: auto;
}

.bci-scope .price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 15px;
}

.bci-scope .form-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.bci-scope .step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.bci-scope .step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    font-weight: bold;
    position: relative;
}

.bci-scope .step.active {
    background: #dc0000;
    color: white;
}

.bci-scope .step.completed {
    background: #dc0000;
    color: white;
}

.bci-scope .step::after {
    content: '';
    position: absolute;
    right: -25px;
    width: 20px;
    height: 2px;
    background: #dee2e6;
    top: 50%;
    transform: translateY(-50%);
}

.bci-scope .step:last-child::after {
    display: none;
}

.bci-scope .courses-loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@keyframes bciFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bci-scope .course-card:nth-child(1) { animation-delay: 0.1s; }
.bci-scope .course-card:nth-child(2) { animation-delay: 0.2s; }
.bci-scope .course-card:nth-child(3) { animation-delay: 0.3s; }
.bci-scope .course-card:nth-child(4) { animation-delay: 0.4s; }
.bci-scope .course-card:nth-child(5) { animation-delay: 0.5s; }
.bci-scope .course-card:nth-child(6) { animation-delay: 0.6s; }

.bci-scope .btn-custom {
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 15px;
    background-color: #dc0000;
    border-color: #dc0000;
    color: white;
}

.bci-scope .btn-custom:hover {
    background-color: #b30000;
    border-color: #b30000;
    color: white;
}

.bci-scope .alert-custom {
    border-radius: 10px;
    border: none;
}

.bci-scope .border-left-primary,
.bci-scope .border-left-success,
.bci-scope .border-left-info,
.bci-scope .border-left-warning {
    border-left: 4px solid #dc0000 !important;
}

/* ===== Formulário ===== */

.bci-scope .form-section-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(220, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    animation: bciSlideInUp 0.6s ease-out;
}

.bci-scope .form-section-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.bci-scope .form-section-card:nth-child(2) { animation-delay: 0.1s; }
.bci-scope .form-section-card:nth-child(3) { animation-delay: 0.2s; }
.bci-scope .form-section-card:nth-child(4) { animation-delay: 0.3s; }
.bci-scope .form-section-card:nth-child(5) { animation-delay: 0.4s; }
.bci-scope .form-section-card:nth-child(6) { animation-delay: 0.5s; }

@keyframes bciSlideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bci-scope .section-title {
    color: #dc0000;
    font-size: 15px;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bci-scope .section-title i {
    color: #dc0000;
    font-size: 15px;
}

.bci-scope .form-section-body {
    padding: 1rem;
}

.bci-scope .modern-form-group {
    position: relative;
    margin-bottom: 0.5rem;
}

.bci-scope .modern-input {
    width: 100%;
    height: auto;
    min-height: 52px;
    padding: 1rem;
    border: 1px solid #cdcdcd;
    border-radius: 12px;
    font-size: 15px;
    font-weight: normal;
    line-height: 1.5;
    transition: all 0.3s ease;
    background-color: #fafbfc;
}

.bci-scope .modern-input:focus {
    outline: none;
    border-color: #dc0000;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(220, 0, 0, 0.1);
}

.bci-scope .modern-input:valid:not(:placeholder-shown):required {
    border-color: #28a745;
    background-color: white;
}

.bci-scope .modern-input:not(:placeholder-shown) {
    background-color: white;
}

.bci-scope .modern-input.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.bci-scope .modern-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: #6c757d;
    font-size: 15px;
    transition: all 0.3s ease;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 0%, transparent 50%, white 50%, white 100%);
    padding: 0 0.25rem;
}

.bci-scope .modern-input:focus + .modern-label,
.bci-scope .modern-select:focus + .modern-label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 15px;
    color: #dc0000;
    background: white;
    padding: 0px 10px 0px 15px;
}

.bci-scope .modern-input:not(:placeholder-shown) + .modern-label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 15px;
    background: white;
    padding: 0px 10px 0px 15px;
}

.bci-scope .modern-select + .modern-label {
    top: 1rem;
    left: 1rem;
    color: #6c757d;
}

.bci-scope .modern-select:focus + .modern-label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 15px;
    color: #dc0000;
    background: white;
    padding: 0px 10px 0px 15px;
}

.bci-scope .modern-select.has-value + .modern-label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 15px;
    color: #28a745;
    background: white;
    padding: 0px 10px 0px 15px;
}

.bci-scope .modern-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' fill='%236c757d' viewBox='0 0 16 16'><path d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>");
    background-repeat: no-repeat;
    background-position: calc(100% - 1rem) center;
    background-size: 1rem;
    padding-right: 3rem;
    color: #6c757d;
}

.bci-scope .modern-select.has-value {
    color: #333;
    background-color: white;
}

.bci-scope .modern-select option[value=""] {
    color: #6c757d;
}

.bci-scope .modern-select option:not([value=""]) {
    color: #333;
}

.bci-scope .modern-checkbox {
    position: relative;
    margin-bottom: 2rem;
}

.bci-scope .modern-checkbox input[type="checkbox"] {
    display: none;
}

.bci-scope .checkbox-custom {
    display: inline-flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.5;
}

.bci-scope .checkbox-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid #adadad;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.bci-scope .modern-checkbox input:checked + .checkbox-custom .checkbox-indicator {
    background: #dc0000;
    border-color: #dc0000;
}

.bci-scope .checkbox-indicator::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bci-scope .modern-checkbox input:checked + .checkbox-custom .checkbox-indicator::after {
    opacity: 1;
}

.bci-scope .modern-checkbox.is-invalid .checkbox-indicator {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.bci-scope .modern-input.is-valid:required {
    border-color: #28a745;
    background-color: #f8fff9;
}

.bci-scope .modern-input:not([required]).is-valid {
    border-color: #e1e5e9;
    background-color: #fafbfc;
}

.bci-scope .modern-input.is-valid + .modern-label {
    color: #28a745;
}

.bci-scope .modern-input.is-invalid + .modern-label {
    color: #6c757d;
}

.bci-scope .toast {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.bci-scope .section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #dc0000 50%, transparent 100%);
    margin: 2rem 0;
}

.bci-scope .progress-indicator {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.bci-scope .progress-bar-custom {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.bci-scope .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc0000, #b30000);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.bci-scope .cnpj-loading {
    margin-top: 0.5rem;
    color: #dc0000;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.bci-scope .cnpj-loading i {
    animation: bciSpin 1s linear infinite;
}

@keyframes bciSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .bci-scope .form-section-body {
        padding: 1.5rem;
    }

    .bci-scope .modern-form-group {
        margin-bottom: 1.5rem;
    }

    .bci-scope .modern-input {
        padding: 0.875rem;
    }
}
