/* MF PMS Modal Specific Styling */
#mfPmsInterestFormModal .modal-dialog {
    max-height: 90vh;
    overflow-y: auto;
}

#mfPmsInterestFormModal .modal-content {
    max-height: none;
    overflow: visible;
}

#mfPmsInterestFormModal .new-pms-form-right-panel {
    padding: 2rem 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

#mfPmsInterestFormModal .new-pms-form-right-panel form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#mfPmsInterestFormModal .new-pms-form-right-panel label {
    color: #ffffff;
    font-size: var(--text-body-sm);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#mfPmsInterestFormModal .new-pms-form-right-panel input[type="text"],
#mfPmsInterestFormModal .new-pms-form-right-panel input[type="email"],
#mfPmsInterestFormModal .new-pms-form-right-panel input[type="tel"] {
    background-color: #475569;
    border: 1px solid #64748b;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: var(--text-body-sm);
    width: 100%;
    box-sizing: border-box;
}

#mfPmsInterestFormModal .new-pms-form-right-panel input[type="text"]:focus,
#mfPmsInterestFormModal .new-pms-form-right-panel input[type="email"]:focus,
#mfPmsInterestFormModal .new-pms-form-right-panel input[type="tel"]:focus {
    outline: none;
    border-color: #99e0cf;
    box-shadow: 0 0 0 2px rgba(153, 224, 207, 0.2);
}

#mfPmsInterestFormModal .new-pms-form-right-panel input::placeholder {
    color: #94a3b8;
}

#mfPmsInterestFormModal .new-pms-form-phone-wrapper {
    display: flex;
    gap: 0.5rem;
}

#mfPmsInterestFormModal .new-pms-form-phone-wrapper select {
    background-color: #475569;
    border: 1px solid #64748b;
    border-radius: 8px;
    padding: 12px 8px;
    color: #ffffff;
    font-size: var(--text-body-sm);
    min-width: 120px;
}

#mfPmsInterestFormModal .new-pms-form-phone-wrapper select:focus {
    outline: none;
    border-color: #99e0cf;
    box-shadow: 0 0 0 2px rgba(153, 224, 207, 0.2);
}

#mfPmsInterestFormModal .new-pms-form-phone-wrapper input[type="tel"] {
    flex: 1;
}

#mfPmsInterestFormModal .new-pms-form-otp-btn {
    background: linear-gradient(135deg, #99e0cf 0%, #7dd3fc 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    color: #1e293b;
    font-weight: 600;
    font-size: var(--text-body-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

#mfPmsInterestFormModal .new-pms-form-otp-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(153, 224, 207, 0.4);
}

#mfPmsInterestFormModal .new-pms-form-otp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* MF Questionnaire Styling */
#mfPmsInterestFormModal .mf-questionnaire-section {
    padding: 1rem 0;
}

#mfPmsInterestFormModal .mf-options-cards {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

#mfPmsInterestFormModal .mf-options-cards .new-pms-form-option {
    padding: 0.6rem 1rem;
    font-size: var(--text-body-sm);
    margin: 0;
}

#mfPmsInterestFormModal .mf-question-block {
    margin-bottom: 0.75rem;
    width: 100%;
}

#mfPmsInterestFormModal .mf-question-block .new-pms-form-question {
    color: #ffffff;
    font-size: var(--text-body-sm);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#mfPmsInterestFormModal .new-pms-form-proceed-btn {
    background: linear-gradient(135deg, #99e0cf 0%, #7dd3fc 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    color: #1e293b;
    font-weight: 600;
    font-size: var(--text-body-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

#mfPmsInterestFormModal .new-pms-form-proceed-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(153, 224, 207, 0.4);
}

#mfPmsInterestFormModal .new-pms-form-proceed-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Investment Selection Styling */
#mfPmsInterestFormModal .new-pms-form-option {
    background-color: #475569;
    border: 2px solid #64748b;
    border-radius: 8px;
    padding: 1rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
    text-align: center;
    font-weight: 500;
}

#mfPmsInterestFormModal .new-pms-form-option:hover {
    border-color: #99e0cf;
    background-color: rgba(153, 224, 207, 0.1);
}

#mfPmsInterestFormModal .new-pms-form-option.selected {
    border-color: #99e0cf;
    background-color: rgba(153, 224, 207, 0.2);
    color: #99e0cf;
}

/* Error message styling */
#mfPmsInterestFormModal span[id*="Error"] {
    color: #f87171;
    font-size: var(--text-caption);
    margin-top: 0.25rem;
    display: block;
}

/* Step indicator styling */
#mfPmsInterestFormModal .new-pms-form-step-indicator {
    color: #94a3b8;
    font-size: var(--text-body-sm);
}

/* Progress bar styling */
#mfPmsInterestFormModal .new-pms-form-progress-bar {
    background: linear-gradient(135deg, #99e0cf 0%, #7dd3fc 100%);
    height: 4px;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Ensure all questions are visible */
#mfPmsInterestFormModal .mf-questionnaire-section .mf-question-block:nth-child(1),
#mfPmsInterestFormModal .mf-questionnaire-section .mf-question-block:nth-child(2),
#mfPmsInterestFormModal .mf-questionnaire-section .mf-question-block:nth-child(3) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
}

/* Ensure modal has enough height */
#mfPmsInterestFormModal .new-pms-form-pms-container {
    min-height: auto;
    height: auto;
    max-height: none;
    overflow-y: auto;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #mfPmsInterestFormModal .new-pms-form-right-panel {
        padding: 1.5rem 1rem;
    }
    
    #mfPmsInterestFormModal .new-pms-form-phone-wrapper {
        flex-direction: column;
    }
    
    #mfPmsInterestFormModal .new-pms-form-phone-wrapper select {
        min-width: auto;
    }
    
    #mfPmsInterestFormModal .modal-dialog {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
}
