/* ---------------------------
   Modern UI – Clean Builder
   Prefix: intak-
---------------------------- */

/* Scroll Area */
#intakeFormModal .intak-scroll-area,
#clientIntakeModal .intak-scroll-area {
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 8px;
}

#intakeFormModal .intak-scroll-area {
    padding-bottom: 20px;
}

/* Modal layout fix */
#intakeFormModal .modal-dialog {
    max-height: 90vh;
}

#intakeFormModal .modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

/* Body scroll fix */
#intakeFormModal .modal-body {
    flex: 1 1 auto;
    overflow: hidden;
    padding-bottom: 0;
}

/* Sticky footer */
#intakeFormModal .intak-footer,
#clientIntakeModal .intak-footer {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    padding: 15px 20px;
    border-top: 1px solid #e5e7eb;
    z-index: 10;
}

#intakeFormModal .intak-footer {
    text-align: right;
    z-index: 10;
}

#clientIntakeModal .intak-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
}
.fir-cardbg{
    background-color: #f9fafb!important;
}

/* Base card */
#intakeFormModal .intak-card,
#clientIntakeModal .intak-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 22px;
    margin-top: 5px;
    margin-bottom: 20px;
}

#clientIntakeModal .intak-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 10px 22px 16px 15px;
    margin-bottom: 25px;
}

/* Number badge */
#intakeFormModal .intak-num,
#clientIntakeModal .intak-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #475569;
    margin-right: 10px;
}

#clientIntakeModal .intak-num {
    margin-right: 12px;
}

/* Labels */
#intakeFormModal .intak-label,    
#clientIntakeModal .intak-label {    
    font-weight: 600;   
}

/* Help text */
#clientIntakeModal .intak-help {
    font-size: 13px;
    color: #64748b;
    margin-top: -6px;
    margin-bottom: 8px;
}

/* Inputs */
.intak-input,
.intak-select,
.intak-textarea {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    padding: 10px 14px;
    font-size: 15px;
    width: 100%;
}

#clientIntakeModal .intak-input,
#clientIntakeModal .intak-select,
#clientIntakeModal .intak-textarea {
    padding: 4px 14px;
}

.intak-textarea {
    min-height: 85px;
}

#clientIntakeModal .intak-textarea {
    min-height: 85px;
}

/* Delete icon */
.intak-delete-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 20px;
}

.intak-delete-btn:hover {
    color: #ef4444;
}

/* Move buttons */
.intak-move-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
}

/* Options block */
.intak-options {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 15px 5px 15px 15px;
}

.intak-input.opt-label,
.intak-input.opt-value {
    /*width: 50%!important;*/
}

/* Option row */
.intak-option-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.intak-option-number {
    width: 25px;
    text-align: right;
    font-weight: 500;
    color: #64748b;
}

/* Add option */
.intak-add-option-btn {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 13px;
}

/* Add question button */
#addQuestionBtn {    
    color: #0d6efd!important;
    border-radius: 12px;
    padding: 20px 18px;
    cursor: pointer;
}

/*#addQuestionBtn:hover {
    background: #1e293b;
}*/

/* Yes/No buttons */
#clientIntakeModal .intak-yesno button {
    width: 80px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #fff;
    padding: 2px 0;
    font-size: 15px;
}

#clientIntakeModal .intak-yesno button.active {
    background: #0f172a;
    color: white;
}

/* Multi select checkboxes */
#clientIntakeModal .intak-multi label {
    font-weight: 400 !important;
    margin-bottom: 6px;
}

/* Modal content label fixes */
#intakeFormModal .modal-content label:not(.inputradio label),
#clientIntakeModal .modal-content label:not(.inputradio label) {
    width: unset;
}
#intakeFormModal .intak-input.opt-value{
     display: none !important;
}
@media only screen and (max-width: 775px) {
    #intakeFormModal .intak-scroll-area {     
        padding-bottom: 33px;
    }
}