.smart-form-2026 .smart-step-card {
    background-color: #f8f9fa;
}

.smart-form-2026 .smart-step-title {
    color: #0d6efd;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Override legacy revise.css which hides radios inside InvestmentApplicationBoxx */
.InvestmentApplicationBoxx.smart-form-2026 input[type="radio"],
.smart-form-2026 input[type="radio"],
.smart-form-2026 .form-check-input {
    display: inline-block !important;
    position: static !important;
    width: 1.1em !important;
    height: 1.1em !important;
    margin-top: 0.2em !important;
    margin-right: 0.4em !important;
    vertical-align: middle !important;
    opacity: 1 !important;
    visibility: visible !important;
    -webkit-appearance: radio !important;
    appearance: radio !important;
    cursor: pointer;
}

.smart-form-2026 .form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    padding-left: 0;
    min-height: auto;
}

.smart-form-2026 .form-check-label {
    margin-bottom: 0;
    margin-left: 0.25rem;
    line-height: 1.4;
    cursor: pointer;
}

.smart-form-2026 .form-check-inline {
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.smart-form-2026 #Torg_type1,
.smart-form-2026 #Torg_type2,
.smart-form-2026 #Torg_type3,
.smart-form-2026 #Torg_type4 {
    display: inline-block;
    vertical-align: top;
}

.smart-form-2026 .form-control {
    width: 100%;
    max-width: 100%;
}

.smart-form-2026 .form-group {
    margin-bottom: 0;
}

.smart-form-2026 .smart-submit-btn {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.9rem 1rem;
}

.smart-form-2026 .smart-option-block {
    margin-bottom: 1rem;
    min-height: 5.5rem;
}

.smart-form-2026 .smart-option-block .form-check {
    min-height: 1.75rem;
}

.smart-form-2026 .smart-option-block .form-group {
    margin-top: 0.25rem;
}

/* 行業別第二層是 AJAX 動態回填，常帶舊 class 導致寬度縮掉 */
.smart-form-2026 #div_sp_code,
.smart-form-2026 #div_sp_code > * {
    width: 100% !important;
    max-width: 100% !important;
}

.smart-form-2026 #div_sp_code select,
.smart-form-2026 #div_sp_code .smr_f,
.smart-form-2026 #div_sp_code .form-control {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
}

.smart-form-2026 #div_sp_code .styled-select,
.smart-form-2026 #div_sp_code .styled-select-2 {
    width: 100% !important;
}

.smart-form-2026 #Tfactory,
.smart-form-2026 #Tfactory1,
.smart-form-2026 #Tfactory2,
.smart-form-2026 #Tfactory3,
.smart-form-2026 #Tfactory4,
.smart-form-2026 #Tfactory5 {
    float: none;
}

.smart-form-2026 .smart-mainland-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-top: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-left: 3px solid #0d6efd;
    background-color: #eef5fc;
    border-radius: 0.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.smart-form-2026 .smart-mainland-text {
    color: #495057;
    margin: 0;
}

.smart-form-2026 .smart-mainland-link {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}

.smart-form-2026 .smart-mainland-link:hover {
    color: #0a58ca;
}

.smart-form-2026 .smart-mainland-link i {
    font-size: 0.85em;
    margin-left: 0.15rem;
}

@media screen and (max-width: 767px) {
    .smart-form-2026 .form-check-inline {
        display: flex;
        margin-right: 0;
        width: 100%;
    }

    .smart-form-2026 #Torg_type1,
    .smart-form-2026 #Torg_type2,
    .smart-form-2026 #Torg_type3,
    .smart-form-2026 #Torg_type4 {
        display: block;
        width: 100%;
    }

    .smart-form-2026 .smart-option-block {
        min-height: 0;
    }

    .smart-form-2026 .smart-mainland-note {
        flex-direction: column;
        align-items: flex-start;
    }
}
